/* Thème Pionus : structure de kGrid (en-tête, menu, contenu + colonne), code et graphisme modernisés */

:root {
	--bg: #FFFFFF;
	--soft: #F4F6F8;
	--ink: #22313F;
	--muted: #5B6977;
	--line: #E2E7EC;
	--accent: #C62F35;
	--link: #1C67A8;
	--leaf: #23764A;
	--leaf-bg: #EAF6EE;
	--leaf-line: #BFE3CB;
	--hero-bg: #EEF5F0;
	--on-accent: #FFFFFF;
	--f-head: "Nunito", "Trebuchet MS", sans-serif;
	--f-body: "Source Sans 3", "Segoe UI", sans-serif;
	--r: 10px;
	--content: 1140px;
}

/* Pas de mode sombre : les anciens contenus portent des couleurs écrites en dur (à revoir avec le thème V2) */
:root { color-scheme: light; }

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 18px/1.7 var(--f-body);
}

h1, h2, h3, h4 {
	font-family: var(--f-head);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-wrap: balance;
	margin: 0;
}
h1 { font-size: clamp(30px, 4.2vw, 42px); }
h2 { font-size: 26px; }
h3 { font-size: 21px; }

p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.wrap {
	max-width: var(--content);
	margin: 0 auto;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- En-tête et menu ---------- */

.site-head { border-bottom: 1px solid var(--line); }

.head-row {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-block: 16px;
	position: relative;
}

.brand { display: block; border-radius: 8px; }
.brand img { display: block; height: 72px; width: auto; }

.menu-btn {
	display: none;
	position: absolute;
	right: max(16px, env(safe-area-inset-right, 0px));
	font: 600 16px var(--f-body);
	color: var(--ink);
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 6px 14px;
	cursor: pointer;
}

.site-nav { background: var(--soft); border-top: 1px solid var(--line); }
.site-nav ul {
	list-style: none;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px;
	padding-block: 6px;
}
.site-nav a {
	display: block;
	padding: 6px 10px;
	border-radius: 8px;
	color: var(--ink);
	text-decoration: none;
	font-size: 15.5px;
	font-weight: 600;
}
.site-nav a:hover { background: var(--bg); }
.site-nav .active > a { background: var(--accent); color: var(--on-accent); }
.site-nav #static-12 a { color: var(--leaf); }
.site-nav #static-12.active a { background: var(--leaf); color: var(--on-accent); }

/* ---------- Mise en page : contenu + colonne ---------- */

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 44px;
	align-items: start;
	padding-block: 36px 56px;
}

.content { min-width: 0; display: grid; gap: 22px; align-content: start; }
.lead { font-size: 20px; color: var(--muted); }
.crumbs { font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.btn {
	display: inline-block;
	background: var(--leaf);
	color: var(--on-accent);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	padding: 8px 18px;
	border-radius: 999px;
}

/* ---------- Contenu rédigé (articles et pages) ---------- */

.prose { display: grid; gap: 16px; }
.prose > * { max-width: 72ch; }
.prose h1 { font-size: clamp(30px, 4.2vw, 42px); }
.prose h2 { margin-top: 14px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; }
.prose img { border-radius: 8px; }
.prose img[style*="float: right"], .prose img[style*="float:right"], .prose img[align="right"] { margin: 4px 0 12px 18px; }
.prose img[style*="float: left"], .prose img[style*="float:left"], .prose img[align="left"] { margin: 4px 18px 12px 0; }
.prose center, .prose [align="center"] { text-align: center; }
.prose center img, .prose [align="center"] img { margin-inline: auto; }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--r); }
.prose table {
	border-collapse: collapse;
	width: 100%;
	font-size: 16px;
	font-variant-numeric: tabular-nums;
	display: block;
	overflow-x: auto;
}
.prose th, .prose td { padding: 8px 14px; border: 1px solid var(--line); text-align: left; }
.prose tr:first-child td, .prose th { background: var(--soft); font-weight: 600; }

.article { display: grid; gap: 18px; }

.tags {
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 15px;
	color: var(--muted);
}
.tags a {
	display: inline-block;
	margin: 2px 4px 2px 0;
	color: var(--muted);
	background: var(--soft);
	border-radius: 6px;
	padding: 1px 10px;
	text-decoration: none;
}
.tags a:hover { color: var(--ink); }

/* ---------- Accueil (pleine largeur, sans colonne latérale) ---------- */

.layout-full { grid-template-columns: 1fr; }

.prose.home { gap: 20px; }
.prose.home > * { max-width: none; }
.home > h2 { font-size: clamp(26px, 3.2vw, 32px); margin-top: 36px; text-align: center; }
.home > h2 + p { max-width: 62ch; margin-inline: auto; text-align: center; color: var(--muted); }

/* Bandeau d'ouverture : fond pleine largeur sans débordement horizontal */
.home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	margin-top: -36px;
	padding-block: 48px 52px;
	background: var(--hero-bg);
	box-shadow: 0 0 0 100vmax var(--hero-bg);
	clip-path: inset(0 -100vmax);
}
.hero-text { display: grid; gap: 18px; }
.home-hero h1 { font-size: clamp(32px, 4.6vw, 50px); }
.home-hero .lead { color: var(--ink); opacity: .85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { background: var(--accent); }
.hero-actions .btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.hero-actions .btn-ghost:hover { background: var(--ink); color: var(--bg); }

.hero-birds { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-bottom: 24px; }
.hero-birds img {
	width: 128px;
	height: 128px;
	object-fit: cover;
	object-position: center;
	border-radius: 50%;
	border: 5px solid var(--bg);
	box-shadow: 0 6px 18px rgba(34, 49, 63, .12);
	margin: 0 !important;
	float: none !important;
}
.hero-birds img:nth-child(2), .hero-birds img:nth-child(4) { transform: translateY(24px); }

/* Cartes des espèces */
.prose .species {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.species-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	padding: 26px 22px 22px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--bg);
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.species-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(34, 49, 63, .08); }
.species-card img {
	display: block;
	width: 112px;
	height: 112px;
	object-fit: cover;
	object-position: center;
	border-radius: 50%;
	border: 5px solid var(--hero-bg);
	margin: 0 0 4px !important;
	float: none !important;
}
.species-card h2, .species-card h3 { font-size: 22px; margin: 0; }
.species-card h2 a, .species-card h3 a { color: var(--ink); text-decoration: none; }
.species-card p { flex: 1; font-size: 16px; color: var(--muted); }
.more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-weight: 600;
	font-size: 16px;
	color: var(--accent);
	text-decoration: none;
}
.more::after { content: "→"; transition: transform .15s ease; }
.species-card:hover .more::after { transform: translateX(3px); }

/* Tableau « Quel perroquet choisir ? » */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose .compare { display: table; width: 100%; font-size: 16px; }
.prose .compare th { background: var(--ink); color: var(--bg); border: 0; padding: 12px 16px; font-family: var(--f-head); font-weight: 700; }
.prose .compare tbody td { background: transparent; font-weight: 400; border: 0; border-top: 1px solid var(--line); padding: 12px 16px; }
.prose .compare tbody tr:nth-child(even) td { background: var(--soft); }
.compare td:first-child a { font-weight: 600; }
.lvl { display: inline-block; font-size: 14px; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.lvl-1 { background: #E3F4E8; color: #1E6B3E; }
.lvl-2 { background: #E5EEF9; color: #1D5795; }
.lvl-3 { background: #FDF0DC; color: #8A5A0B; }
.lvl-4 { background: #FCE6E6; color: #A32A2E; }

/* Guides pour bien préparer l'arrivée */
.prose .guide-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
}
.guide-links a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 16px 18px;
	background: var(--soft);
	border-radius: 12px;
	color: var(--ink);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.4;
	text-decoration: none;
}
.guide-links a::after { content: "→"; color: var(--accent); }
.guide-links a:hover { background: var(--hero-bg); color: var(--link); }

/* Appel vers la boutique */
.home-cta {
	display: grid;
	gap: 12px;
	justify-items: center;
	text-align: center;
	padding: 36px 24px;
	margin-top: 28px;
	background: var(--leaf);
	border-radius: 16px;
}
.home-cta h2 { margin: 0; color: #FFFFFF; }
.home-cta p { color: #FFFFFF; opacity: .9; max-width: 52ch; }
.home-cta .btn { background: #FFFFFF; color: var(--leaf); }

/* Derniers articles et catégories en bas de l'accueil */
.home-more { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12px; }
.home-more .box .cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.home-more .box .cat-cloud li a {
	display: inline-flex;
	gap: 8px;
	padding: 4px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 15px;
}

/* ---------- Listes d'articles ---------- */

.art-list { display: grid; gap: 16px; }
.art-item {
	display: grid;
	gap: 8px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--r);
}
.art-item h2 { font-size: 22px; }
.art-item h2 a { color: var(--ink); text-decoration: none; }
.art-item h2 a:hover { color: var(--link); }
.excerpt { font-size: 17px; color: var(--muted); }
.excerpt img { border-radius: 8px; }
.excerpt a:last-child { font-weight: 600; color: var(--accent); }

.cats a {
	display: inline-block;
	margin: 0 6px 4px 0;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: var(--leaf);
	background: var(--leaf-bg);
	border-radius: 999px;
	padding: 1px 12px;
}

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 16px; }
.pagination a, .pagination span {
	padding: 4px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	text-decoration: none;
}
.pagination .p_current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Colonne latérale ---------- */

.side { display: grid; gap: 20px; }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.box h2 { font-size: 18px; margin-bottom: 10px; }
.box ul { list-style: none; padding: 0; margin: 0; }
.box li a {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 0;
	border-top: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
	font-size: 16px;
	line-height: 1.4;
}
.box li:first-child a { border-top: 0; }
.box li a:hover, .box li a.active { color: var(--link); }
.box .n { color: var(--muted); font-variant-numeric: tabular-nums; }

.shopbox {
	background: var(--leaf-bg);
	border-color: var(--leaf-line);
	text-align: center;
	display: grid;
	gap: 10px;
	justify-items: center;
}
.shopbox h2 { color: var(--leaf); margin: 0; }
.shopbox p { font-size: 16px; color: var(--muted); }

/* ---------- Pied de page ---------- */

.site-foot { border-top: 1px solid var(--line); background: var(--soft); font-size: 15px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; }
.site-foot a { color: var(--muted); }

/* Encadré « À lire aussi » renvoyant vers un guide */
.guide-note { background: var(--leaf-bg); border: 1px solid var(--leaf-line); border-radius: 12px; padding: 12px 16px; font-size: 16px; }
.guide-note a { font-weight: 700; color: var(--leaf); }

/* ---------- Guides d'achat (gabarit static-guide.php) ---------- */

.prose.guide { gap: 18px; }
.prose.guide > * { max-width: none; }
.prose.guide > p, .prose.guide > ul:not([class]), .prose.guide > ol:not([class]) { max-width: 78ch; }
.guide > h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 34px; scroll-margin-top: 20px; }
.guide h3 { font-size: 20px; }

/* Bandeau d'ouverture */
.guide-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	margin-top: -36px;
	padding-block: 40px 44px;
	background: var(--hero-bg);
	box-shadow: 0 0 0 100vmax var(--hero-bg);
	clip-path: inset(0 -100vmax);
}
.guide-hero-text { display: grid; gap: 16px; }
.guide-hero h1 { font-size: clamp(30px, 4.2vw, 46px); }
.guide-hero .lead { color: var(--ink); opacity: .85; }
.guide-hero .crumbs { margin: 0; }
.guide-points { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guide-points li {
	font-size: 15px;
	font-weight: 600;
	background: var(--bg);
	border: 1px solid var(--leaf-line);
	color: var(--leaf);
	border-radius: 999px;
	padding: 4px 12px;
}
.guide-points li::before { content: "✓ "; }
.guide-hero-img { margin: 0; }
.guide-hero-img img { display: block; width: 100%; height: auto; border-radius: 16px; }

/* Notre choix en bref */
.prose .picks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pick {
	position: relative;
	display: grid;
	gap: 4px;
	align-content: start;
	padding: 20px 20px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--bg);
}
.pick-top { border: 2px solid var(--accent); }
.pick-badge {
	position: absolute;
	top: -12px;
	left: 18px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 13px;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 999px;
}
.pick-size { font-family: var(--f-head); font-weight: 800; font-size: 20px; }
.pick-for { font-size: 15px; color: var(--muted); }
.pick-name { font-size: 16px; font-weight: 600; margin-top: 6px; }
.pick-link { margin-top: 8px; font-weight: 600; font-size: 16px; color: var(--accent); text-decoration: none; }
.pick-link::after { content: " ↓"; }

/* Sommaire */
.toc { background: var(--soft); border-radius: 14px; padding: 18px 22px; }
.toc-title { font-family: var(--f-head); font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.prose .toc ol { margin: 0; padding-left: 1.2em; columns: 2 260px; column-gap: 32px; }
.toc li { font-size: 16px; padding: 2px 0; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }

/* Tableaux */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose .table-scroll table { display: table; width: 100%; min-width: 560px; font-size: 16px; }
.prose .table-scroll th { background: var(--ink); color: var(--bg); border: 0; padding: 12px 16px; font-family: var(--f-head); font-weight: 700; }
.prose .table-scroll tbody td { background: transparent; font-weight: 400; border: 0; border-top: 1px solid var(--line); padding: 11px 16px; }
.prose .table-scroll tbody tr:nth-child(even) td { background: var(--soft); }
.size-table td:first-child, .compare-table td:first-child { font-weight: 600; }
.compare-table td:last-child a { font-weight: 700; color: var(--accent); }
.note { font-size: 16px; color: var(--muted); border-left: 3px solid var(--leaf); border-radius: 0; padding-left: 14px; }

/* Critères */
.prose .criteria { list-style: none; counter-reset: crit; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; max-width: none; }
.criteria li { counter-increment: crit; position: relative; padding: 16px 18px 16px 62px; background: var(--soft); border-radius: 12px; font-size: 16px; }
.criteria li::before {
	content: counter(crit);
	position: absolute;
	left: 18px;
	top: 16px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--on-accent);
	font-family: var(--f-head);
	font-weight: 800;
	display: grid;
	place-items: center;
}

/* Cartes produits */
.products { display: grid; gap: 20px; }
.product {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 26px;
	align-items: center;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--bg);
	scroll-margin-top: 20px;
}
.product-top { border: 2px solid var(--accent); box-shadow: 0 10px 28px rgba(198, 47, 53, .08); }
.product-img { margin: 0; text-align: center; }
.product-img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--hero-bg); }
.product-img figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.product-body { display: grid; gap: 8px; justify-items: start; }
.product-body h3 { font-size: 21px; }
.badge { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.badge-accent { background: var(--accent); color: var(--on-accent); }
.badge-leaf { background: var(--leaf); color: var(--on-accent); }
.for { font-size: 16px; }
.prose .pros { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 16px; }
.pros li { padding-left: 26px; position: relative; }
.pros li::before { content: "✓"; position: absolute; left: 4px; color: var(--leaf); font-weight: 800; }
.cons { font-size: 15px; color: var(--muted); }
.btn-buy {
	display: inline-block;
	margin-top: 6px;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	padding: 11px 22px;
	border-radius: 999px;
	transition: transform .15s ease, box-shadow .15s ease;
}
.btn-buy:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(198, 47, 53, .25); }
/* Pictogramme chariot devant le texte du bouton */
.btn-buy { display: inline-flex; align-items: center; gap: 10px; }
.btn-buy::before {
	content: "";
	width: 20px;
	height: 20px;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%279%27 cy=%2720%27 r=%271.5%27/%3E%3Ccircle cx=%2718%27 cy=%2720%27 r=%271.5%27/%3E%3Cpath d=%27M2 3h3l2.7 11.4a1.5 1.5 0 0 0 1.5 1.1h8.6a1.5 1.5 0 0 0 1.5-1.1L21 7H6.2%27/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%279%27 cy=%2720%27 r=%271.5%27/%3E%3Ccircle cx=%2718%27 cy=%2720%27 r=%271.5%27/%3E%3Cpath d=%27M2 3h3l2.7 11.4a1.5 1.5 0 0 0 1.5 1.1h8.6a1.5 1.5 0 0 0 1.5-1.1L21 7H6.2%27/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-buy::after { content: "→"; transition: transform .15s ease; }
.btn-buy:hover::after { transform: translateX(3px); }
.btn-sm { margin: 0; padding: 7px 14px; font-size: 14px; gap: 7px; white-space: nowrap; }
.btn-sm::before { width: 16px; height: 16px; }
.btn-sm::after { content: none; }
.prose .table-scroll td .btn-sm { color: var(--on-accent); }
.product-small { grid-template-columns: 140px minmax(0, 1fr); padding: 18px; max-width: 760px; }
.products-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.products-2 .product-small { max-width: none; align-items: start; }
.cta-line { background: var(--leaf-bg); border: 1px solid var(--leaf-line); border-radius: 12px; padding: 14px 18px; font-size: 16px; }
.cta-line a { font-weight: 700; color: var(--leaf); }

/* Plan + texte côte à côte */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.split figure { margin: 0; }
.split img { display: block; width: 100%; height: auto; border-radius: 14px; }
.prose .split ul { padding-left: 1.2em; display: grid; gap: 6px; font-size: 16px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; background: var(--bg); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 14px; font-size: 16px; color: var(--muted); }
.more-reading { font-size: 16px; color: var(--muted); }

/* Schéma en pleine largeur dans un guide */
.guide-figure { margin: 0; }
.guide-figure img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* Conseils par espèce */
.species-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tip { background: var(--soft); border-radius: 12px; padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.tip h3 { font-size: 18px; margin: 0; }
.tip h3 a { color: var(--ink); text-decoration: none; }
.tip h3 a:hover { color: var(--link); }
.tip p { font-size: 16px; }

/* Titres de groupes dans une sélection de produits */
.guide h3.sel-group { font-size: 20px; margin-top: 18px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }

/* Cartes produits verticales (compléments, accessoires) */
.products-v { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.product-v {
	display: flex;
	flex-direction: column;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.product-v:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(34, 49, 63, .08); }
.product-v-img { margin: 0; position: relative; background: var(--hero-bg); }
.product-v-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.product-v-img figcaption { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, .8); padding: 1px 8px; border-radius: 999px; }
.product-v-body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px 18px 18px; flex: 1; }
.product-v-body h3 { font-size: 19px; margin: 0; }
.when { font-size: 15px; color: var(--muted); background: var(--soft); border-radius: 8px; padding: 6px 10px; width: 100%; }
.when strong { color: var(--ink); }
.product-v .btn-buy { margin-top: auto; width: 100%; justify-content: center; }
.product-v .pros { margin-bottom: 6px !important; }

/* Bloc « Pour aller plus loin » : cartes de liens */
.related { margin-top: 36px; padding: 28px; background: var(--soft); border-radius: 16px; }
.related h2 { font-size: clamp(22px, 2.6vw, 26px); margin: 0 0 16px; }
.prose .related-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-links a {
	position: relative;
	display: grid;
	gap: 4px;
	align-content: start;
	height: 100%;
	padding: 16px 44px 16px 18px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--ink);
	text-decoration: none;
	transition: border-color .15s ease, transform .15s ease;
}
.related-links a::after {
	content: "→";
	position: absolute;
	right: 16px;
	top: 16px;
	color: var(--accent);
	font-weight: 700;
	transition: transform .15s ease;
}
.related-links a:hover { border-color: var(--accent); transform: translateY(-2px); }
.related-links a:hover::after { transform: translateX(3px); }
.rl-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--leaf); }
.rl-title { font-family: var(--f-head); font-weight: 800; font-size: 17px; line-height: 1.3; }
.rl-desc { font-size: 15px; color: var(--muted); line-height: 1.45; }

@media (max-width: 900px) {
	.guide-hero, .split { grid-template-columns: 1fr; gap: 24px; }
	.prose .picks { grid-template-columns: 1fr; gap: 22px; }
	.prose .related-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.species-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.guide-hero { padding-block: 28px 32px; }
}
@media (max-width: 600px) {
	.product, .product-small { grid-template-columns: 1fr; gap: 14px; }
	.product-img img { max-width: 260px; margin: 0 auto; }
	.product .btn-buy { width: 100%; justify-content: center; }
	.prose .related-links { grid-template-columns: 1fr; }
	.species-tips { grid-template-columns: 1fr; }
	.related { padding: 20px 16px; }
}

/* ---------- Blocs visuels des guides : ration, fruits et légumes, compléments, friandises ---------- */

/* Les trois piliers de la ration (mêmes couleurs que le schéma de l'assiette) */
.ration-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ration-card {
	--c: var(--leaf);
	--c-bg: var(--leaf-bg);
	display: grid;
	gap: 6px;
	align-content: start;
	padding: 20px;
	background: var(--c-bg);
	border-radius: 16px;
	border-top: 5px solid var(--c);
}
.rc-pellets { --c: #A87A3D; --c-bg: #F7F0E6; }
.rc-fresh { --c: #2F8A50; --c-bg: #EAF6EE; }
.rc-seeds { --c: #C98A1C; --c-bg: #FCF4E3; }
.rc-emoji { font-size: 34px; line-height: 1; }
.rc-pct { font-family: var(--f-head); font-weight: 800; font-size: 30px; color: var(--c); line-height: 1.1; }
.rc-title { font-weight: 700; font-size: 18px; }
.rc-bar { height: 8px; background: rgba(34, 49, 63, .1); border-radius: 999px; overflow: hidden; margin: 4px 0; }
.rc-bar span { display: block; height: 100%; background: var(--c); border-radius: 999px; }
.rc-desc { font-size: 15px; color: var(--muted); }

/* Bons réflexes : liste en pastilles */
.prose .reflexes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.reflexes li { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--soft); border-radius: 12px; font-size: 16px; line-height: 1.4; }
.reflexes li > span:first-child { font-size: 24px; flex: none; }

/* Image réduite à côté d'un texte d'introduction */
.intro-media { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: center; }
.intro-media > img { width: 170px; height: 170px; object-fit: cover; border-radius: 50%; border: 6px solid var(--hero-bg); }
.intro-media > div { display: grid; gap: 12px; }

/* Encadrés : astuce, validation, avertissement */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; font-size: 16px; line-height: 1.5; }
.callout > span:first-child { font-size: 22px; line-height: 1.2; flex: none; }
.callout-tip { background: #EAF2FB; border: 1px solid #C9DDF3; }
.callout-ok { background: var(--leaf-bg); border: 1px solid var(--leaf-line); }
.callout-warn { background: #FDF3E1; border: 1px solid #F1D9A8; }

/* Fruits et légumes : deux colonnes de pastilles */
.fv-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.fv-col { border-radius: 16px; padding: 18px 20px; }
.fv-ok { background: var(--leaf-bg); border: 1px solid var(--leaf-line); }
.fv-mod { background: #FDF3E1; border: 1px solid #F1D9A8; }
.fv-head { font-family: var(--f-head); font-weight: 800; font-size: 19px; margin-bottom: 10px; }
.prose .chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--bg); border-radius: 999px; padding: 5px 12px; font-size: 15px; box-shadow: 0 1px 2px rgba(34, 49, 63, .08); }
.fv-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Petites cartes thématiques (compléments, friandises) */
.mini-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini-card { display: grid; gap: 6px; align-content: start; padding: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.mc-emoji { width: 52px; height: 52px; display: grid; place-items: center; font-size: 28px; background: var(--hero-bg); border-radius: 50%; }
.mc-title { font-family: var(--f-head); font-weight: 800; font-size: 19px; }
.mc-what { font-size: 15px; font-weight: 600; color: var(--leaf); }
.mc-when { font-size: 15px; background: var(--soft); border-radius: 8px; padding: 6px 10px; }
.mc-who { font-size: 15px; color: var(--muted); }

/* Jauge de la part des friandises */
.dose { background: var(--soft); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.dose-label { font-weight: 700; font-size: 16px; }
.dose-bar { position: relative; height: 12px; background: linear-gradient(90deg, #E0A33A 0 10%, rgba(34, 49, 63, .1) 10% 100%); border-radius: 999px; }
.dose-bar span { position: absolute; left: 10%; top: -4px; width: 3px; height: 20px; background: var(--accent); border-radius: 2px; }
.dose-legend { font-size: 15px; color: var(--muted); }

@media (max-width: 900px) {
	.ration-cards, .mini-cards { grid-template-columns: 1fr; }
	.fv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.prose .reflexes { grid-template-columns: 1fr; }
	.intro-media { grid-template-columns: 1fr; justify-items: center; text-align: left; }
	.intro-media > img { width: 140px; height: 140px; }
}

.prose.guide > p.callout { max-width: none; }

/* ---------- Écrans étroits ---------- */

@media (max-width: 900px) {
	.layout { grid-template-columns: 1fr; gap: 32px; }
	.brand img { height: 56px; }
	.js .menu-btn { display: inline-block; }
	.js .site-nav { display: none; }
	.js .site-nav.open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; text-align: center; }
	.home-hero { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 36px; text-align: center; }
	.hero-actions { justify-content: center; }
	.hero-birds img { width: 96px; height: 96px; }
	.home-more { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	body { font-size: 17px; }
	/* Les images flottantes des anciens contenus passent au centre */
	.prose img[style*="float"], .prose img[align] {
		float: none !important;
		display: block;
		margin: 8px auto 14px !important;
	}
	.hero-birds { gap: 8px; }
	.hero-birds img { width: 72px; height: 72px; border-width: 3px; }
	.hero-birds img:nth-child(2), .hero-birds img:nth-child(4) { transform: translateY(12px); }
	.prose .guide-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.species-card, .more::after { transition: none; }
	.hero-birds img { transform: none !important; }
	.species-card:hover { transform: none; }
}

@media print {
	.site-nav, .menu-btn, .side, .site-foot { display: none; }
	.layout { display: block; }
}

/* ---------- Boutique : cartes des guides d'achat ---------- */
.shop-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prose .shop-guide { display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.shop-guide:hover { border-color: var(--accent); transform: translateY(-2px); }
.shop-guide img { width: 100%; height: 180px; object-fit: cover; background: var(--soft); }
.sg-body { display: grid; gap: 6px; align-content: start; padding: 16px 18px 18px; }
.sg-title { font-family: var(--f-head); font-weight: 800; font-size: 19px; }
.sg-desc { font-size: 15px; color: var(--muted); }
.sg-link { margin-top: 4px; font-weight: 700; font-size: 15px; color: var(--accent); }
.sg-link::after { content: " →"; }
.mini-card .btn-sm { justify-self: start; margin-top: 6px; }
@media (max-width: 900px) { .shop-guides { grid-template-columns: 1fr; } }

/* ---------- Fiches espèces : profil en barres ---------- */
.traits { display: grid; gap: 10px; padding: 18px 20px; background: var(--soft); border-radius: 16px; }
.trait { display: grid; grid-template-columns: 130px minmax(0, 1fr) 190px; gap: 14px; align-items: center; font-size: 16px; }
.trait-label { font-weight: 700; }
.trait-bar { height: 10px; background: rgba(34, 49, 63, .1); border-radius: 999px; overflow: hidden; }
.trait-bar span { display: block; height: 100%; background: var(--leaf); border-radius: 999px; }
.trait-val { font-size: 15px; color: var(--muted); }
@media (max-width: 600px) {
	.trait { grid-template-columns: 110px minmax(0, 1fr); }
	.trait-val { grid-column: 2; margin-top: -6px; }
}

/* Cartes d'espèces cliquables */
.prose .tip-link { color: inherit; text-decoration: none; background: var(--bg); border: 1px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s; }
.tip-link:hover, .tip-link:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34, 49, 63, .08); }
.tip-title { font-family: var(--f-head); font-weight: 800; font-size: 18px; color: var(--accent); }
.tip-desc { font-size: 15px; }
.tip-more { margin-top: 4px; font-weight: 700; font-size: 15px; color: var(--accent); }
.tip-more::after { content: " →"; transition: margin-left .2s; }
.tip-link:hover .tip-more::after { margin-left: 4px; }

/* ---------- Fiches espèces (articles) ---------- */
.fiche-id { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; background: var(--soft); border-radius: 16px; }
.fiche-id-noimg { grid-template-columns: 1fr; }
.prose .fiche-id img { width: 180px; height: 180px; object-fit: cover; border-radius: 12px; margin: 0; }
.prose .fiche-id dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.fiche-id dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--leaf); }
.fiche-id dd { margin: 0; font-weight: 600; }
.prose .species-nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.species-nav a, .species-nav span { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; text-decoration: none; }
.species-nav a { color: var(--accent); background: var(--bg); transition: border-color .2s; }
.species-nav a::after { content: " →"; }
.species-nav a:hover { border-color: var(--accent); }
.species-nav span { background: var(--soft); color: var(--muted); }
.prose .video { position: relative; aspect-ratio: 16 / 9; }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
@media (max-width: 600px) {
	.fiche-id { grid-template-columns: 1fr; justify-items: center; }
	.prose .fiche-id dl, .prose .species-nav { grid-template-columns: 1fr; width: 100%; }
}

/* Étapes numérotées */
.prose .steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 16px; background: var(--soft); border-radius: 12px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--leaf); color: var(--on-accent); font-weight: 800; }

/* Profils en barres côte à côte (plusieurs espèces) */
.traits-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.traits-card { display: grid; gap: 8px; align-content: start; }
.traits-title { font-family: var(--f-head); font-weight: 800; font-size: 18px; }
.traits-title a { color: var(--accent); text-decoration: none; }
.traits-group .traits { padding: 14px 16px; }
.traits-group .trait { grid-template-columns: 100px minmax(0, 1fr); gap: 4px 10px; font-size: 15px; }
.traits-group .trait-val { grid-column: 2; font-size: 13px; margin-top: -4px; }
@media (max-width: 900px) { .traits-group { grid-template-columns: 1fr; } }
