/*
Theme Name: BLC Theme
Description: Thème de BorderlineCollie : les chiens urgents et les dons d'abord, galerie à parcourir, lisible sur téléphone.
Version: 0.2.0
Requires PHP: 8.1
Text Domain: blc-theme
*/

:root {
	--blc-burgundy: #7a1f2e;
	--blc-burgundy-dark: #4a1520;
	--blc-coral: #c93c20;
	--blc-cream: #fbf6ee;
	--blc-sand: #e6d9c6;
	--blc-sand-soft: #f3ebdf;
	--blc-ink: #2b1a1d;
	--blc-ink-soft: #5c4448;
	--blc-green: #27500a;
	--blc-green-bg: #eaf1e4;
	--blc-amber: #8a5a00;
	--blc-amber-bg: #fbefd6;
	--blc-grey: #6b6265;
	--blc-grey-bg: #efeceb;
	--blc-coral-bg: #fbe5df;
	--blc-radius: 12px;
	--blc-wrap: 1180px;
	--blc-shadow: 0 1px 2px rgba(74, 21, 32, .06), 0 6px 20px rgba(74, 21, 32, .07);
	--blc-serif: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, serif;
	--blc-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f9f9f9; color: var(--blc-ink); font-family: var(--blc-sans); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--blc-burgundy); text-underline-offset: .18em; }
a:hover { color: var(--blc-burgundy-dark); }
/* Titres : serif gras et bordeaux, nettement distincts du texte courant (sans-serif, encre) */
h1, h2, h3, h4 { font-family: var(--blc-serif); font-weight: 700; line-height: 1.2; color: var(--blc-burgundy-dark); letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.8rem); }
h3 { font-size: 1.25rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
:focus-visible { outline: 3px solid var(--blc-coral); outline-offset: 2px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: .6rem 1rem; border-radius: 8px; }
.wrap { width: min(100% - 2rem, var(--blc-wrap)); margin-inline: auto; }

/* En-tete */
.site-header { background: #fff; border-bottom: 1px solid var(--blc-sand); position: sticky; top: 0; z-index: 50; }
.site-header__bar { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.site-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--blc-burgundy); font-family: var(--blc-serif); font-size: 1.35rem; }
.site-brand img { max-height: 48px; width: auto; }
.site-tagline { background: #fff; border-bottom: 1px solid var(--blc-sand); font-size: .78rem; color: var(--blc-ink-soft); text-align: center; padding: .3rem 0; line-height: 1.3; }
.site-brand svg { width: 28px; height: 28px; fill: currentColor; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.site-nav a { display: block; padding: .5rem .7rem; text-decoration: none; color: var(--blc-ink); font-size: .95rem; border-radius: 8px; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { background: var(--blc-cream); color: var(--blc-burgundy); }
.site-nav li { position: relative; }
.site-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--blc-sand); border-radius: 10px; padding: .4rem; z-index: 60; box-shadow: var(--blc-shadow); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: flex; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-fb { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; color: var(--blc-burgundy); }
.header-fb svg { width: 22px; height: 22px; fill: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1.1rem; border-radius: 8px; font-weight: 600; font-size: .95rem; line-height: 1.3; text-decoration: none; background: var(--blc-burgundy); color: #fff; border: 1px solid transparent; cursor: pointer; font-family: var(--blc-sans); }
.btn:hover { background: var(--blc-burgundy-dark); color: #fff; }
.btn--lg { padding: .85rem 1.4rem; font-size: 1.02rem; border-radius: 10px; }
.btn--don { background: var(--blc-coral); }
.btn--don:hover { background: #a82f17; }
.btn--ghost { background: #fff; color: var(--blc-burgundy); border-color: var(--blc-burgundy); }
.btn--ghost:hover { background: var(--blc-burgundy); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--blc-sand); border-radius: 8px; padding: .5rem .7rem; font-size: 1rem; cursor: pointer; color: var(--blc-ink); }

/* Sections */
.band { padding: 2.2rem 0 .5rem; }
.band--alt { background: #fff; border-block: 1px solid var(--blc-sand); padding-bottom: 2rem; margin-top: 1.5rem; }
.band--green { background: var(--blc-green-bg); border-radius: var(--blc-radius); padding: 1.2rem 1.4rem 1.6rem; margin-top: 1.5rem; }
.band--green .blc-section__title, .band--green .blc-section__more { color: var(--blc-green); }
.eyebrow { display: inline-block; background: var(--blc-coral); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; padding: .2rem .55rem; border-radius: 4px; text-transform: uppercase; }
.lead { color: var(--blc-ink-soft); margin: .2rem 0 1rem; }
.section-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.help-card { display: block; background: #fff; border: 1px solid var(--blc-sand); border-radius: var(--blc-radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--blc-ink); }
.help-card:hover { border-color: var(--blc-burgundy); box-shadow: var(--blc-shadow); }
.help-card h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.help-card p { margin: 0; color: var(--blc-ink-soft); font-size: .95rem; }
.about { background: #fff; border: 1px solid var(--blc-sand); border-radius: var(--blc-radius); padding: 1rem 1.3rem; margin: 1.5rem 0; }
.about summary { cursor: pointer; font-family: var(--blc-serif); font-weight: 700; color: var(--blc-burgundy-dark); font-size: 1.15rem; }

/* Contenu des pages */
.page-head { padding: 2rem 0 .2rem; }
.page-head h1 { margin: 0; }
.page-head h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .55rem; border-radius: 2px; background: var(--blc-coral); }
.page-head__lead { margin: .8rem 0 0; max-width: 60ch; color: var(--blc-ink-soft); font-size: 1.08rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding: 1.2rem 0 3rem; }
.layout--sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
.entry-content > * { max-width: 100%; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p, .entry-content li { max-width: 72ch; }
.entry-content h2 { margin: 2rem 0 .6rem; }
.entry-content h3 { margin: 1.6rem 0 .4rem; color: var(--blc-burgundy); }
.entry-content img { border-radius: 8px; }
.sidebar .widget { margin-bottom: 1.6rem; background: #fff; border: 1px solid var(--blc-sand); border-radius: var(--blc-radius); padding: 1rem; }
.sidebar .widget-title { margin: 0 0 .6rem; font-size: 1.15rem; color: var(--blc-coral); }
.sidebar .blc-carousel .blc-tile { flex-basis: 80%; }

/* Formulaires (Contact Form 7) */
.wpcf7-form p { margin: 0 0 1.1rem; font-weight: 600; font-size: .95rem; color: var(--blc-ink); max-width: none; }
.wpcf7-form br { display: none; }
.wpcf7-form-control-wrap { display: block; margin-top: .35rem; }
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7-form textarea { width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--blc-ink); padding: .7rem .85rem; background: #fff; border: 1px solid #d4c4ae; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.wpcf7-form textarea { min-height: 170px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--blc-burgundy); box-shadow: 0 0 0 3px rgba(122, 31, 46, .15); }
.wpcf7-form input[type="submit"] { font: inherit; font-weight: 600; padding: .8rem 1.8rem; border: 0; border-radius: 10px; background: var(--blc-burgundy); color: #fff; cursor: pointer; }
.wpcf7-form input[type="submit"]:hover { background: var(--blc-burgundy-dark); }
.wpcf7-not-valid-tip { font-weight: 400; font-size: .85rem; color: var(--blc-coral); margin-top: .25rem; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; border-radius: 10px; padding: .7rem 1rem; font-size: .95rem; }

/* Page contact */
.contact-form-card { background: #fff; border: 1px solid var(--blc-sand); border-radius: var(--blc-radius); padding: 1.4rem 1.5rem .6rem; box-shadow: var(--blc-shadow); }
.channels { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.channels li { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--blc-sand); border-radius: var(--blc-radius); padding: .8rem 1rem; }
.channels a { display: flex; align-items: center; gap: .8rem; flex: 1; min-width: 0; text-decoration: none; color: var(--blc-ink); }
.channels a > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--blc-sand-soft); color: var(--blc-burgundy); }
.channels strong, .choice strong { display: block; font-size: .98rem; }
.channels small, .choice small { display: block; color: var(--blc-ink-soft); font-size: .85rem; overflow-wrap: anywhere; }
.contact-about { display: flex; align-items: center; gap: 1rem; background: var(--blc-amber-bg); border-radius: var(--blc-radius); padding: .8rem 1rem; margin-bottom: 1.2rem; }
.contact-about img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; flex: none; }
.contact-about p { margin: 0; }
.contact-about small { color: var(--blc-ink-soft); }
.copy-btn { display: inline-flex; align-items: center; gap: .3rem; flex: none; font: inherit; font-size: .82rem; font-weight: 600; padding: .35rem .65rem; border: 1px solid var(--blc-sand); border-radius: 999px; background: #fff; color: var(--blc-burgundy); cursor: pointer; }
.copy-btn:hover { border-color: var(--blc-burgundy); }
.copy-btn .icon { width: 1em; height: 1em; vertical-align: 0; }

/* Fiche chien */
.dog { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; padding: 1.5rem 0; align-items: start; }
.dog__photo { position: relative; border-radius: var(--blc-radius); overflow: hidden; background: var(--blc-sand); }
.dog__photo img { display: block; width: 100%; height: auto; }
.dog__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.dog__title { margin: 0; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3rem); }
.dog__meta { color: var(--blc-ink-soft); margin: .2rem 0 1rem; font-size: 1.1rem; }
.dog__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.4rem; }
.dog__cta--end { justify-content: center; margin: .5rem 0; }
.dog__contact { font-size: .92rem; color: var(--blc-ink-soft); }
/* Appel aux dons sur la fiche : encart a la Leetchi (collecte, objectif, bouton) */
.dog-campaign { display: flex; flex-direction: column; gap: .7rem; margin: 0 0 1.4rem; padding: 1.1rem 1.25rem 1.2rem; background: #fff; border: 1px solid #efc9bf; border-left: 5px solid var(--blc-coral); border-radius: var(--blc-radius); box-shadow: var(--blc-shadow); }
.dog-campaign h2 { margin: 0; font-size: 1.35rem; }
.dog-campaign__eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blc-coral); }
.dog-campaign__eyebrow .icon { width: 16px; height: 16px; }
.dog-campaign .blc-goal__line { font-size: 1.05rem; }
.dog-campaign .blc-goal__bar { height: 14px; }
.dog-campaign .btn { align-self: flex-start; }
.dog-campaign__note { margin: -.2rem 0 0; font-size: .85rem; color: var(--blc-ink-soft); }
@media (max-width: 520px) { .dog-campaign .btn { align-self: stretch; text-align: center; justify-content: center; } }
.facts-title { margin: 1.3rem 0 .5rem; font-family: var(--blc-sans); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blc-ink-soft); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fact { display: flex; align-items: flex-start; gap: .7rem; background: #fff; border: 1px solid var(--blc-sand); border-radius: 10px; padding: .6rem .75rem; }
.fact__icon { position: relative; flex: none; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: var(--blc-sand-soft); color: var(--blc-burgundy); }
.fact__icon > .icon { width: 20px; height: 20px; }
.fact__state { position: absolute; right: -4px; bottom: -4px; display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #fff; color: #fff; }
.fact__state .icon { width: 11px; height: 11px; stroke-width: 3.5; }
.fact__body { min-width: 0; }
.fact__label { display: block; font-size: .78rem; font-weight: 600; color: var(--blc-ink-soft); }
.fact__value { display: block; font-size: .95rem; line-height: 1.35; overflow-wrap: anywhere; }
.fact.is-ok .fact__icon { background: var(--blc-green-bg); color: var(--blc-green); }
.fact.is-ok .fact__state { background: #3b7d12; }
.fact.is-no .fact__icon { background: var(--blc-coral-bg); color: var(--blc-coral); }
.fact.is-no .fact__state { background: var(--blc-coral); }
.fact.is-unknown .fact__icon { background: var(--blc-grey-bg); color: var(--blc-grey); }
.fact.is-unknown .fact__state { background: var(--blc-grey); }
.fact.is-info .fact__icon { background: var(--blc-amber-bg); color: var(--blc-amber); }
.fact.is-info .fact__state { background: #b07800; }
.dog-story { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.dog-story section, .dog-box { background: #fff; border: 1px solid var(--blc-sand); border-radius: var(--blc-radius); padding: 1.1rem 1.3rem; }
.dog-story h2, .dog-box h2 { margin-top: 0; font-size: 1.35rem; }
.dog-wide { grid-column: 1 / -1; }
.dog__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.share { display: flex; gap: .4rem; align-items: center; padding: .3rem .35rem .3rem .9rem; background: #fff; border: 1px solid var(--blc-sand); border-radius: 999px; }
.share__label { margin-right: .2rem; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blc-ink-soft); }
.share .share__btn { width: 36px; height: 36px; border-color: transparent; background: var(--blc-cream); }
.share__btn { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--blc-sand); border-radius: 50%; background: #fff; color: var(--blc-burgundy); cursor: pointer; transition: background .15s, color .15s; }
.share__btn:hover, .share__btn.is-copied { background: var(--blc-burgundy); border-color: var(--blc-burgundy); color: #fff; }
.share__btn .icon { width: 19px; height: 19px; }
.dog__archived { padding: .6rem .9rem; border-radius: 10px; background: var(--blc-grey-bg); color: var(--blc-grey); font-weight: 600; }

/* Statut du chien (benevoles connectes) */
.blc-status { margin: 0 0 1rem; background: #fff; border: 2px dashed var(--blc-sand); border-radius: var(--blc-radius); padding: .6rem 1rem; font-size: .92rem; }
.blc-status summary { cursor: pointer; font-weight: 700; color: var(--blc-burgundy); }
.blc-status summary small { font-weight: 400; color: var(--blc-ink-soft); }
.blc-status fieldset { border: 0; margin: .7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
.blc-status legend { width: 100%; margin-bottom: .3rem; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blc-ink-soft); }
.blc-status label { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border: 1px solid var(--blc-sand); border-radius: 999px; cursor: pointer; }
.blc-status label:has(input:checked) { border-color: var(--blc-burgundy); background: var(--blc-cream); }
.blc-status__actions { display: flex; align-items: center; gap: 1rem; margin: .8rem 0 .2rem; }
.blc-status__actions .blc-btn { display: inline-block; margin: 0; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.blc-status__ok { margin: .5rem 0 0; color: var(--blc-green); font-weight: 600; }
.blc-status__don label { cursor: default; }
.blc-status__don select { font: inherit; max-width: 16rem; }
.blc-status__don small { width: 100%; color: var(--blc-ink-soft); }

/* Fenetre de choix (contact) */
.blc-dialog { width: min(100% - 2rem, 520px); border: 0; border-radius: 16px; padding: 1.6rem 1.6rem 1.2rem; color: var(--blc-ink); background: #fff; box-shadow: 0 20px 60px rgba(43, 26, 29, .3); }
.blc-dialog::backdrop { background: rgba(43, 26, 29, .55); }
.blc-dialog h2 { margin: 0 2rem .3rem 0; font-size: 1.5rem; }
.blc-dialog > p { margin: 0 0 1rem; color: var(--blc-ink-soft); }
.blc-dialog__close { position: absolute; top: .8rem; right: .8rem; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--blc-sand-soft); color: var(--blc-ink); cursor: pointer; }
.blc-dialog__close:hover { background: var(--blc-sand); }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1px solid var(--blc-sand); border-radius: 12px; text-decoration: none; color: var(--blc-ink); transition: border-color .15s, background .15s; }
.choice:hover, .choice:focus-visible { border-color: var(--blc-burgundy); background: var(--blc-cream); color: var(--blc-ink); }
.choice__icon { display: inline-flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--blc-burgundy); color: #fff; }
.choice:nth-child(2) .choice__icon { background: var(--blc-sand-soft); color: var(--blc-burgundy); }
.copy-line { margin: 1rem 0 0; font-size: .88rem; color: var(--blc-ink-soft); }
.copy-line__box { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .35rem; padding: .45rem .5rem .45rem .8rem; background: var(--blc-cream); border-radius: 10px; }
.copy-line code { font-family: inherit; font-size: .95rem; color: var(--blc-ink); overflow-wrap: anywhere; }

/* Pied de page */
.site-footer { background: var(--blc-burgundy-dark); color: #f6e7da; margin-top: 3rem; padding: 2.2rem 0 1rem; font-size: .95rem; }
.site-footer a { color: #f6e7da; }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 1.5rem; padding-top: .9rem; font-size: .85rem; opacity: .85; }
.footer-login { float: right; text-decoration: none; opacity: .7; }
.footer-login:hover { opacity: 1; text-decoration: underline; }
.footer-login .icon { width: 1em; height: 1em; vertical-align: -.1em; }
.fb-feed { background: #fff; color: var(--blc-ink); border-radius: var(--blc-radius); padding: .8rem; max-height: 360px; overflow: auto; }
.fb-feed a { color: var(--blc-burgundy); }

/* Recherche du bandeau */
.header-search { position: relative; }
.header-icon { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: none; color: var(--blc-burgundy); cursor: pointer; }
.header-icon:hover, .header-icon[aria-expanded="true"] { background: var(--blc-cream); }
.header-search__form { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; display: flex; gap: .4rem; width: min(340px, 90vw); padding: .6rem; background: #fff; border: 1px solid var(--blc-sand); border-radius: 12px; box-shadow: var(--blc-shadow); }
.header-search__form[hidden] { display: none; }
.header-search__form input { flex: 1; min-width: 0; font: inherit; font-size: .95rem; padding: .5rem .7rem; border: 1px solid #d4c4ae; border-radius: 8px; }
.menu-pdf .icon { width: 1.05em; height: 1.05em; margin-right: .35rem; vertical-align: -.15em; }
.menu-pdf small { color: var(--blc-ink-soft); font-size: .75rem; }
.search-list { line-height: 2; }

/* Colonne laterale : 4 vignettes visibles (2 x 2), la suite en faisant defiler */
.sidebar .blc-carousel__track { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: calc(50% - 5px); }
.sidebar .blc-carousel .blc-tile { max-width: none; aspect-ratio: 1; }
.sidebar .blc-tile__label { padding: 18px 8px 6px; }
.sidebar .blc-tile__label strong { font-size: .85rem; }
.sidebar .blc-tile__label small { font-size: .68rem; }
.sidebar .blc-tile__wait, .sidebar .blc-tile__badges .blc-badge + .blc-badge { display: none; }
.sidebar .blc-badge { font-size: .62rem; padding: 3px 5px; }
.sidebar .blc-carousel__nav { width: 28px; height: 28px; font-size: 1.2rem; }

/* Chiffres de l'accueil */
.stats { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stats li { background: #fff; border: 1px solid var(--blc-sand); border-radius: var(--blc-radius); padding: .9rem 1rem; text-align: center; }
.stats strong { display: block; font-family: var(--blc-serif); font-size: 2.2rem; line-height: 1.1; color: var(--blc-coral); }
.stats span { font-size: .92rem; color: var(--blc-ink-soft); }

/* Nous aider */
.help-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.6rem; }
.help-jump a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--blc-sand); text-decoration: none; color: var(--blc-ink); font-weight: 600; font-size: .92rem; }
.help-jump a:hover { border-color: var(--blc-burgundy); color: var(--blc-burgundy); }
.help-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.help-block { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--blc-sand); border-radius: 16px; padding: 1.4rem 1.5rem; scroll-margin-top: 90px; box-shadow: var(--blc-shadow); }
.help-block h2, .help-foster h2 { margin: .7rem 0 .5rem; }
.help-block p { margin: 0 0 .8rem; }
.help-block__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px; background: var(--blc-coral-bg); color: var(--blc-coral); }
.help-block__icon .icon { width: 26px; height: 26px; }
#covoiturage .help-block__icon { background: var(--blc-sand-soft); color: var(--blc-burgundy); }
.help-block__fact { padding: .6rem .8rem; border-radius: 10px; background: var(--blc-cream); font-size: .95rem; }
.help-block__action { margin-top: auto; padding-top: .4rem; }
.help-block__action .btn { padding: .75rem 1.4rem; font-size: 1rem; border-radius: 10px; }
.help-block__action .give-btn, .help-block__action button { font: inherit; font-weight: 600; padding: .75rem 1.4rem; border: 0; border-radius: 10px; background: var(--blc-coral); color: #fff; cursor: pointer; }
.help-foster { margin-top: 2rem; padding: 1.6rem 1.6rem 1rem; background: var(--blc-green-bg); border-radius: 16px; scroll-margin-top: 90px; }
.help-foster .help-block__icon { background: #fff; color: var(--blc-green); }
.help-foster__lead { max-width: 70ch; font-size: 1.05rem; }
.help-foster__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 1rem 0; }
.help-foster h3 { margin: 0 0 .5rem; color: var(--blc-green); }
.help-foster__form { background: #fff; border-radius: var(--blc-radius); padding: 1.3rem 1.4rem .6rem; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--blc-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Adopter en 4 etapes */
.adopt-steps { margin: 2.5rem 0 1rem; }
.adopt-steps h2 { margin: 0 0 1rem; }
.adopt-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.adopt-steps__list li { position: relative; background: #fff; border: 1px solid var(--blc-sand); border-radius: var(--blc-radius); padding: 1rem 1.1rem; max-width: none; }
.adopt-steps__num { position: relative; display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; margin-bottom: .5rem; border-radius: 50%; background: var(--blc-sand-soft); color: var(--blc-burgundy); }
.adopt-steps__num > span { position: absolute; right: -4px; top: -4px; display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: var(--blc-coral); color: #fff; font-size: .72rem; font-weight: 700; }
.adopt-steps__list strong { display: block; font-family: var(--blc-serif); font-size: 1.1rem; color: var(--blc-burgundy-dark); }
.adopt-steps__list p { margin: .3rem 0 0; font-size: .92rem; color: var(--blc-ink-soft); }
.faq { margin-top: 1.2rem; display: grid; gap: 8px; }
.faq details { background: #fff; border: 1px solid var(--blc-sand); border-radius: 10px; padding: .7rem 1rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: .5rem 0 .2rem; }

.dog__wait { display: inline-block; margin: -.6rem 0 1rem; padding: .2rem .7rem; border-radius: 999px; background: var(--blc-coral-bg); color: var(--blc-coral); font-weight: 600; font-size: .9rem; }

/* Sous-menus : icone devant l'intitule */
.site-nav .sub-menu { min-width: 270px; }
.site-nav .sub-menu a { display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.site-nav .sub-menu a > .icon { width: 1.05em; height: 1.05em; color: var(--blc-coral); }
.site-nav .sub-menu a.menu-pdf > .icon { margin-right: 0; }

/* Accueil : presentation de l'association */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: 2.2rem 0 1rem; }
.home-hero h1 { margin: .6rem 0 .6rem; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; }
.home-hero__lead { margin: 0; max-width: 56ch; color: var(--blc-ink-soft); font-size: 1.1rem; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.3rem 0 0; }
.home-hero__photos { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: 340px; overflow: hidden; }
.home-hero__photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 14px; box-shadow: var(--blc-shadow); }
.home-hero__photos img:first-child { grid-row: span 2; }
.home-about { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin: 1.8rem 0 0; padding: 1.5rem; background: #fff; border: 1px solid var(--blc-sand); border-radius: 16px; scroll-margin-top: 90px; }
.home-about h2, .home-section h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; }
.home-about h2 > .icon, .home-section h2 > .icon { width: 1.05em; height: 1.05em; color: var(--blc-coral); }
.home-about p { margin: 0 0 .7rem; max-width: 68ch; }
.home-about__story { grid-column: 1 / -1; margin-top: -.6rem; }
.home-about__story .story p { max-width: 75ch; }
.home-about__story summary { cursor: pointer; font-weight: 600; color: var(--blc-burgundy); }
.story { margin-top: .8rem; padding: 1.4rem 1.6rem; border-left: 4px solid var(--blc-coral); border-radius: 0 14px 14px 0; background: var(--blc-cream); font-family: var(--blc-serif); font-size: 1.08rem; line-height: 1.75; color: var(--blc-ink); }
.story p { margin: 0 0 1rem; max-width: 64ch; }
.story p:first-child::first-letter { float: left; margin: .1rem .5rem 0 0; font-size: 3.4rem; line-height: .85; font-weight: 700; color: var(--blc-coral); }
.story__end { font-weight: 700; font-style: italic; color: var(--blc-burgundy); margin-bottom: 0 !important; }
.home-quote { margin: 0; padding: 1.4rem 1.5rem; border-radius: 14px; background: var(--blc-burgundy); color: #fff; }
.home-quote p { margin: 0; font-family: var(--blc-serif); font-size: 1.35rem; font-style: italic; line-height: 1.35; }
.home-quote footer { margin-top: .6rem; font-size: .85rem; opacity: .8; }
.home-section { margin: 2.2rem 0 0; scroll-margin-top: 90px; }
.home-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; }
.home-section__more { font-weight: 600; color: var(--blc-burgundy); text-decoration: none; }
.home-section__more:hover { text-decoration: underline; }
.home-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.home-steps li { position: relative; background: #fff; border: 1px solid var(--blc-sand); border-radius: var(--blc-radius); padding: 1rem 1.1rem; }
.home-steps h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .4rem; font-size: 1.1rem; }
.home-steps p { margin: 0; font-size: .95rem; color: var(--blc-ink-soft); }
.home-steps__icon { display: inline-flex; flex: none; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 12px; background: var(--blc-coral-bg); color: var(--blc-coral); }
.home-steps li::after { counter-increment: step; content: counter(step); position: absolute; top: .6rem; right: 1rem; font-family: var(--blc-serif); font-size: 1.6rem; font-weight: 700; color: var(--blc-sand); }
.home-dogs .blc-carousel .blc-tile { flex: 0 0 190px; max-width: 190px; }
.home-dogs__body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; align-items: start; }
.home-dogs__links { display: flex; flex-direction: column; gap: .5rem; }
.home-dogs__links a { display: flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--blc-sand); text-decoration: none; color: var(--blc-ink); font-size: .9rem; font-weight: 600; }
.home-dogs__links a:hover { border-color: var(--blc-burgundy); color: var(--blc-burgundy); }
.home-dogs__links .icon { width: 1.05em; height: 1.05em; color: var(--blc-coral); }
.home-help { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-help__card { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--blc-sand); border-radius: var(--blc-radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--blc-ink-soft); font-size: .93rem; }
.home-help__card:hover { border-color: var(--blc-burgundy); box-shadow: var(--blc-shadow); }
.home-help__card > .icon { width: 28px; height: 28px; color: var(--blc-coral); }
.home-help__card strong { display: block; margin-bottom: .15rem; font-family: var(--blc-serif); font-size: 1.08rem; color: var(--blc-burgundy-dark); }
.home-news { margin-bottom: 2rem; }
.stats li:has(> a) { padding: 0; }
.stats li > a { display: block; height: 100%; padding: .9rem 1rem; border-radius: inherit; text-decoration: none; color: inherit; }
.stats li:has(> a):hover { border-color: var(--blc-burgundy); box-shadow: var(--blc-shadow); }
.home-news__feed { background: #fff; border: 1px solid var(--blc-sand); border-radius: 16px; padding: 1.2rem; }

/* Page Le border collie */
.breed-facts { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.breed-facts li { display: flex; flex-direction: column; gap: .15rem; background: #fff; border: 1px solid var(--blc-sand); border-radius: var(--blc-radius); padding: .9rem 1rem; }
.breed-facts strong { display: flex; align-items: center; gap: .6rem; font-family: var(--blc-serif); font-size: 1.08rem; color: var(--blc-burgundy-dark); line-height: 1.25; }
.breed-facts li > span:last-child { font-size: .9rem; color: var(--blc-ink-soft); }
.breed-facts__icon { display: inline-flex; flex: none; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--blc-coral-bg); color: var(--blc-coral); }
.breed-facts__icon .icon { width: 19px; height: 19px; }
.coats { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.coats li { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; background: var(--blc-cream); border-radius: var(--blc-radius); padding: .9rem 1rem; }
.coats strong { font-family: var(--blc-serif); color: var(--blc-burgundy-dark); }
.coats li > span:last-child { font-size: .9rem; color: var(--blc-ink-soft); }
.coat { width: 44px; height: 44px; margin-bottom: .3rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35); }
.coat--noir-blanc { background: linear-gradient(135deg, #1c1a1a 55%, #fff 55%); }
.coat--tricolore { background: conic-gradient(#1c1a1a 0 50%, #b8672e 50% 75%, #fff 75%); }
.coat--bleu-merle { background: radial-gradient(circle at 30% 35%, #3f4650 0 18%, transparent 19%), radial-gradient(circle at 68% 62%, #2c3138 0 16%, transparent 17%), #9aa3ad; }
.coat--rouge { background: linear-gradient(135deg, #7a3e1d 55%, #fff 55%); }
.coat--rouge-merle { background: radial-gradient(circle at 30% 35%, #8a4a26 0 18%, transparent 19%), radial-gradient(circle at 68% 62%, #7a3e1d 0 16%, transparent 17%), #d7a882; }
.breed-section { margin: 0 0 1.4rem; padding: 1.5rem; background: #fff; border: 1px solid var(--blc-sand); border-radius: 16px; scroll-margin-top: 90px; }
.breed-section > h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; }
.breed-section > h2 > .icon { width: 1.1em; height: 1.1em; color: var(--blc-coral); }
.breed-section > p { max-width: 70ch; }
.breed-section > .breed-note, .breed-section > .breed-warning { max-width: none; }
.breed-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 1rem 0; }
.breed-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1rem 0; }
.breed-card { background: var(--blc-cream); border-radius: var(--blc-radius); padding: 1rem 1.1rem; }
.breed-card h3 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .35rem; font-size: 1.08rem; }
.breed-card h3 > .icon { width: 22px; height: 22px; color: var(--blc-coral); }
.breed-card p { margin: 0; font-size: .95rem; color: var(--blc-ink-soft); }
.breed-note, .breed-warning { display: flex; gap: .6rem; align-items: flex-start; margin: .8rem 0 0; padding: .7rem .9rem; border-radius: 10px; background: var(--blc-sand-soft); font-size: .95rem; max-width: none; }
.breed-note > .icon, .breed-warning > .icon { margin-top: .1em; color: var(--blc-burgundy); }
.breed-warning { background: var(--blc-amber-bg); color: var(--blc-ink); }
.breed-warning > .icon { color: var(--blc-amber); }
.timeline { list-style: none; margin: 1rem 0 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--blc-sand); }
.timeline li { position: relative; margin: 0 0 .9rem; padding-left: .4rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.4rem - 9px); top: .35em; width: 15px; height: 15px; border-radius: 50%; background: var(--blc-coral); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--blc-sand); }
.timeline strong { display: block; font-family: var(--blc-serif); color: var(--blc-burgundy-dark); }
.tags { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { padding: .3rem .8rem; border-radius: 999px; background: var(--blc-coral-bg); color: var(--blc-burgundy-dark); font-weight: 600; font-size: .9rem; }
.breed-list { border-radius: var(--blc-radius); padding: 1rem 1.1rem; }
.breed-list h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.breed-list ul { list-style: none; margin: 0; padding: 0; }
.breed-list li { position: relative; padding-left: 1.6rem; margin-bottom: .4rem; }
.breed-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.15rem; height: 1.15rem; border-radius: 50%; }
.breed-list--no { background: var(--blc-coral-bg); }
.breed-list--no li::before { background: var(--blc-coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 62% no-repeat; }
.breed-list--ok { background: var(--blc-green-bg); }
.breed-list--ok li::before { background: var(--blc-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat; }
.breed-cta { text-align: center; padding: 1.8rem 1rem; margin-bottom: 2rem; border-radius: 16px; background: var(--blc-cream); border: 1px solid var(--blc-sand); }
.breed-cta h2 { margin: 0 0 .4rem; }
.breed-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1rem 0 0; }

@media (max-width: 960px) {
	.home-hero, .home-about { grid-template-columns: minmax(0, 1fr); }
	.home-hero__photos { height: 240px; }
	.home-steps, .home-help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.coats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-nav .sub-menu a { white-space: normal; }
	.nav-toggle { display: inline-block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--blc-sand); padding: .5rem 1rem 1rem; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; }
	.site-nav .sub-menu { display: flex; position: static; border: 0; padding-left: 1rem; box-shadow: none; }
	.header-actions { margin-left: 0; }
	.site-header__bar { flex-wrap: wrap; }
	.layout--sidebar, .dog, .footer-grid { grid-template-columns: minmax(0, 1fr); }
	.adopt-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.help-foster__cols { grid-template-columns: minmax(0, 1fr); }
	.header-search { position: static; }
	.header-search__form { left: 1rem; right: 1rem; width: auto; }
}
/* Dons et covoiturage : cote a cote sur ordinateur, cartes a faire glisser sur telephone */
@media (max-width: 760px) {
	.home-steps, .home-help { grid-template-columns: minmax(0, 1fr); }
	.home-hero__photos { height: 190px; }
	.home-about { padding: 1.1rem; }
	.home-dogs .blc-carousel .blc-tile { flex-basis: 150px; max-width: 150px; }
	.home-dogs__body { grid-template-columns: minmax(0, 1fr); }
	.home-dogs__links { flex-direction: row; overflow-x: auto; margin-inline: -1rem; padding: 0 1rem 4px; scrollbar-width: none; }
	.home-dogs__links a { flex: none; }
	.stats li > a { display: flex; align-items: baseline; gap: .7rem; padding: .6rem 1rem; }
	.breed-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.breed-cards, .breed-cols, .coats { grid-template-columns: minmax(0, 1fr); }
	.coats li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: .8rem; align-items: center; }
	.coat { grid-row: span 2; margin: 0; }
	.breed-section { padding: 1.1rem; }
	.breed .help-jump { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 0 1rem 6px; scrollbar-width: none; }
	.breed .help-jump a { flex: none; }
	.help-pair { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -1rem; padding: 0 1rem 10px; scrollbar-width: thin; }
	.help-block { flex: 0 0 86%; scroll-snap-align: center; }
	.stats { grid-template-columns: minmax(0, 1fr); }
	.stats li { display: flex; align-items: baseline; gap: .7rem; text-align: left; padding: .6rem 1rem; }
	.stats strong { font-size: 1.7rem; }
}
@media (max-width: 520px) {
	body { font-size: 16px; }
	.facts { grid-template-columns: 1fr; }
	.header-actions .btn { padding: .5rem .7rem; font-size: .85rem; }
	.site-header__bar { gap: .4rem; }
	.header-fb { display: none; } /* deja dans le pied de page */
	.nav-toggle { order: 3; margin-left: 0; }
	.header-actions { margin-left: auto; gap: .3rem; }
	.dog__cta .btn { width: 100%; }
	.contact-form-card { padding: 1.1rem 1rem .4rem; }
	.footer-login { float: none; display: block; margin-top: .5rem; }
	.adopt-steps__list { grid-template-columns: minmax(0, 1fr); }
	.adopt-steps__list li { display: grid; grid-template-columns: 46px 1fr; column-gap: .8rem; align-items: start; }
	.adopt-steps__num { grid-row: span 2; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
