/* ============================================
   Design System — Association Vénus
   ============================================ */

:root {
  --venus-jet:    #02272D;
  --venus-olive:  #758A7B;
  --venus-ash:    #C9D7BE;
  --venus-ivory:  #FAFAEF;
  --venus-carbon: #1C211D;
  --venus-jet-light:   rgba(2,39,45,0.08);
  --venus-olive-light: rgba(117,138,123,0.15);
  --venus-ash-light:   rgba(201,215,190,0.3);
  --bg:       #FAFAEF;
  --bg-alt:   #F2F1E5;
  --bg-dark:  #02272D;
  --bg-card:  #FFFFFF;
  --bg-olive: #E8EDE5;
  --text:       #1C211D;
  --text-muted: #4F6254; /* ≥ 5,5:1 sur tous les fonds clairs (WCAG AA, #41) ; était #758A7B à 3,5:1 */
  --text-light: #5A6D5F; /* ≥ 4,7:1 (WCAG AA, #41) ; était #A8B8AC à 2:1 */
  --text-olive: #566A5C; /* olive pour du texte (liens, libellés de section) : ≥ 5,5:1 ; --venus-olive reste pour les fonds et décors */
  --placeholder: #758A7B; /* indication de saisie, volontairement plus claire que le texte (≥ 3,5:1) */
  --text-white: #FAFAEF;
  --border:       #DDE3D8;
  --border-light: #EAEEE6;
  --text-label: #3A4740;
  --success:      #1E7B46;
  --success-bg:   #E8F4EC;
  --danger:       #C0392B;
  --danger-text:  #A34A2A;
  --danger-bg:    #FEEDE8;
  --warning:      #8A6D3B;
  --warning-bg:   #FEF6E6;
  --info:         #2F5C93;
  --info-bg:      #EEF4FD;
  --shadow-sm: 0 1px 4px rgba(28,33,29,0.06), 0 1px 2px rgba(28,33,29,0.04);
  --shadow-md: 0 4px 16px rgba(28,33,29,0.08), 0 2px 8px rgba(28,33,29,0.05);
  --shadow-lg: 0 10px 40px rgba(28,33,29,0.10), 0 4px 16px rgba(28,33,29,0.07);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-pill: 9999px;
  --font-h1:   'Montserrat', sans-serif;
  --font-h2:   'Fraunces', Georgia, serif;
  --font-body: 'Glacial Indifference', 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --transition:      0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);
  --container:  1200px;
  --nav-height: 72px;
  /* Échelle d'espacement 4/8 (refonte back-office) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
ul { list-style: none; }

h1 { font-family: var(--font-h1); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; color: var(--text); font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-family: var(--font-h2); font-style: italic; font-weight: 600; line-height: 1.2; color: var(--text); font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h1, h2 { overflow-wrap: anywhere; } /* un mot très long (nom d'animal, titre d'article) ne déborde pas de l'écran (#49) */
h3 { font-family: var(--font-h1); font-weight: 700; font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text); }
h4 { font-family: var(--font-h1); font-weight: 600; font-size: 0.9375rem; color: var(--text); }
p  { font-family: var(--font-body); color: var(--text-muted); line-height: 1.75; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 900px) { .section { padding: 64px 0; } }

.section-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-olive); margin-bottom: 14px; }
.section-label::before { content: ''; display: block; width: 20px; height: 2px; background: var(--venus-olive); border-radius: 2px; }
.section-title    { margin-bottom: 16px; }
.section-subtitle { font-size: 1.0625rem; max-width: 540px; margin-bottom: 48px; line-height: 1.75; }
.text-center { text-align: center; }
.text-center .section-subtitle, .text-center .section-label { margin-left: auto; margin-right: auto; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-pill); font-family: var(--font-h1); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transition: all var(--transition); white-space: nowrap; cursor: pointer; border: none; }
.btn-primary { background: var(--venus-jet); color: var(--venus-ivory); box-shadow: 0 4px 20px rgba(2,39,45,0.18); }
.btn-primary:hover { background: var(--venus-carbon); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(2,39,45,0.25); }
.btn-secondary { background: transparent; color: var(--venus-jet); border: 2px solid var(--venus-jet); }
.btn-secondary:hover { background: var(--venus-jet); color: var(--venus-ivory); transform: translateY(-2px); }
.btn-olive { background: var(--venus-olive); color: var(--venus-ivory); }
.btn-olive:hover { background: #5e7068; transform: translateY(-2px); }
.btn-ivory { background: var(--venus-ivory); color: var(--venus-jet); box-shadow: var(--shadow-md); }
.btn-ivory:hover { background: var(--venus-ash); transform: translateY(-2px); }
.btn-ghost { background: rgba(250,250,239,0.12); color: var(--venus-ivory); border: 2px solid rgba(250,250,239,0.3); }
.btn-ghost:hover { background: rgba(250,250,239,0.22); border-color: rgba(250,250,239,0.5); transform: translateY(-2px); }
.btn-jet { background: var(--venus-jet); color: var(--venus-ivory); box-shadow: 0 4px 20px rgba(2,39,45,0.2); display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-pill); font-family: var(--font-h1); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transition: all var(--transition); }
.btn-jet:hover { background: var(--venus-carbon); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(2,39,45,0.28); }
.btn-ghost-dark { background: transparent; color: var(--venus-jet); border: 2px solid rgba(2,39,45,0.3); display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-pill); font-family: var(--font-h1); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transition: all var(--transition); }
.btn-ghost-dark:hover { background: rgba(2,39,45,0.08); border-color: var(--venus-jet); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.75rem; }
.btn-lg { padding: 18px 40px; font-size: 0.875rem; }
@media (max-width: 900px) { .btn { min-height: 44px; } }
/* .btn est en nowrap : sous 600 px, les grands boutons (« Je veux adopter {nom} ») et les boutons
   des articles (libellé libre) passent à la ligne */
@media (max-width: 600px) { .btn-lg, .block-button .btn { white-space: normal; text-align: center; } }

/* Cards */
.card { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); overflow: hidden; transition: all var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-pill); font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.badge-jet   { background: var(--venus-jet); color: var(--venus-ivory); }
.badge-olive { background: var(--venus-olive-light); color: var(--venus-olive); border: 1px solid var(--venus-olive); }
.badge-ash   { background: var(--venus-ash-light); color: #4A6052; }
.badge-alert { background: #FEEDE8; color: #A34A2A; }
.badge-doc   { background: var(--bg-alt); color: var(--text-muted); }

/* Switch (remplace les checkbox natives) */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch-input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-slider { position: relative; display: inline-block; width: 44px; height: 24px; background: var(--border); border-radius: var(--radius-pill); transition: var(--transition); flex-shrink: 0; }
.switch-slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: var(--transition); box-shadow: var(--shadow-sm); }
.switch-input:checked + .switch-slider { background: var(--venus-olive); }
.switch-input:checked + .switch-slider::before { transform: translateX(20px); }
.switch-input:focus-visible + .switch-slider { outline: 2px solid var(--venus-olive); outline-offset: 2px; }
.switch-label-text { font-size: 0.9375rem; color: var(--text); font-weight: 500; }

/* Formulaires */
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.form-control { width: 100%; padding: 14px 18px; border: 2px solid var(--border); border-radius: var(--radius-md); font-family: var(--font-body); font-size: 0.9375rem; color: var(--text); background: white; transition: border-color var(--transition); outline: none; }
.form-control:focus { border-color: var(--venus-olive); box-shadow: 0 0 0 3px rgba(117,138,123,0.15); }
.form-control::placeholder { color: var(--placeholder); }
textarea.form-control { resize: vertical; min-height: 140px; }
@media (max-width: 900px) { .form-control { font-size: 16px; } } /* < 16 px : iOS zoome à la saisie */
/* Champs côte à côte (prénom / nom…) : une seule colonne sous 768 px */
.pub-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 767.98px) { .pub-form-row { grid-template-columns: 1fr; gap: 0; } }
/* Case à cocher avec son libellé : cible tactile de 44 px de haut sous 900 px */
.pub-check { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.pub-check + .pub-check { margin-top: 8px; }
@media (max-width: 900px) {
  .pub-check { min-height: 44px; gap: 10px; }
  .pub-check + .pub-check { margin-top: 0; }
  .pub-check input[type=checkbox] { width: 20px; height: 20px; flex-shrink: 0; margin: 0; }
}

/* Page hero interne — même fond que le hero de l'accueil, pour une identité visuelle uniforme */
.page-hero { background: var(--venus-ash); padding: calc(var(--nav-height) + 64px) 0 80px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; bottom: -60px; right: -80px; width: 320px; height: 320px; background: var(--venus-olive); opacity: 0.08; border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; pointer-events: none; }
.page-hero h1 { color: var(--venus-jet); margin-bottom: 16px; }
.page-hero p  { color: rgba(2,39,45,0.78); font-size: 1.0625rem; max-width: 560px; }
@media (max-width: 900px) { .page-hero { padding: calc(var(--nav-height) + 40px) 0 48px; } }

/* Mises en page à deux colonnes des pages publiques (#49) : une seule colonne sous 900 px.
   even 1fr 1fr · main 1.2fr 1fr (formulaire + encart) · animal 1.1fr 0.9fr · aside formulaire + carte de 380 px */
.pub-split { display: grid; gap: 80px; align-items: start; }
.pub-split > * { min-width: 0; }
.pub-split--even { grid-template-columns: 1fr 1fr; }
.pub-split--main { grid-template-columns: 1.2fr 1fr; }
.pub-split--animal { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
.pub-split--aside { grid-template-columns: 1fr 380px; gap: 64px; }
.pub-split--center { align-items: center; }
.pub-split--stretch { align-items: stretch; }
@media (max-width: 900px) { .pub-split { grid-template-columns: 1fr; gap: 40px; } }

/* Lien « Retour à… » des cartes latérales (demande, commande) */
.pub-back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--venus-olive); text-decoration: none; }

.pub-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 56px; }

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-centered { 0%, 100% { transform: translate(-50%,-50%); } 50% { transform: translate(-50%, calc(-50% - 12px)); } }

/* ===== NAVBAR ===== */
/* Fond et flou sur ::before : un backdrop-filter sur .navbar elle-même en ferait le bloc conteneur du
   menu mobile (position fixed), réduit alors à ~48 px une fois la page défilée (#49) */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-height); transition: box-shadow var(--transition); }
.navbar::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: background-color var(--transition); }
.navbar.scrolled { box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(28,33,29,0.06); }
.navbar.scrolled::before { background: rgba(250,250,239,0.96); backdrop-filter: blur(12px); }
.navbar__inner { display: flex; align-items: center; height: 100%; gap: 32px; }
.navbar__logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-height: 44px; }
.navbar__logo-mark { width: 38px; height: 38px; background: var(--venus-jet); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.navbar__logo-mark span { font-family: var(--font-h1); font-size: 1.125rem; font-weight: 900; color: var(--venus-ivory); line-height: 1; }
.navbar__logo-img { display: block; height: 38px; width: auto; max-width: 120px; object-fit: contain; flex-shrink: 0; }
@media (max-width: 600px) { .navbar__logo-img { max-width: 88px; } }
.navbar__logo-text { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.navbar__logo-name { font-family: var(--font-h1); font-size: 1.0625rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--venus-jet); }
.navbar__logo-sub { font-family: var(--font-body); font-size: 0.625rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.navbar__nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.navbar__link { padding: 8px 14px; border-radius: var(--radius-pill); font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; color: var(--text-muted); transition: all var(--transition); letter-spacing: 0.02em; }
.navbar__link:hover, .navbar__link.active { color: var(--venus-jet); background: var(--venus-jet-light); }
.navbar__cta { margin-left: 12px; }
.navbar__burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; }
.navbar__burger span { display: block; width: 22px; height: 2px; background: var(--venus-jet); border-radius: 2px; transition: all var(--transition); }
/* Entre 901 et 1023 px, les 8 liens demandent 1016 px : liens resserrés pour tenir sur une ligne */
@media (min-width: 901px) and (max-width: 1023.98px) {
  .navbar__inner { gap: 16px; }
  .navbar__link { padding: 8px 8px; }
  .navbar__cta { margin-left: 4px; padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 900px) {
  .navbar__burger { display: flex; }
  /* Panneau pleine largeur sous la barre : pas de voile (l'ancien .navbar__overlay couvrait toute
     la page en permanence et captait les clics, #49). visibility retire les liens fermés du clavier. */
  .navbar__nav { position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; background: var(--venus-ivory); flex-direction: column; align-items: stretch; gap: 0; padding: 24px; transform: translateX(100%); visibility: hidden; transition: transform var(--transition-slow), visibility 0s linear 0.4s; margin-left: 0; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--border); }
  .navbar__nav.open { transform: translateX(0); visibility: visible; transition: transform var(--transition-slow), visibility 0s; }
  /* transition: all des liens et du bouton ferait aussi transiter la visibility héritée : liens
     invisibles, donc impossibles à focaliser, pendant ~200 ms après l'ouverture */
  .navbar__nav > * { transition: all var(--transition), visibility 0s; }
  .navbar__link { display: flex; align-items: center; min-height: 44px; padding: 18px 20px; font-size: 1.0625rem; border-radius: var(--radius-md); color: var(--text); }
  .navbar__cta { margin-left: 0; margin-top: 16px; padding: 18px; border-radius: var(--radius-md); justify-content: center; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  /* Menu ouvert : barre opaque, au ton du panneau */
  .navbar.menu-open::before { background: var(--venus-ivory); }
  .navbar.menu-open .navbar__burger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .navbar.menu-open .navbar__burger span:nth-child(2) { opacity: 0; }
  .navbar.menu-open .navbar__burger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* ===== FOOTER ===== */
.footer { background: var(--venus-carbon); color: var(--venus-ivory); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__logo { display: flex; align-items: center; gap: 12px; }
.footer__logo-mark { width: 36px; height: 36px; background: var(--venus-olive); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer__logo-mark span { font-family: var(--font-h1); font-weight: 900; color: var(--venus-ivory); }
.footer__logo-img { display: block; height: 36px; width: auto; max-width: 120px; object-fit: contain; flex-shrink: 0; padding: 3px; background: var(--venus-ivory); border-radius: 8px; box-sizing: content-box; }
.footer__logo-name { font-family: var(--font-h1); font-size: 0.9375rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--venus-ivory); }
.footer__tagline { color: rgba(250,250,239,0.55); font-size: 0.875rem; line-height: 1.7; }
.footer__col-title { font-family: var(--font-h1); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(250,250,239,0.45); margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link { color: rgba(250,250,239,0.7); font-size: 0.875rem; transition: color var(--transition); }
.footer__link:hover { color: var(--venus-ivory); }
.footer__bottom { padding-top: 32px; border-top: 1px solid rgba(250,250,239,0.08); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__copy { font-size: 0.8125rem; color: rgba(250,250,239,0.65); }
.footer__legal { display: flex; flex-wrap: wrap; column-gap: 20px; }
.footer__legal .footer__link { font-size: 0.8125rem; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__links { gap: 0; }
  a.footer__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
}
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }

/* ===== HERO ===== */
.hero { min-height: 100vh; background: var(--venus-ash); position: relative; overflow: hidden; display: flex; flex-direction: column; padding-top: var(--nav-height); }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; flex: 1; padding-top: 80px; padding-bottom: 80px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(2,39,45,0.08); border: 1px solid rgba(2,39,45,0.14); color: var(--venus-jet); padding: 8px 16px; border-radius: var(--radius-pill); font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 28px; }
.hero__dot { width: 6px; height: 6px; background: var(--venus-jet); border-radius: 50%; display: block; animation: float 2s ease-in-out infinite; }
.hero__title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 28px; font-size: clamp(2.25rem, 5vw, 4rem); }
.hero__title-line { display: block; color: var(--venus-jet); line-height: 1.05; }
.hero__title-italic { display: block; font-family: var(--font-h2); font-style: italic; font-weight: 600; font-size: clamp(1.75rem, 4vw, 3rem); color: var(--venus-olive); text-transform: none; letter-spacing: 0; line-height: 1.2; margin-top: 8px; }
.hero__subtitle { color: rgba(2,39,45,0.78); font-size: 1.0625rem; max-width: 440px; margin-bottom: 40px; line-height: 1.75; }
.hero__subtitle strong { color: var(--venus-jet); font-weight: 700; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__visual { position: relative; height: 420px; display: flex; align-items: center; justify-content: center; }
.hero__heart { font-size: 14rem; line-height: 1; color: var(--venus-olive); opacity: 0.55; user-select: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: float-centered 5s ease-in-out infinite; filter: drop-shadow(0 8px 32px rgba(117,138,123,0.3)); }
.hero__animal-card { position: absolute; background: rgba(250,250,239,0.85); backdrop-filter: blur(12px); border: 1px solid rgba(2,39,45,0.1); border-radius: var(--radius-lg); padding: 16px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 4px 24px rgba(2,39,45,0.1); }
.hero__animal-card:nth-child(2) { bottom: 40px; left: 0; animation: float 6s ease-in-out infinite; }
.hero__animal-card--sm { top: 40px; right: 0; animation: float 8s ease-in-out infinite reverse; }
.hero__animal-emoji { font-size: 2.25rem; color: var(--venus-olive); }
.hero__animal-info { display: flex; flex-direction: column; }
.hero__animal-info strong { color: var(--venus-jet); font-family: var(--font-body); font-size: 0.9375rem; font-weight: 700; }
.hero__animal-info span { color: var(--text-muted); font-size: 0.8125rem; }
.hero__stats { background: var(--venus-jet); position: relative; z-index: 1; }
/* Nombre de chiffres variable (config app.association.home_stats) : une colonne par chiffre */
.stats-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.stat-item { padding: 28px 24px; text-align: center; border-right: 1px solid rgba(250,250,239,0.08); }
.stat-item:last-child { border-right: none; }
.stat-item__value { font-family: var(--font-h1); font-weight: 800; font-size: 1.75rem; color: var(--venus-ash); line-height: 1; margin-bottom: 6px; }
.stat-item__label { font-family: var(--font-body); font-size: 0.8125rem; color: rgba(250,250,239,0.5); line-height: 1.4; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero__visual { height: 280px; }
  .hero__heart { font-size: 8rem; }
  .stats-row { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .stat-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat-item { border-right: none; }
}

/* Mission pilliers */
.mission__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 56px; }
.pillar-card { border-radius: var(--radius-xl); padding: 40px 32px; }
.pillar-card__icon { font-size: 3rem; margin-bottom: 24px; color: var(--venus-olive); }
.pillar-card h3 { margin-bottom: 12px; }
@media (max-width: 768px) { .mission__grid { grid-template-columns: 1fr; } }

/* Cartes animaux compactes (#80), communes à l'accueil et à /adoption : 4 par rangée (5 sur
   l'accueil) en bureau, 3 en tablette, 2 sur téléphone */
.animals-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.animals-grid--home { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.animals-grid > p { grid-column: 1 / -1; }
.animal-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: box-shadow var(--transition), transform var(--transition); }
.animal-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.animal-card:focus-within { outline: 2px solid var(--venus-olive); outline-offset: 2px; }
.animal-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.animal-card__link:focus-visible { outline: none; }
.animal-card__head { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--text-light); position: relative; background: var(--bg-olive); overflow: hidden; }
.animal-card__head img { width: 100%; height: 100%; object-fit: cover; }
.animal-card__badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.animal-card__badges .badge { padding: 3px 8px; font-size: 0.625rem; }
.animal-card__urgent { margin-right: auto; }
.animal-card__urgent svg { font-size: 12px; }
.animal-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.animal-card__name { font-family: var(--font-h1); font-size: 1.0625rem; font-weight: 700; color: var(--venus-jet); line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.animal-card__facts { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 0.8125rem; color: var(--text-muted); line-height: 1.4; }
.animal-card__facts li:not(:last-child)::after { content: '·'; margin: 0 6px; }
.animal-card__traits { font-size: 0.8125rem; line-height: 1.4; margin: 0; color: var(--text); }
.animal-card__summary { margin: 0 0 6px; font-size: 0.8125rem; line-height: 1.4; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.animal-card__ententes { display: flex; gap: 6px; margin-top: auto; }
.animal-card__entente { display: inline-flex; align-items: center; gap: 2px; padding: 3px 7px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; line-height: 1; border: 1px solid transparent; }
.animal-card__entente svg { font-size: 17px; }
.animal-card__entente--ok  { background: var(--venus-olive-light); color: var(--venus-olive); border-color: var(--venus-olive); }
.animal-card__entente--ko  { background: #FEEDE8; color: #A34A2A; border-color: #E8B4A2; }
.animal-card__entente--nsp { background: var(--bg-alt); color: var(--text-muted); border-color: var(--border-light); }
.animal-card__homes { display: flex; flex-wrap: wrap; gap: 4px; }
.animal-card__home { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--venus-ash-light); color: #4A6052; font-size: 0.6875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.animal-card__home svg { font-size: 12px; }
.animal-card__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; text-overflow: ellipsis; border: 0; }
@media (max-width: 1099.98px) { .animals-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 899.98px)  { .animals-grid, .animals-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599.98px)  {
  .animals-grid, .animals-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
  .animal-card__body { padding: 10px; gap: 6px; }
  .animal-card__name { font-size: 0.9375rem; }
  .animal-card__facts, .animal-card__traits { font-size: 0.75rem; }
  .animal-card__ententes { gap: 4px; }
  .animal-card__entente { padding: 3px 5px; }
}
/* Filtres de /adoption */
.adoption-filters { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; padding: 24px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); }
@media (max-width: 600px) { .adoption-filters .btn { width: 100%; } }
.adoption-filters__field { flex: 1; min-width: 160px; margin-bottom: 0; }
.adoption-filters__btn { flex-shrink: 0; }

/* Page Adopter (#81) : boutons Chien / Chat / NAC sous le titre, grands tant qu'aucune espèce n'est
   choisie, puis en barre compacte au-dessus des filtres */
.ado-hero { padding-bottom: 48px; }
.ado-hero h1 { margin-bottom: 24px; }
.ado-species { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 720px; margin-bottom: 28px; }
.ado-species__btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 24px 12px; border-radius: var(--radius-lg); background: var(--bg-card); border: 2px solid transparent; color: var(--venus-jet); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.ado-species__btn:hover { border-color: var(--venus-olive); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ado-species__btn:focus-visible { outline: 3px solid var(--venus-jet); outline-offset: 2px; }
.ado-species__btn svg { font-size: 2.5rem; color: var(--venus-olive); }
.ado-species__label { font-family: var(--font-h1); font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.ado-species__count { font-size: 0.8125rem; color: var(--text-muted); }
.ado-species--compact { gap: 10px; margin-bottom: 20px; }
.ado-species--compact .ado-species__btn { flex-direction: row; padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
.ado-species--compact .ado-species__btn svg { font-size: 1.375rem; }
.ado-species--compact .ado-species__label { font-size: 1rem; }
.ado-species__btn[aria-current="page"] { background: var(--venus-jet); border-color: var(--venus-jet); color: var(--venus-ivory); }
.ado-species__btn[aria-current="page"] svg { color: var(--venus-ash); }
.ado-species__btn[aria-current="page"] .ado-species__count { color: rgba(250,250,239,0.75); }
.ado-filters-section { padding: 40px 0 0; }
.ado-list { padding-top: 40px; }
.ado-list .section-title { margin-bottom: 4px; }
.ado-list .animals-grid { margin-top: 24px; }
.ado-list__count { font-size: 0.9375rem; margin: 0; }
.ado-list__empty { color: var(--text-muted); }
@media (max-width: 599.98px) {
  .ado-species { gap: 8px; }
  .ado-species__btn { padding: 16px 6px; }
  .ado-species__btn svg { font-size: 2rem; }
  .ado-species__label { font-size: 1rem; }
  .ado-species__count { font-size: 0.75rem; }
  .ado-species--compact .ado-species__btn { flex-direction: column; gap: 2px; padding: 8px 4px; }
  .ado-species--compact .ado-species__count { display: none; }
  /* Espèce choisie : la liste remonte (intro masquée, filtres sur deux colonnes) */
  .ado-hero--chosen { padding-bottom: 32px; }
  .ado-hero--chosen .ado-hero__intro { display: none; }
  .ado-filters-section { padding-top: 24px; }
  .adoption-filters { gap: 12px; padding: 16px; }
  .adoption-filters__field { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .ado-list { padding-top: 32px; }
}

/* Sponsor cards */
.sponsor-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; margin-top: 56px; }
.sponsor-card { display: flex; flex-direction: column; }
.sponsor-card__header { background: linear-gradient(135deg, #EDE9F0, var(--venus-ash)); aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; position: relative; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.sponsor-card__emoji { font-size: 5rem; }
.sponsor-card__urgent { position: absolute; top: 12px; right: 12px; }
.sponsor-card__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sponsor-card__name { font-size: 1.375rem; }
.sponsor-card__meta { font-size: 0.875rem; color: var(--text-muted); }
.sponsor-card__story { font-size: 0.9rem; line-height: 1.65; }
.sponsor-card__needs-title { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.sponsor-card__needs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sponsor-card__goal { display: flex; align-items: baseline; gap: 4px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.sponsor-card__goal-amount { font-family: var(--font-h1); font-size: 1.75rem; font-weight: 700; color: var(--venus-jet); }
.sponsor-card__goal-label { color: var(--text-muted); font-size: 0.9375rem; }
@media (max-width: 768px) { .sponsor-grid { grid-template-columns: 1fr; } }

/* News / Blog cards */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 56px; }
.news-card { border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-card); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: all var(--transition); }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news-card__head { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.news-card__head--placeholder { background: var(--bg-olive); }
.news-card__head--placeholder i { width: 42px; height: 42px; color: var(--text-light); }
.news-card__body { padding: 28px; }
.news-card__tag { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--venus-olive); margin-bottom: 10px; }
.news-card__title { font-family: var(--font-h1); font-size: 1rem; font-weight: 700; color: var(--venus-jet); margin-bottom: 8px; line-height: 1.4; }
.news-card__excerpt { font-size: 0.875rem; line-height: 1.65; }
.news-card__title, .news-card__excerpt { overflow-wrap: break-word; } /* mot très long : coupé par l'overflow de la carte (#49) */
.news-card__date { font-size: 0.75rem; color: var(--text-light); margin-top: 16px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 56px; }
.product-card { border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-card); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: all var(--transition); display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card__emoji { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 5rem; background: var(--bg-olive); }
.product-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__name { font-family: var(--font-h1); font-weight: 700; font-size: 1rem; color: var(--venus-jet); }
.product-card__cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.product-card__desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto; }
.product-card__price { font-family: var(--font-h1); font-size: 1.25rem; font-weight: 700; color: var(--venus-jet); }
@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .products-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 56px; }
.step-item { text-align: center; padding: 32px 24px; background: var(--bg-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.step-item__number { font-family: var(--font-h1); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--venus-olive); margin-bottom: 16px; }
.step-item__icon { font-size: 2.5rem; margin-bottom: 16px; color: var(--venus-olive); }
.step-item h4 { margin-bottom: 8px; }
.step-item p  { font-size: 0.875rem; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .steps-grid { grid-template-columns: 1fr; } }

/* Numbers */
.numbers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px; } /* nombre de chiffres configurable (about_stats) */
.number-item { text-align: center; padding: 48px 24px; }
.number-item__value { font-family: var(--font-h1); font-size: 3.5rem; font-weight: 800; color: var(--venus-ash); line-height: 1; margin-bottom: 12px; }
.number-item__label { color: rgba(250,250,239,0.65); font-size: 0.875rem; }
@media (max-width: 768px) { .numbers-grid { grid-template-columns: repeat(2,1fr); } .number-item:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* « 100% » à 3.5rem ne tient pas dans une demi-colonne de 360 px */
@media (max-width: 600px) { .number-item { padding: 32px 8px; } .number-item__value { font-size: 2.5rem; } }

/* Contact strip */
.contact-strip { background: var(--venus-jet); }
.contact-strip__inner { display: flex; align-items: center; gap: 32px; padding: 32px 0; flex-wrap: wrap; }
.contact-strip__info { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 180px; }
.contact-strip__icon { font-size: 1.5rem; flex-shrink: 0; color: var(--venus-ash); }
.contact-strip__label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(250,250,239,0.5); margin-bottom: 2px; }
.contact-strip__value { color: var(--venus-ivory); font-size: 0.875rem; font-weight: 600; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.faq-item { background: var(--bg-card); border: 2px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; }
.faq-item--open { border-color: var(--venus-jet); box-shadow: var(--shadow-md); }
.faq-item__question { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.5; }
.faq-item__arrow { font-size: 1.5rem; color: var(--venus-jet); flex-shrink: 0; font-weight: 300; transition: transform var(--transition); }
.faq-item--open .faq-item__arrow { transform: rotate(45deg); }
.faq-item__answer-wrap { display: none; }
.faq-item--open .faq-item__answer-wrap { display: block; }
.faq-item__answer { padding: 0 24px 24px; border-top: 1px solid var(--border-light); }
.faq-item__answer p { padding-top: 20px; font-size: 0.9375rem; line-height: 1.75; }

/* Flash messages */
.flash { padding: 14px 20px; border-radius: var(--radius-md); margin-bottom: 24px; font-size: 0.9375rem; }
.flash-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.flash-error   { background: #FEEDE8; color: #A34A2A; border: 1px solid #FFAB91; }
/* Champ piège des formulaires publics (#29) : hors écran, jamais vu ni atteint au clavier */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Proposition de don matériel (#45) : mise en page via .pub-split / .pub-form-row / .pub-check */
.don-materiel-categories { border: none; padding: 0; margin: 0 0 24px; min-width: 0; }
.don-materiel-categories legend { padding: 0; }
.don-materiel-hint { font-size: 0.8125rem; color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; margin: 8px 0 0; }
legend .don-materiel-hint { margin: 0; }
.don-materiel-errors { margin: 8px 0 0; padding-left: 20px; }
.don-materiel-sent { text-align: center; padding: 64px 32px; background: var(--bg-olive); border-radius: var(--radius-xl); }
.don-materiel-sent__icon { font-size: 4rem; margin-bottom: 24px; color: var(--venus-olive); }
.don-materiel-sent h3 { margin-bottom: 12px; }
.don-materiel-sent p { margin-bottom: 32px; }
.don-materiel-aside { background: linear-gradient(135deg,#FDE8ED,#FFF0E8); border-radius: var(--radius-xl); padding: 28px; }
.don-materiel-aside h3 { margin-bottom: 10px; color: var(--venus-olive); }
.don-materiel-aside p { font-size: 0.875rem; margin-bottom: 20px; }
.don-materiel-steps { font-size: 0.875rem; margin: 0 0 20px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 767.98px) { .don-materiel-sent { padding: 40px 20px; } }

/* ─── Lucide Icons ─── */
svg.lucide {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
  width: 1em !important;
  height: 1em !important;
}
.ic-14 { font-size: 14px; }
.ic-16 { font-size: 16px; }
.ic-18 { font-size: 18px; }
.ic-20 { font-size: 20px; }
.ic-24 { font-size: 24px; }
.ic-28 { font-size: 28px; }
.ic-32 { font-size: 32px; }

/* ════════════════════════════════════
   Constructeur de page — blocs de contenu
   Partagé entre le rendu public et le canvas d'édition admin
════════════════════════════════════ */
.blog-article-content { font-size: 1.0625rem; line-height: 1.8; color: var(--text); overflow-wrap: break-word; } /* mot ou URL très long (#49) */
.blog-article-content h2, .blog-article-content h3 { font-family: var(--font-h1); color: var(--venus-jet); margin: 32px 0 16px; }
/* Ancien HTML (Trix) : médias, tableaux et code contenus dans la colonne, tableaux et code défilent.
   iframe est retiré par BlockHtmlSanitizer::legacy() ; video est conservé. height: auto garde les
   proportions malgré les attributs width/height. */
.blog-article-content :is(img, video) { height: auto; }
.blog-article-content :is(video, table, pre) { max-width: 100%; }
.blog-article-content :is(table, pre) { display: block; overflow-x: auto; }

.block-paragraph { margin-bottom: 20px; }
.block-paragraph a { color: var(--text-olive); text-decoration: underline; }

.block-image { margin: 24px 0; display: flex; flex-direction: column; align-items: flex-start; }
.block-image.block-align-center { align-items: center; }
.block-image.block-align-right { align-items: flex-end; }
.block-image img { max-width: 100%; height: auto; border-radius: var(--radius-md); display: block; }
.block-image--width-sm img { max-width: min(320px, 100%); }
.block-image--width-md img { max-width: min(600px, 100%); }
.block-image--width-full img { max-width: 100%; width: 100%; }
.block-image figcaption { font-size: .85rem; color: var(--text-muted); margin-top: 8px; }

.block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 24px 0; }
.block-gallery__item { aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; }
.block-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.block-quote { border-left: 3px solid var(--venus-olive); padding-left: 20px; margin: 24px 0; color: var(--text-muted); font-style: italic; }
.block-quote p { margin: 0 0 8px; font-size: 1.1rem; }
.block-quote cite { font-style: normal; font-weight: 700; color: var(--venus-jet); font-size: .85rem; }

.block-button { margin: 28px 0; display: flex; }
.block-button.block-align-center { justify-content: center; }
.block-button.block-align-right { justify-content: flex-end; }

.block-divider { border: none; border-top: 1px solid var(--border-light); margin: 32px 0; }

.block-section { margin: 24px 0; border-radius: var(--radius-md); }
.block-section--padding-sm { padding: 16px; }
.block-section--padding-md { padding: 32px; }
.block-section--padding-lg { padding: 56px; }
@media (max-width: 600px) { .block-section--padding-lg { padding: 24px; } }
.block-section--bg-alt { background: var(--bg-alt); }
.block-section--bg-ash { background: var(--venus-ash); }
.block-section--bg-jet { background: var(--venus-jet); color: var(--venus-ivory); }
.block-section--bg-jet .block-quote, .block-section--bg-jet .block-paragraph, .block-section--bg-jet h2, .block-section--bg-jet h3 { color: var(--venus-ivory); }
/* Textes qui ont leur propre couleur (p, légendes, auteur de citation) : ivoire sur fond sombre (#41) */
.block-section--bg-jet :is(p, li, figcaption, cite) { color: var(--venus-ivory); }
.block-section--bg-jet a { color: var(--venus-ash); }

.block-columns { display: grid; gap: 24px; margin: 24px 0; align-items: start; }
.block-columns--count-2 { grid-template-columns: repeat(2, 1fr); }
.block-columns--count-3 { grid-template-columns: repeat(3, 1fr); }
.block-columns--gap-sm { gap: 12px; }
.block-columns--gap-lg { gap: 40px; }
.block-columns__col { min-width: 0; overflow: hidden; }
.block-columns .block-image img,
.block-section-children .block-image img { max-width: 100% !important; }
@media (max-width: 700px) { .block-columns { grid-template-columns: 1fr !important; } }

/* Réglages visuels par bloc (alignement / taille de texte) */
.block-align-left { text-align: left; }
.block-align-center { text-align: center; }
.block-align-right { text-align: right; }
.block-size-sm { font-size: .875rem; }
.block-size-lg { font-size: 1.25rem; }

/* États vides de l'accueil (plus de contenu de démonstration, #34) */
.home-empty { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 32px 0; }

/* Pages légales et information RGPD des formulaires (#32) */
.legal-page { max-width: 820px; margin: 0 auto; line-height: 1.7; }
.legal-page h2 { font-size: 1.375rem; margin: 40px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); color: var(--venus-jet); }
.legal-page h2:first-child { margin-top: 0; }
.legal-page h3 { font-size: 1.125rem; margin: 28px 0 12px; }
.legal-page p, .legal-page ul { margin-bottom: 14px; }
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page li { margin-bottom: 6px; }
.legal-missing { color: var(--danger-text); font-style: italic; }
.legal-table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 640px; }
.legal-table th, .legal-table td { padding: 10px 12px; border: 1px solid var(--border-light); text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg-alt); font-weight: 600; }
.form-privacy { margin-top: 16px; font-size: 0.8125rem; line-height: 1.55; color: var(--text-muted); }
.form-privacy a { color: inherit; text-decoration: underline; }

/* Conditions et frais d'adoption (#55) */
.faq-item__answer p + p { padding-top: 8px; }
.faq-item__link { color: var(--text-olive); text-decoration: underline; font-weight: 600; }
.adopt-terms-nowrap { white-space: nowrap; }
.page-hero__link { color: inherit; text-decoration: underline; font-weight: 600; }
.adopt-terms-intro { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; }
.adopt-terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.adopt-terms-card { padding: 28px; overflow: visible; }
.adopt-terms-card__title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 18px; color: var(--venus-jet); }
.adopt-terms-card__title svg { color: var(--venus-olive); flex-shrink: 0; }
.adopt-terms-list { padding-left: 20px; list-style: disc; line-height: 1.6; }
.adopt-terms-list li { margin-bottom: 8px; }
.adopt-terms-heading { margin: 64px 0 8px; font-size: 1.75rem; }
.adopt-terms-lead { color: var(--text-muted); margin-bottom: 28px; }
.adopt-terms-fees > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.adopt-terms-fees dd { font-weight: 700; color: var(--venus-jet); white-space: nowrap; }
.adopt-terms-note { margin-top: 14px; font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); }
.adopt-terms-subtitle { margin-top: 22px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.adopt-terms-table { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 0.9rem; }
.adopt-terms-table caption { text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.adopt-terms-table th, .adopt-terms-table td { padding: 10px 6px; border-bottom: 1px solid var(--border-light); text-align: left; }
.adopt-terms-table :is(th, td):first-child { padding-left: 0; }
.adopt-terms-table :is(th, td):last-child { padding-right: 0; }
.adopt-terms-table thead th { font-size: 0.8125rem; color: var(--text-muted); font-weight: 600; }
.adopt-terms-table td { font-weight: 700; color: var(--venus-jet); white-space: nowrap; text-align: right; }
.adopt-terms-table thead th:not(:first-child) { text-align: right; }
.adopt-terms-cta { margin-top: 64px; background: var(--bg-olive); border-radius: var(--radius-xl); padding: 56px; text-align: center; }
.adopt-terms-cta__title { font-size: 1.375rem; margin-bottom: 10px; }
.adopt-terms-cta p { margin-bottom: 28px; }
.adopt-terms-cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.adopt-terms-link { margin-top: 12px; text-align: center; font-size: 0.875rem; }
.adopt-terms-link a { color: var(--text-olive); text-decoration: underline; font-weight: 600; }
/* Frais non remboursables (#79) : fiche animal et page Conditions */
.adopt-terms-refund { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-md); background: var(--danger-bg); color: var(--venus-jet); font-size: 0.875rem; font-weight: 600; }
.adopt-terms-refund svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; color: var(--danger-text); }
@media (max-width: 1023.98px) { .adopt-terms-grid { grid-template-columns: repeat(2, 1fr); } .adopt-terms-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 900px) { .adopt-terms-intro { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) {
  .adopt-terms-grid { grid-template-columns: 1fr; }
  .adopt-terms-card { padding: 22px 18px; }
  .adopt-terms-cta { padding: 40px 20px; }
}
@media (max-width: 600px) {
  .adopt-terms-cta__actions .btn, .adopt-terms-process-btn { width: 100%; white-space: normal; justify-content: center; text-align: center; }
}
/* Petit écran : chaque ligne du tableau des chiens se replie en « Mâle … 290 € » sous son poids */
@media (max-width: 600px) {
  .adopt-terms-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .adopt-terms-table, .adopt-terms-table caption, .adopt-terms-table tbody, .adopt-terms-table tr, .adopt-terms-table th, .adopt-terms-table td { display: block; }
  .adopt-terms-table tr { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
  .adopt-terms-table th[scope=row] { border: none; padding: 4px 0; }
  .adopt-terms-table td { display: flex; justify-content: space-between; border: none; padding: 4px 0; }
  .adopt-terms-table td::before { content: attr(data-label); font-weight: 400; color: var(--text-muted); }
}

/* Pages d'erreur (#38) */
.error-page { text-align: center; padding: 96px 0; }
.error-page__code { font-family: var(--font-h1); font-weight: 900; font-size: 5rem; line-height: 1; color: var(--venus-ash); margin-bottom: 16px; }
.error-page h1 { margin-bottom: 12px; }
.error-page p { max-width: 520px; margin: 0 auto 32px; color: var(--text-muted); }
.error-page__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Focus visible au clavier (#41). Liens, boutons et éléments activables : contour jet (≥ 10:1 sur
   les fonds clairs et ash), ivoire sur les fonds sombres. Les champs de saisie gardent leur propre
   focus (bordure + halo) : pas de double anneau. :is() passe devant les « outline: none ». */
:is(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--venus-jet);
  outline-offset: 2px;
}
:is(.footer, .block-section--bg-jet, .contact-strip, .hero__stats) :is(a, button, summary, [tabindex]):focus-visible {
  outline-color: var(--venus-ivory);
}
.faq-item__question { width: 100%; background: none; border: none; text-align: left; font-family: inherit; cursor: pointer; }

/* Page bénévolat : cartes des besoins */
.benevole-needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 32px; margin-bottom: 64px; }

/* ===== NEWSLETTER (#8) : formulaire (pied de page + /newsletter) et pages des liens reçus par email ===== */
.nl-page { max-width: 640px; }
.nl-muted { color: var(--text-muted); font-size: 0.875rem; }
.nl-form__label { display: block; font-weight: 600; margin-bottom: 8px; }
.nl-form__row { display: flex; gap: 10px; }
.nl-form__input { flex: 1; min-width: 0; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-pill); font-family: var(--font-body); font-size: 1rem; color: var(--text); background: white; outline: none; }
.nl-form__input:focus { border-color: var(--venus-olive); box-shadow: 0 0 0 3px rgba(117,138,123,0.15); }
.nl-form__input::placeholder { color: var(--placeholder); }
.nl-form__submit { flex-shrink: 0; min-height: 44px; padding: 0 22px; border: none; border-radius: var(--radius-pill); background: var(--venus-jet); color: var(--venus-ivory); font-family: var(--font-h1); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background var(--transition); }
.nl-form__submit:hover { background: var(--venus-carbon); }
.nl-form__privacy { margin-top: 12px; font-size: 0.8125rem; line-height: 1.55; color: var(--text-muted); }
.nl-form__privacy a { color: inherit; text-decoration: underline; }
/* Variante du pied de page, sur fond sombre */
.nl-footer { margin-top: 8px; max-width: 420px; }
.nl-footer .footer__col-title { margin-bottom: 10px; }
.nl-form--compact .nl-form__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nl-form--compact .nl-form__input { padding: 10px 16px; border-color: rgba(250,250,239,0.2); background: rgba(250,250,239,0.06); color: var(--venus-ivory); }
.nl-form--compact .nl-form__input::placeholder { color: rgba(250,250,239,0.55); }
.nl-form--compact .nl-form__input:focus { border-color: var(--venus-ash); box-shadow: none; }
.nl-form--compact .nl-form__submit { background: var(--venus-ash); color: var(--venus-jet); }
.nl-form--compact .nl-form__submit:hover { background: var(--venus-ivory); }
.nl-form--compact .nl-form__privacy { margin-top: 8px; font-size: 0.75rem; color: rgba(250,250,239,0.6); }
.nl-done { text-align: center; padding: 48px 32px; background: var(--bg-olive); border-radius: var(--radius-xl); }
.nl-done__icon { font-size: 3rem; margin-bottom: 16px; color: var(--venus-olive); }
.nl-done__icon svg { width: 48px; height: 48px; }
.nl-done__title { margin-bottom: 12px; }
.nl-done p { margin-bottom: 16px; }
.nl-token-page { padding-top: calc(var(--nav-height) + 48px); }
.nl-token-page__title { margin-bottom: 16px; }
.nl-token-page form { margin-top: 24px; }
@media (max-width: 767.98px) {
  .nl-form__row { flex-direction: column; }
  .nl-form__submit { width: 100%; }
  .nl-done { padding: 32px 20px; }
}

/* Candidature famille d'accueil (#63) — classes fa-apply- */
.fa-apply { max-width: 820px; }
.fa-apply-commitment { background: var(--bg-olive); border-radius: var(--radius-xl); padding: 28px 32px; margin-bottom: 40px; }
.fa-apply-commitment h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 14px; }
.fa-apply-commitment h2 svg { color: var(--venus-olive); }
.fa-apply-commitment ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; list-style: disc; }
.fa-apply-section { border: none; margin: 0 0 32px; padding: 28px 32px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); min-width: 0; }
.fa-apply-section[hidden], .fa-apply-field[hidden] { display: none; }
/* Légende sortie du bord du fieldset (float) : le titre est dans la carte, pas sur sa bordure */
.fa-apply-form { counter-reset: fa-step; }
.fa-apply-section:not([hidden]) { counter-increment: fa-step; }
.fa-apply-section__step::before { content: counter(fa-step); }
.fa-apply-section__grid { clear: both; }
.fa-apply-section__title { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 20px; font-family: var(--font-h1, inherit); font-size: 1.25rem; font-weight: 700; color: var(--text); }
.fa-apply-section__step { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--venus-olive); color: white; font-size: 0.9375rem; flex-shrink: 0; }
.fa-apply-section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.fa-apply-section__grid > .fa-apply-field:has(textarea), .fa-apply-section__grid > .fa-apply-field:has(fieldset), .fa-apply-section__grid > .fa-apply-field:has(.fa-apply-commitment-check) { grid-column: 1 / -1; }
.fa-apply-choices { border: none; padding: 0; margin: 0; min-width: 0; }
.fa-apply-choices legend { padding: 0; text-transform: none; letter-spacing: 0; font-size: 0.9375rem; }
.fa-apply-textarea { min-height: 110px; }
.fa-apply-help { font-size: 0.8125rem; color: var(--text-muted); margin: 6px 0 0; }
.fa-apply-error { font-size: 0.8125rem; color: #A34A2A; font-weight: 600; margin: 6px 0 0; }
.fa-apply-field--error .form-control { border-color: #E57357; }
.fa-apply-commitment-check { align-items: flex-start; font-weight: 600; }
.fa-apply-inline-link { color: var(--venus-olive); text-decoration: underline; }
.fa-apply-errors:focus { outline: 3px solid #E57357; outline-offset: 3px; }
.fa-apply-field .form-label { text-transform: none; letter-spacing: 0; font-size: 0.9375rem; }
.fa-apply-form .pub-check input[type=radio] { width: 20px; height: 20px; flex-shrink: 0; margin: 0; }
.fa-apply-form .pub-check input { accent-color: var(--venus-olive); }
.fa-apply-commitment-check input { margin-top: 4px; }
.fa-apply-submit { width: 100%; justify-content: center; }
@media (max-width: 767.98px) {
    .fa-apply-section { padding: 22px 18px; }
    .fa-apply-commitment { padding: 22px 20px; }
    .fa-apply-section__grid { grid-template-columns: 1fr; }
}

/* Page Contact : orientation vers la bonne démarche (#64) — classes contact- */
.contact-paths-section { padding-bottom: 0; }
.contact-paths-title { text-align: center; margin-bottom: 32px; }
.contact-paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.contact-path { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.contact-path:hover { transform: translateY(-3px); border-color: var(--venus-olive); box-shadow: var(--shadow-md, var(--shadow-sm)); }
.contact-path:focus-visible { outline: 3px solid var(--venus-olive); outline-offset: 3px; }
.contact-path__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 999px; background: var(--bg-olive); color: var(--venus-olive); font-size: 1.5rem; }
.contact-path__title { font-family: var(--font-h1); font-size: 1.125rem; font-weight: 700; }
.contact-path__text { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.contact-path__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--venus-olive); }
.contact-more { margin-top: 32px; padding: 24px 28px; border-radius: var(--radius-xl); background: var(--bg-olive); scroll-margin-top: calc(var(--nav-height) + 16px); }
.contact-more__title { font-size: 1rem; margin-bottom: 14px; }
.contact-more__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; }
.contact-more__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); font-weight: 500; text-decoration: none; }
.contact-more__link:hover { color: var(--venus-olive); text-decoration: underline; }
.contact-more__link svg { color: var(--venus-olive); }
#formulaire { scroll-margin-top: var(--nav-height); }
.contact-hint { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--radius-md); background: var(--bg-olive); font-size: 0.875rem; }
.contact-hint__link { font-weight: 600; color: var(--venus-olive); }
@media (max-width: 1024px) {
    .contact-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-more__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .contact-paths { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    /* Cartes compactes : icône à gauche, sans phrase ni bouton (le titre suffit) */
    .contact-path { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 16px 18px; }
    .contact-path__icon { width: 44px; height: 44px; font-size: 1.25rem; grid-row: span 2; }
    .contact-path__text { grid-column: 2; font-size: 0.875rem; }
    .contact-path__cta { grid-column: 3; grid-row: 1 / span 2; font-size: 0; }
    .contact-path__cta svg { font-size: 1.25rem; }
    .contact-more { padding: 20px; }
    .contact-more__links { grid-template-columns: minmax(0, 1fr); }
}
/* Don matériel (#88) : espèces puis objets du référentiel du stock, regroupés par catégorie */
.don-materiel-species { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.don-materiel-species .pub-check + .pub-check { margin-top: 0; }
.don-materiel-group + .don-materiel-group { margin-top: 16px; }
.don-materiel-group[hidden], .don-materiel-items .pub-check[hidden] { display: none; }
.don-materiel-group__title { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); margin: 0 0 6px; }
.don-materiel-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.don-materiel-items .pub-check + .pub-check { margin-top: 0; }
