/* Est-ce périmé ? — thème « tampon dateur » : crème, bordeaux, or, badges verdict. */
:root {
	--fond: #faf7f2;
	--encre: #29202a;
	--sourdine: #6d5f68;
	--accent: #8d2f4f;
	--accent-fonce: #4c1428;
	--carte: #ffffff;
	--filet: #e6dade;
	--ok: #2c8a4b;
	--test: #c07a12;
	--non: #bd3325;
	--clair: #e8c66a;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.65;
	color: var(--encre);
	background: var(--fond);
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); }
a:hover { color: var(--accent-fonce); }

/* ---- header ---- */
.site-header {
	background: var(--accent-fonce);
	border-bottom: 4px solid var(--accent);
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 20px;
	padding-top: 14px;
	padding-bottom: 14px;
}
.logo {
	font-size: 24px;
	font-weight: 800;
	color: #fff;
	text-decoration: none;
	letter-spacing: -0.01em;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.logo em { font-style: normal; color: var(--clair); }
.logo-picto {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: var(--clair);
	color: var(--accent-fonce);
	font-weight: 900;
	font-size: 20px;
}
.nav-piliers { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.nav-piliers a {
	color: #f0dde5;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
}
.nav-piliers a:hover { color: var(--clair); }

/* ---- structure ---- */
main.wrap { padding-top: 28px; padding-bottom: 48px; }
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 10px; }
h2 { font-size: 25px; margin: 40px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 20px; margin: 26px 0 8px; }
.sous-titre { font-size: 19px; color: var(--sourdine); margin: 0 0 22px; }

/* ---- badges verdict ---- */
.badge {
	display: inline-block;
	padding: 1px 10px;
	border-radius: 99px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
}
.badge-grand { font-size: 17px; padding: 6px 18px; }
.badge-ok { background: var(--ok); }
.badge-test { background: var(--test); }
.badge-non { background: var(--non); }
.verdict { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reponse { font-size: 19px; margin: 0 0 22px; }

/* ---- tables ---- */
.table-scroll { overflow-x: auto; margin: 14px 0 8px; }
table {
	border-collapse: collapse;
	width: 100%;
	background: var(--carte);
	border: 1px solid var(--filet);
	border-radius: 10px;
	overflow: hidden;
	font-size: 16.5px;
}
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--filet); vertical-align: top; }
tr:last-child td { border-bottom: none; }
th { background: #f1e7ec; font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--sourdine); }
table.fiche th { width: 40%; text-transform: none; letter-spacing: 0; font-size: 16.5px; background: #f5ecf0; }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; }

/* ---- cartes familles ---- */
.cartes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 14px;
	margin: 18px 0;
}
.carte {
	background: var(--carte);
	border: 1px solid var(--filet);
	border-left: 5px solid var(--accent);
	border-radius: 10px;
	padding: 14px 16px;
	text-decoration: none;
	color: var(--encre);
	transition: border-color 0.15s, transform 0.15s;
}
.carte:hover { border-left-color: var(--clair); transform: translateY(-2px); }
.carte strong { display: block; font-size: 19px; color: var(--accent-fonce); margin-bottom: 3px; }
.carte span { font-size: 15.5px; color: var(--sourdine); line-height: 1.45; display: block; }

/* ---- recherche ---- */
.recherche { position: relative; margin: 24px 0 8px; max-width: 560px; }
.recherche label { display: block; font-weight: 700; margin-bottom: 6px; }
.recherche input {
	width: 100%;
	font-size: 19px;
	padding: 13px 16px;
	border: 2px solid var(--accent);
	border-radius: 10px;
	background: #fff;
	color: var(--encre);
}
.recherche input:focus { outline: 3px solid #ecd3dd; }
#resultats {
	position: absolute;
	z-index: 10;
	left: 0; right: 0;
	margin: 4px 0 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--filet);
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(60, 15, 35, 0.14);
	max-height: 330px;
	overflow-y: auto;
}
#resultats li a {
	display: block;
	padding: 7px 12px;
	border-radius: 7px;
	text-decoration: none;
	color: var(--encre);
}
#resultats li a:hover { background: #f7edf1; }
#resultats li a strong { color: var(--accent-fonce); }
#resultats .vide { padding: 7px 12px; color: var(--sourdine); }

/* ---- divers ---- */
.cta {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	padding: 11px 20px;
	border-radius: 9px;
}
.cta:hover { background: var(--accent-fonce); color: #fff; }
.liste-freres { padding-left: 22px; }
.liste-freres li { margin: 4px 0; }
.encadre {
	background: #f8eff3;
	border: 1px solid var(--filet);
	border-left: 5px solid var(--accent);
	border-radius: 10px;
	padding: 14px 18px;
	margin: 18px 0;
}
.encadre p { margin: 6px 0; }
.sources {
	margin-top: 44px;
	padding: 14px 18px;
	background: #f1e7ec;
	border-radius: 10px;
	font-size: 15px;
	color: var(--sourdine);
}
.sources a { color: var(--accent-fonce); }

/* ---- footer ---- */
.site-footer {
	background: var(--accent-fonce);
	color: #e3cdd6;
	margin-top: 40px;
	font-size: 15.5px;
}
.site-footer .wrap { padding-top: 26px; padding-bottom: 30px; }
.site-footer a { color: var(--clair); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 14px; }
.footer-nav a { color: #f0dde5; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--clair); }
.attribution { color: #b58fa0; }

/* ---- responsive ---- */
@media (max-width: 640px) {
	body { font-size: 17px; }
	h1 { font-size: 27px; }
	h2 { font-size: 22px; }
	.masq-mobile { display: none; }
	.site-header .wrap { flex-direction: column; align-items: flex-start; }
}
