/* Quantité par personne — thème « marché » : crème chaud, olive profond, safran.
   Charte volontairement distincte des sites frères du réseau. */
:root {
	--fond: #faf6ee;
	--encre: #2b2620;
	--sourdine: #6b6255;
	--olive: #4a5424;
	--olive-fonce: #333c14;
	--safran: #d99a27;
	--safran-clair: #f3d9a4;
	--carte: #ffffff;
	--filet: #e6ddcc;
	--tomate: #b5482a;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
	font-size: 18px;
	line-height: 1.68;
	color: var(--encre);
	background: var(--fond);
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

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

/* ---- entête ---- */
.entete { background: var(--olive-fonce); }
.entete .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}
.marque { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.marque-picto {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--safran);
	color: var(--olive-fonce);
	font-size: 22px;
}
.marque-texte { color: #fff; font-size: 22px; font-weight: 700; line-height: 1.15; }
.marque-texte em { font-style: normal; color: var(--safran-clair); }
.marque-texte small { display: block; font-size: 13px; font-weight: 400; color: #cfc9a8; letter-spacing: 0.02em; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.menu a { color: #ece7d2; text-decoration: none; font-weight: 600; font-size: 16px; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.menu a:hover { color: var(--safran-clair); }

/* ---- structure ---- */
main.wrap { padding-top: 30px; padding-bottom: 52px; }
h1 { font-size: 33px; line-height: 1.2; margin: 0 0 10px; }
h2 { font-size: 25px; margin: 42px 0 12px; }
h3 { font-size: 20px; margin: 26px 0 8px; }
.sous-titre { font-size: 19px; color: var(--sourdine); margin: 0 0 24px; }

/* ---- la réponse ---- */
.chiffre-cle {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 18px 0 22px;
}
.chiffre-cle .pastille {
	background: var(--carte);
	border: 2px solid var(--safran);
	border-radius: 12px;
	padding: 12px 20px;
	min-width: 180px;
}
.chiffre-cle .pastille strong { display: block; font-size: 28px; color: var(--olive-fonce); line-height: 1.15; }
.chiffre-cle .pastille span { font-size: 15px; color: var(--sourdine); font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.reponse { font-size: 19px; margin: 0 0 20px; }

/* ---- 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: #f2ebd9; font-size: 14.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sourdine); font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
table.fiche th { width: 42%; text-transform: none; letter-spacing: 0; font-size: 16.5px; font-family: inherit; }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; }

/* ---- cartes ---- */
.cartes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
	margin: 18px 0;
}
.carte {
	background: var(--carte);
	border: 1px solid var(--filet);
	border-top: 4px solid var(--safran);
	border-radius: 12px;
	padding: 15px 17px;
	text-decoration: none;
	color: var(--encre);
	transition: transform 0.15s, box-shadow 0.15s;
}
.carte:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(60, 48, 20, 0.1); }
.carte strong { display: block; font-size: 19px; color: var(--olive-fonce); margin-bottom: 4px; }
.carte span { font-size: 15.5px; color: var(--sourdine); line-height: 1.5; display: block; }

/* ---- calculateur ---- */
.calculateur {
	background: var(--carte);
	border: 2px solid var(--olive);
	border-radius: 14px;
	padding: 20px 22px;
	margin: 22px 0;
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}
.calculateur h2 { margin: 0 0 6px; font-size: 22px; font-family: inherit; }
.calculateur .note { font-size: 15px; color: var(--sourdine); margin: 0 0 14px; }
.calc-champs { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 8px; }
.calc-champs label { font-weight: 600; font-size: 15.5px; display: block; }
.calc-champs input, .calc-champs select {
	display: block;
	margin-top: 4px;
	font-size: 18px;
	padding: 8px 10px;
	width: 110px;
	border: 1.5px solid var(--filet);
	border-radius: 8px;
	background: #fff;
	color: var(--encre);
}
.calc-champs select { width: auto; }
.calc-champs input:focus, .calc-champs select:focus { outline: 3px solid var(--safran-clair); border-color: var(--safran); }
#calc-resultat table { margin-top: 12px; }
#calc-resultat .calc-total { font-weight: 700; }

/* ---- recherche ---- */
.recherche { position: relative; margin: 24px 0 8px; max-width: 580px; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.recherche label { display: block; font-weight: 700; margin-bottom: 6px; }
.recherche input {
	width: 100%;
	font-size: 19px;
	padding: 13px 16px;
	border: 2px solid var(--olive);
	border-radius: 12px;
	background: #fff;
	color: var(--encre);
}
.recherche input:focus { outline: 3px solid var(--safran-clair); }
#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, 48, 20, 0.16);
	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: #f5efdf; }
#resultats li a strong { color: var(--olive-fonce); }
#resultats .vide { padding: 7px 12px; color: var(--sourdine); }

/* ---- divers ---- */
.cta {
	display: inline-block;
	background: var(--olive);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	padding: 11px 20px;
	border-radius: 10px;
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}
.cta:hover { background: var(--olive-fonce); color: #fff; }
.liste-liens { padding-left: 22px; }
.liste-liens li { margin: 5px 0; }
.encadre {
	background: #f5efdf;
	border: 1px solid var(--filet);
	border-left: 5px solid var(--safran);
	border-radius: 10px;
	padding: 14px 18px;
	margin: 20px 0;
}
.encadre p { margin: 6px 0; }
.sources {
	margin-top: 46px;
	padding: 14px 18px;
	background: #f2ebd9;
	border-radius: 10px;
	font-size: 15px;
	color: var(--sourdine);
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}
.sources a { color: var(--olive-fonce); }

/* ---- pied ---- */
.pied { background: var(--olive-fonce); color: #d8d2b8; margin-top: 44px; font-size: 15.5px; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.pied .wrap { padding-top: 26px; padding-bottom: 32px; }
.pied a { color: var(--safran-clair); }
.pied-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 14px; }
.pied-nav a { color: #ece7d2; text-decoration: none; font-weight: 600; }
.pied-nav a:hover { color: var(--safran-clair); }
.attribution { color: #a9a284; }

/* ---- responsive ---- */
@media (max-width: 640px) {
	body { font-size: 17px; }
	h1 { font-size: 26px; }
	h2 { font-size: 22px; }
	.masq-mobile { display: none; }
	.entete .wrap { flex-direction: column; align-items: flex-start; }
	.chiffre-cle .pastille { flex: 1 1 100%; }
}
