/*
 Theme Name:   Flavor Child — Acide Urique & Goutte
 Theme URI:    https://dev.acide-urique-goutte.com
 Description:  Thème enfant de Twenty Twenty-Five pour le site Acide Urique & Goutte. Guide alimentaire et base de données nutritionnelle multilingue (FR/EN/ES).
 Author:       MonSite
 Author URI:   https://acide-urique-goutte.com
 Template:     twentytwentyfive
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  flavor-child
 Tags:         health, nutrition, woocommerce, multilingual
*/

/* ==========================================================================
   VARIABLES CSS — Design tokens
   ========================================================================== */

:root {
	/* Couleurs principales */
	--fc-green-50: #f0fdf4;
	--fc-green-100: #dcfce7;
	--fc-green-200: #bbf7d0;
	--fc-green-300: #86efac;
	--fc-green-400: #4ade80;
	--fc-green-500: #22c55e;
	--fc-green-600: #16a34a;
	--fc-green-700: #15803d;
	--fc-green-800: #166534;
	--fc-green-900: #14532d;

	/* Couleurs chaudes (accent) */
	--fc-warm-50: #fff7ed;
	--fc-warm-100: #ffedd5;
	--fc-warm-200: #fed7aa;
	--fc-warm-300: #fdba74;
	--fc-warm-400: #fb923c;
	--fc-warm-500: #f97316;
	--fc-warm-600: #ea580c;

	/* Neutres */
	--fc-gray-50: #fafafa;
	--fc-gray-100: #f5f5f5;
	--fc-gray-200: #e5e5e5;
	--fc-gray-300: #d4d4d4;
	--fc-gray-400: #a3a3a3;
	--fc-gray-500: #737373;
	--fc-gray-600: #525252;
	--fc-gray-700: #404040;
	--fc-gray-800: #262626;
	--fc-gray-900: #171717;

	/* Code couleur purines/IG */
	--fc-level-low: #16a34a;
	--fc-level-low-bg: #f0fdf4;
	--fc-level-medium: #ea580c;
	--fc-level-medium-bg: #fff7ed;
	--fc-level-high: #dc2626;
	--fc-level-high-bg: #fef2f2;

	/* Couleurs sémantiques */
	--fc-primary: var(--fc-green-600);
	--fc-primary-hover: var(--fc-green-700);
	--fc-primary-light: var(--fc-green-50);
	--fc-accent: var(--fc-warm-500);
	--fc-accent-hover: var(--fc-warm-600);
	--fc-text: var(--fc-gray-800);
	--fc-text-light: var(--fc-gray-500);
	--fc-bg: #ffffff;
	--fc-bg-alt: var(--fc-gray-50);
	--fc-border: var(--fc-gray-200);

	/* Typographie */
	--fc-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--fc-font-heading: 'Playfair Display', 'Playfair Display Fallback', Georgia, 'Times New Roman', serif;
	--fc-line-height: 1.875;
	--fc-line-height-heading: 1.25;

	/* Espacements */
	--fc-space-xs: 0.25rem;
	--fc-space-sm: 0.5rem;
	--fc-space-md: 1rem;
	--fc-space-lg: 1.5rem;
	--fc-space-xl: 2rem;
	--fc-space-2xl: 3rem;
	--fc-space-3xl: 4rem;

	/* Rayons */
	--fc-radius-sm: 0.375rem;
	--fc-radius-md: 0.5rem;
	--fc-radius-lg: 0.75rem;
	--fc-radius-xl: 1rem;
	--fc-radius-pill: 50px;

	/* Raccourci */
	--fc-radius: var(--fc-radius-md);

	/* Ombres */
	--fc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--fc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	--fc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

	/* Largeur max — dynamique */
	--fc-max-width: min(1400px, 92vw);
	--fc-content-width: min(1100px, 90vw);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

body {
	font-family: var(--fc-font-body);
	color: var(--fc-text);
	line-height: var(--fc-line-height);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fc-font-heading);
	font-weight: 600;
	line-height: var(--fc-line-height-heading);
	color: var(--fc-gray-900);
}

h1 {
	font-weight: 700;
}

h2 {
	font-weight: 600;
}

h3, h4, h5, h6 {
	font-weight: 500;
}

a {
	color: var(--fc-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--fc-primary-hover);
}

/* ==========================================================================
   COMPOSANTS — BEM
   ========================================================================== */

/* --- Boutons --- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--fc-space-sm);
	padding: 0.85rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	border: none;
	border-radius: var(--fc-radius-pill);
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	letter-spacing: 0.01em;
}

/* CTA unifié — orange sur fond blanc, toujours lisible */
.btn--primary,
.btn--accent {
	background-color: var(--fc-accent);
	color: #ffffff;
}

.btn--primary:hover,
.btn--accent:hover {
	background-color: var(--fc-accent-hover);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: var(--fc-shadow-md);
}

.btn--outline {
	background-color: transparent;
	color: var(--fc-accent);
	border: 2px solid var(--fc-accent);
}

.btn--outline:hover {
	background-color: var(--fc-accent);
	color: #ffffff;
}

.btn--lg {
	padding: 1.1rem 2.5rem;
	font-size: 1.125rem;
}

.btn--sm {
	padding: 0.5rem 1.25rem;
	font-size: 0.875rem;
}

/* --- Card --- */
.card {
	background: var(--fc-bg);
	border: 1px solid var(--fc-border);
	border-radius: var(--fc-radius-xl);
	padding: var(--fc-space-xl);
	box-shadow: var(--fc-shadow-sm);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
	box-shadow: var(--fc-shadow-lg);
	transform: translateY(-3px);
}

.card__title {
	font-size: 1.25rem;
	margin-bottom: var(--fc-space-sm);
}

.card__text {
	color: var(--fc-text-light);
	margin-bottom: var(--fc-space-md);
}

/* --- Section --- */
.section {
	padding: var(--fc-space-3xl) var(--fc-space-md);
}

.section--alt {
	background-color: var(--fc-bg-alt);
}

.section__container {
	max-width: var(--fc-max-width);
	margin: 0 auto;
	padding: 0 var(--fc-space-md);
}

.section__title {
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	text-align: center;
	margin-bottom: var(--fc-space-md);
}

.section__subtitle {
	text-align: center;
	color: var(--fc-text-light);
	font-size: 1.1rem;
	max-width: 600px;
	margin: 0 auto var(--fc-space-2xl);
	line-height: 1.8;
}

/* --- Hero --- */
.hero {
	padding: clamp(4rem, 10vw, 7rem) var(--fc-space-md) clamp(4rem, 10vw, 6rem);
	text-align: center;
	position: relative;
	background-color: var(--fc-gray-900);
	/* Mobile par défaut — 800w (41 KB) */
	background-image: url('assets/img/hero-healthy-food-bg-800.webp');
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

/* Tablet — 1200w (79 KB) */
@media (min-width: 768px) {
	.hero {
		background-image: url('assets/img/hero-healthy-food-bg-1200.webp');
	}
}

/* Desktop / retina — 1600w (121 KB) */
@media (min-width: 1200px), (min-resolution: 1.5dppx) and (min-width: 768px) {
	.hero {
		background-image: url('assets/img/hero-healthy-food-bg.webp');
	}
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(20, 83, 45, 0.82) 0%, rgba(38, 38, 38, 0.7) 50%, rgba(23, 23, 23, 0.75) 100%);
	z-index: 1;
}

.hero::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 80px;
	background: var(--fc-bg);
	clip-path: ellipse(55% 100% at 50% 100%);
	z-index: 2;
}

.hero__container {
	max-width: var(--fc-content-width);
	margin: 0 auto;
	position: relative;
	z-index: 3;
}

.hero__badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	padding: 0.4rem 1.4rem;
	border-radius: var(--fc-radius-pill);
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: var(--fc-space-xl);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__title {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	margin-bottom: var(--fc-space-lg);
	color: #ffffff;
	font-style: italic;
	font-weight: 700;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero__title em {
	color: var(--fc-green-300);
	font-style: italic;
}

.hero__text {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: var(--fc-space-xl);
	line-height: 1.9;
	max-width: 620px;
	margin-left: auto;
	margin-right: auto;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hero__cta {
	display: flex;
	gap: var(--fc-space-md);
	justify-content: center;
	flex-wrap: wrap;
}

/* Hero : CTA principal orange vif (contraste sur fond vert) */
.hero .btn--primary,
.hero .btn--accent {
	background-color: var(--fc-accent);
	color: #ffffff;
}

.hero .btn--primary:hover,
.hero .btn--accent:hover {
	background-color: var(--fc-accent-hover);
	color: #ffffff;
}

/* Hero : CTA secondaire outline blanc */
.hero .btn--outline {
	background-color: transparent;
	color: #ffffff;
	border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero .btn--outline:hover {
	background-color: rgba(255, 255, 255, 0.15);
	border-color: #ffffff;
	color: #ffffff;
}

/* --- Section Approche (coach-style intro) --- */
.approach {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--fc-space-2xl);
	align-items: center;
}

.approach__image {
	border-radius: 1.5rem;
	overflow: hidden;
	box-shadow: var(--fc-shadow-lg);
}

.approach__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.approach__content {
	padding: var(--fc-space-lg) 0;
}

.approach__tagline {
	display: inline-block;
	color: var(--fc-primary);
	font-weight: 600;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: var(--fc-space-md);
}

.approach__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: var(--fc-space-lg);
	line-height: 1.35;
}

.approach__text {
	color: var(--fc-text-light);
	line-height: 1.9;
	margin-bottom: var(--fc-space-lg);
}

.approach__list {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--fc-space-xl) 0;
}

.approach__list li {
	padding: var(--fc-space-xs) 0;
	display: flex;
	align-items: baseline;
	gap: var(--fc-space-sm);
	color: var(--fc-text);
}

.approach__list li::before {
	content: '✓';
	color: var(--fc-primary);
	font-weight: 700;
	flex-shrink: 0;
}

/* --- Niveau purines/IG (code couleur) --- */
.level {
	display: inline-block;
	padding: 0.2em 0.6em;
	border-radius: var(--fc-radius-sm);
	font-size: 0.85em;
	font-weight: 600;
}

.level--low {
	color: var(--fc-level-low);
	background-color: var(--fc-level-low-bg);
}

.level--medium {
	color: var(--fc-level-medium);
	background-color: var(--fc-level-medium-bg);
}

.level--high {
	color: var(--fc-level-high);
	background-color: var(--fc-level-high-bg);
}

/* --- Tableau aliments --- */
.aliments-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.aliments-table th {
	background-color: var(--fc-green-700);
	color: #ffffff;
	padding: 0.75rem 1rem;
	text-align: left;
	font-weight: 600;
	position: sticky;
	top: 0;
}

.aliments-table td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--fc-border);
}

.aliments-table tr:hover {
	background-color: var(--fc-green-50);
}

.aliments-table th[data-sort] {
	cursor: pointer;
	user-select: none;
}

.aliments-table th[data-sort]:hover {
	background-color: var(--fc-green-800);
}

.sort-icon {
	font-size: 0.75em;
	opacity: 0.6;
	margin-left: var(--fc-space-xs);
}

.aliments-table th.sorted-asc .sort-icon::after,
.aliments-table th.sorted-desc .sort-icon::after {
	opacity: 1;
}

.aliments-table__blurred {
	filter: blur(4px);
	user-select: none;
	pointer-events: none;
}

.aliments-table__empty {
	text-align: center;
	color: var(--fc-text-light);
	padding: var(--fc-space-2xl);
	font-style: italic;
}

/* --- Paywall overlay --- */
.paywall {
	position: relative;
}

.paywall__overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 200px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 60%, #ffffff 100%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: var(--fc-space-xl);
}

.paywall__box {
	text-align: center;
	background: var(--fc-bg);
	padding: var(--fc-space-2xl);
	border-radius: 1.5rem;
	box-shadow: var(--fc-shadow-lg);
	max-width: 500px;
}

.paywall__login {
	margin-top: var(--fc-space-sm);
	font-size: 0.9rem;
}

/* --- Disclaimer --- */
.disclaimer {
	background-color: var(--fc-gray-50);
	border-left: 4px solid var(--fc-warm-400);
	padding: var(--fc-space-md) var(--fc-space-lg);
	margin: var(--fc-space-2xl) 0;
	font-size: 0.875rem;
	color: var(--fc-text-light);
	border-radius: 0 var(--fc-radius-lg) var(--fc-radius-lg) 0;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
	font-size: 0.85rem;
	color: var(--fc-text-light);
	padding: var(--fc-space-md) 0;
}

.breadcrumbs a {
	color: var(--fc-text-light);
}

.breadcrumbs a:hover {
	color: var(--fc-primary);
}

.breadcrumbs__separator {
	margin: 0 var(--fc-space-xs);
}

/* --- Sélecteur de langue --- */
.lang-switcher {
	display: flex;
	gap: var(--fc-space-xs);
	align-items: center;
}

.lang-switcher__link {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.5rem;
	border-radius: var(--fc-radius-sm);
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--fc-text-light);
	transition: all 0.2s ease;
}

.lang-switcher__link:hover,
.lang-switcher__link--active {
	background-color: var(--fc-primary-light);
	color: var(--fc-primary);
}

/* --- Section PDF (homepage) --- */
.pdf-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--fc-space-2xl);
	align-items: center;
}

.pdf-section__title {
	font-size: 1.8rem;
	margin-bottom: var(--fc-space-md);
}

.pdf-section__text {
	color: var(--fc-text-light);
	margin-bottom: var(--fc-space-lg);
	line-height: 1.8;
}

.pdf-section__features {
	list-style: none;
	padding: 0;
	margin-bottom: var(--fc-space-xl);
}

.pdf-section__feature {
	padding: var(--fc-space-xs) 0;
	color: var(--fc-text);
	display: flex;
	align-items: baseline;
	gap: var(--fc-space-sm);
}

.pdf-section__check {
	color: var(--fc-primary);
	flex-shrink: 0;
}

.pdf-section__card {
	background: linear-gradient(145deg, var(--fc-green-50) 0%, #fefdf8 50%, var(--fc-warm-50) 100%);
	border-radius: 1.5rem;
	padding: var(--fc-space-2xl);
	text-align: center;
	border: 1px solid var(--fc-green-100);
	position: relative;
	overflow: hidden;
}

.pdf-section__card::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle, rgba(22, 163, 74, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.pdf-section__icon {
	font-size: 3.5rem;
	margin-bottom: var(--fc-space-md);
}

.pdf-section__price {
	font-family: var(--fc-font-heading);
	font-size: 2.8rem;
	font-weight: 800;
	color: var(--fc-primary);
	margin-bottom: var(--fc-space-sm);
}

.pdf-section__download {
	color: var(--fc-text-light);
	font-size: 0.9rem;
}

/* --- Grille confiance (homepage) --- */
.trust-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--fc-space-xl);
	text-align: center;
	margin-top: var(--fc-space-xl);
}

.trust-card {
	padding: var(--fc-space-xl);
	border-radius: var(--fc-radius-xl);
	transition: all 0.3s ease;
	background: var(--fc-bg);
	border: 1px solid transparent;
}

.trust-card:hover {
	background: var(--fc-green-50);
	border-color: var(--fc-green-100);
	transform: translateY(-2px);
	box-shadow: var(--fc-shadow-md);
}

.trust-card__num {
	font-family: var(--fc-font-heading);
	font-size: 2.8rem;
	font-weight: 700;
	color: var(--fc-primary);
	margin-bottom: var(--fc-space-sm);
}

.trust-card__label {
	color: var(--fc-text-light);
}

/* --- Section image d'ambiance (bandeau) --- */
.ambiance-banner {
	position: relative;
	height: 280px;
	overflow: hidden;
}

.ambiance-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ambiance-banner::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.6) 100%);
}

/* --- Grille blog (homepage) --- */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--fc-space-xl);
	margin-top: var(--fc-space-xl);
}

.card__date {
	font-size: 0.85rem;
	color: var(--fc-text-light);
}

/* --- Note de source --- */
.source-note {
	font-size: 0.85rem;
	color: var(--fc-text-light);
}

/* --- CTA encart (dans les articles) --- */
.cta-box {
	background: linear-gradient(145deg, var(--fc-green-50) 0%, #fefdf8 50%, var(--fc-warm-50) 100%);
	border: 2px solid var(--fc-green-200);
	border-radius: 1.5rem;
	padding: var(--fc-space-2xl);
	text-align: center;
	margin: var(--fc-space-2xl) 0;
}

.cta-box__title {
	font-size: 1.5rem;
	margin-bottom: var(--fc-space-sm);
}

.cta-box__text {
	color: var(--fc-text-light);
	margin-bottom: var(--fc-space-lg);
}

/* --- Filtres de recherche --- */
.search-filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fc-space-md);
	padding: var(--fc-space-xl);
	background: var(--fc-bg-alt);
	border-radius: 1.25rem;
	margin-bottom: var(--fc-space-xl);
	border: 1px solid var(--fc-border);
}

.search-filters__field {
	flex: 1;
	min-width: 200px;
}

.search-filters__field--wide {
	flex: 2;
}

.search-filters__field--action {
	align-self: flex-end;
}

.search-filters__label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: var(--fc-space-xs);
	color: var(--fc-text-light);
}

.search-filters__input,
.search-filters__select {
	width: 100%;
	padding: 0.7rem 1rem;
	border: 2px solid var(--fc-border);
	border-radius: var(--fc-radius-pill);
	font-size: 0.95rem;
	font-family: var(--fc-font-body);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	background: var(--fc-bg);
}

.search-filters__input:focus,
.search-filters__select:focus {
	outline: none;
	border-color: var(--fc-primary);
	box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

/* --- Pagination --- */
.pagination {
	display: flex;
	justify-content: center;
	gap: var(--fc-space-xs);
	margin-top: var(--fc-space-xl);
}

.pagination__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 var(--fc-space-sm);
	border: 1px solid var(--fc-border);
	border-radius: var(--fc-radius-pill);
	font-size: 0.9rem;
	color: var(--fc-text);
	transition: all 0.3s ease;
}

.pagination__link:hover {
	border-color: var(--fc-primary);
	color: var(--fc-primary);
}

.pagination__link--active {
	background-color: var(--fc-primary);
	border-color: var(--fc-primary);
	color: #ffffff;
}

/* --- Header custom --- */
.site-header {
	border-bottom: 1px solid var(--fc-border);
	background: var(--fc-bg);
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(8px);
	background: rgba(255, 255, 255, 0.95);
}

.site-header__inner {
	max-width: var(--fc-max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--fc-space-md) var(--fc-space-lg);
}

.site-header__logo {
	display: flex;
	align-items: flex-end;
	gap: 0.6rem;
	text-decoration: none;
	color: inherit;
	flex-shrink: 0;
}

.site-header__logo-icon {
	flex-shrink: 0;
	height: 36px !important;
	width: auto !important;
	max-width: 80px;
	object-fit: contain;
}

.site-header__logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.site-header__logo-name {
	font-family: var(--fc-font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--fc-green-700);
}

.site-header__logo-baseline {
	font-size: 0.72rem;
	font-weight: 500;
	color: var(--fc-gray-500);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.site-header__nav {
	display: flex;
	align-items: center;
	gap: var(--fc-space-lg);
}

.site-header__nav a {
	color: var(--fc-text);
	font-weight: 500;
	font-size: 0.95rem;
}

.site-header__nav a:hover {
	color: var(--fc-primary);
}

/* Bouton hamburger (caché en desktop) */
.site-header__toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--fc-space-sm);
	flex-direction: column;
	gap: 5px;
}

.site-header__toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--fc-text);
	transition: all 0.3s ease;
}

/* Navigation mobile */
.site-header__mobile-nav {
	display: none;
	flex-direction: column;
	gap: var(--fc-space-sm);
	padding: var(--fc-space-md) var(--fc-space-lg);
	background: var(--fc-bg);
	border-top: 1px solid var(--fc-border);
}

.site-header__mobile-nav[hidden] {
	display: none !important;
}

.site-header__mobile-nav:not([hidden]) {
	display: flex;
}

.site-header__mobile-nav a {
	color: var(--fc-text);
	font-weight: 500;
	padding: var(--fc-space-sm) 0;
	border-bottom: 1px solid var(--fc-border);
}

.site-header__mobile-nav a:last-of-type {
	border-bottom: none;
}

.site-header__mobile-nav .lang-switcher {
	padding-top: var(--fc-space-sm);
	justify-content: center;
}

/* --- Footer --- */
.site-footer {
	background-color: var(--fc-gray-900);
	color: var(--fc-gray-300);
	padding: var(--fc-space-3xl) var(--fc-space-md) var(--fc-space-xl);
}

.site-footer__inner {
	max-width: var(--fc-max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--fc-space-2xl);
}

.site-footer__title {
	font-family: var(--fc-font-heading);
	color: #ffffff;
	font-size: 1.2rem;
	margin-bottom: var(--fc-space-md);
	font-weight: 500;
}

.site-footer a {
	color: var(--fc-gray-400);
	transition: color 0.2s ease;
}

.site-footer a:hover {
	color: #ffffff;
}

.site-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-footer__links li {
	margin-bottom: var(--fc-space-sm);
}

.site-footer__bottom {
	max-width: var(--fc-max-width);
	margin: var(--fc-space-xl) auto 0;
	padding-top: var(--fc-space-lg);
	border-top: 1px solid var(--fc-gray-700);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--fc-space-md);
	font-size: 0.85rem;
}

.site-footer__disclaimer {
	font-size: 0.8rem;
	color: var(--fc-gray-500);
	max-width: 600px;
	line-height: 1.5;
	margin-top: var(--fc-space-md);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablette */
/* Header — menu burger activé pour iPad et mobile (≤1024px).
   Évite le menu cramé sur tablette portrait (820px) où la nav complète ne tient pas. */
@media (max-width: 1024px) {
	.site-header__nav {
		display: none;
	}

	.site-header__toggle {
		display: flex;
	}
}

@media (max-width: 768px) {
	.hero__title {
		font-size: 1.8rem;
	}

	.hero::after {
		height: 40px;
	}

	.hero {
		padding: var(--fc-space-2xl) var(--fc-space-md) calc(var(--fc-space-2xl) + 1rem);
	}

	.approach {
		grid-template-columns: 1fr;
		gap: var(--fc-space-xl);
	}

	.approach__image {
		max-height: 300px;
	}

	.section__title {
		font-size: 1.5rem;
	}

	.ambiance-banner {
		height: 180px;
	}

	.site-header__inner {
		flex-wrap: wrap;
		gap: var(--fc-space-md);
	}

	.site-header__logo-icon {
		width: 26px;
		height: 32px;
	}

	.site-header__logo-name {
		font-size: 1rem;
	}

	.site-header__logo-baseline {
		font-size: 0.65rem;
	}

	.pdf-section {
		grid-template-columns: 1fr;
	}

	.pdf-section__card {
		order: -1;
		padding: var(--fc-space-xl);
	}

	.search-filters {
		flex-direction: column;
	}

	.search-filters__field {
		min-width: auto;
	}

	.aliments-table {
		font-size: 0.85rem;
	}

	.aliments-table th,
	.aliments-table td {
		padding: 0.5rem;
	}

	.blog-grid {
		grid-template-columns: 1fr;
	}

	.trust-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.hero {
		padding: var(--fc-space-xl) var(--fc-space-md);
	}

	.hero__cta {
		flex-direction: column;
	}

	.btn--lg {
		width: 100%;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.trust-grid {
		grid-template-columns: 1fr;
	}

	.pdf-section__title {
		font-size: 1.4rem;
	}

	.pdf-section__price {
		font-size: 2rem;
	}

	/* Tableau aliments : scroll horizontal */
	.aliments-table__wrapper {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.aliments-table {
		min-width: 500px;
	}
}
