/**
 * Tizzano Theme - Main Stylesheet
 * New Homepage Design - Clean Integration
 *
 * @package Tizzano
 * @since 1.3.0
 */

/* ==============================================
   GLOBAL STYLES
   ============================================== */

body {
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	margin: 0;
	padding: 0;
	background-color: #4C4C4C;
	color: #FFFFFF;
	font-size: 15px;
	line-height: 1.6;
	box-sizing: border-box;
}

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

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Skip link for accessibility */
.skip-link {
	position: absolute;
	top: -100%;
	left: 50%;
	transform: translateX(-50%);
	background: #47BBD6;
	color: #fff;
	padding: 0.5rem 1.5rem;
	z-index: 10000;
	border-radius: 0 0 4px 4px;
	font-weight: 600;
}

.skip-link:focus {
	top: 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ==============================================
   INFO BAR (Announcements)
   ============================================== */

.tizzano-info-bar {
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 600;
	position: relative;
}

.tizzano-info-bar__inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0.6rem 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.tizzano-info-bar__text {
	margin: 0;
}

.tizzano-info-bar__close {
	background: none;
	border: none;
	color: inherit;
	font-size: 1.25rem;
	cursor: pointer;
	padding: 0 0.25rem;
	opacity: 0.7;
	line-height: 1;
}

.tizzano-info-bar__close:hover {
	opacity: 1;
}

.tizzano-info-bar.is-hidden {
	display: none;
}

/* ==============================================
   TOP BAR - Cyan contact strip
   ============================================== */

.top-bar {
	background-color: #47BBD6;
	color: #ffffff;
	font-size: 13px;
	padding: 6px 0;
}

.top-bar .container {
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 15px;
}

.contact-info {
	display: flex;
	align-items: center;
	gap: 5px;
}

.contact-info .separator {
	color: #ffffff;
	margin: 0 8px;
}

.contact-info i {
	color: #ffffff;
	margin-right: 5px;
}

.contact-info a {
	color: #ffffff;
	transition: opacity 0.2s;
	text-decoration: none;
}

.contact-info a:hover {
	opacity: 0.8;
}

.address-info {
	display: flex;
	align-items: center;
	color: #ffffff;
	font-size: 13px;
	margin-left: 25px;
}

.address-info i {
	color: #ffffff;
	margin-right: 5px;
}

.social-icons {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.social-icons a {
	margin-left: 15px;
	color: #ffffff;
	font-size: 14px;
	transition: opacity 0.2s;
	text-decoration: none;
}

.social-icons a:hover {
	opacity: 0.8;
}

/* ==============================================
   HEADER - Centered Logo
   ============================================== */

.main-header {
	background-color: #4C4C4C;
	max-width: 1300px;
	margin: 0 auto;
	padding: 15px 0px 5px 0px;
	position: relative;
	text-align: center;
}

.header-content {
	display: flex;
	justify-content: center;
	align-items: center;
}

.logo-container {
	display: block;
	text-align: center;
}

.logo,
.logo-container img,
.custom-logo {
	max-width: 100%;
	height: auto;
	max-height: 200px;
}

.mobile-logo {
	display: none;
}

/* Facebook Widget Box - hidden */
.fb-widget {
	display: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 30px;
	background: #fff;
	color: #000;
	padding: 10px 15px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	z-index: 20;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	margin-left: 0;
}

.fb-widget img {
	width: 30px;
	height: 30px;
}

/* ==============================================
   MOBILE BAR & NAVIGATION
   ============================================== */

.mobile-bar {
	display: none;
	background-color: #4C4C4C;
	border: none;
	padding: 10px 0;
	position: sticky;
	top: 0;
	z-index: 999;
}

.mobile-bar-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 15px;
}

.mobile-bar-text {
	font-weight: 700;
	font-size: 16px;
	color: #ffffff;
	letter-spacing: 1px;
}

.mobile-menu-toggle {
	background: none;
	border: none;
	color: #ffffff;
	font-size: 24px;
	cursor: pointer;
	padding: 5px;
}

.mobile-nav {
	display: none;
	background-color: #fff;
	width: 100%;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
	margin-top: 10px;
}

.mobile-nav.active {
	display: block;
}

.mobile-menu-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-menu-list li {
	border-bottom: 1px solid #eee;
}

.mobile-menu-list li a {
	display: block;
	padding: 15px 20px;
	color: #333;
	text-decoration: none;
	font-weight: 600;
}

.mobile-menu-list li a:hover {
	background-color: #f5f5f5;
}

/* ==============================================
   MAIN WRAPPER
   ============================================== */

.main-wrapper {
	max-width: 1250px;
	margin: 0 auto;
}

/* ==============================================
   HERO SECTION
   ============================================== */

.hero {
	background-color: #47BBD6;
	color: #ffffff;
	text-align: center;
	padding: 25px 25px 25px 25px;
	border-radius: 10px 10px 0 0;
	max-width: 1250px;
	margin-top: 15px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	z-index: 2;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero h1 {
	font-size: 20px;
	font-weight: 400;
	margin: 0 0 20px 0;
}

/* Inner pages: tighter hero with just title */
body:not(.home) .hero {
	padding: 20px 25px 15px 25px;
	box-shadow: none;
}

body:not(.home) .hero h1 {
	margin: 0;
}

.hero .subtitle {
	font-size: 18px;
	font-weight: 400;
	opacity: 0.95;
	margin: 0 auto 25px auto;
	max-width: 800px;
	line-height: 1.6;
}

.hero .hero-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.4);
	padding-top: 15px;
	font-size: 16px;
	font-weight: 400;
	margin: 0;
}

.hero .hero-delivery {
	font-size: 16px;
	font-weight: 400;
	margin: 15px 0 0 0;
}

/* ==============================================
   TABS NAVIGATION - Speech Bubble Style
   ============================================== */

#carte {
	scroll-margin-top: 20px;
}

.tabs-nav {
	background-color: transparent;
	max-width: 1250px;
	margin: 0 auto;
	margin-top: -1px;
	position: relative;
	z-index: 3;
	margin-bottom: 0;
	box-shadow: none;
	border-bottom: none;
}

.tabs-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: space-between;
	gap: 0;
	background-color: transparent;
}

.tabs-list li {
	flex: 1;
	text-align: center;
	position: relative;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.tabs-list li:last-child {
	border-right: none;
}

.tabs-list button {
	background: #2b2b2b;
	border: none;
	color: #ffffff;
	font-size: 13px;
	font-family: 'Open Sans', sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
	padding: 20px 10px;
	width: 100%;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.tabs-list button i {
	font-size: 18px;
}

.tabs-list button:hover {
	color: #fff;
	background-color: rgba(255, 255, 255, 0.05);
}

/* Active State - Speech Bubble */
.tabs-list li.active button {
	background-color: #47BBD6;
	color: #ffffff;
}

.tabs-list li.active button i {
	opacity: 1;
}

/* Triangle Pointer */
.tabs-list li.active::after {
	content: '';
	position: absolute;
	top: calc(100% - 1px);
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 10px solid #47BBD6;
	z-index: 5;
}

/* ==============================================
   MENU CONTENT - Dark Grey background
   ============================================== */

.menu-content {
	background-color: #4C4C4C;
	padding: 40px 50px;
	max-width: 1250px;
	margin: 0 auto;
	margin-top: -1px;
	border-radius: 0 0 10px 10px;
	position: relative;
	z-index: 2;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	font-size: 15px;
	line-height: 25px;
}

.menu-grid {
	display: block;
	column-count: 3;
	column-gap: 30px;
	column-rule: 1px solid rgba(255, 255, 255, 0.1);
}

/* Menu Category - NO break-inside:avoid so columns balance naturally like tizzano.fr */
.menu-category {
	display: block;
	width: 100%;
	position: relative;
	margin-bottom: 20px;
}

/* Separator Line REMOVED (Handled by column-rule) */
.menu-category::before {
	display: none;
}

/* Force column breaks to match tizzano.fr layout:
   Col 1: Fromagères + Légumières + Carnivores
   Col 2: Charcutières (14 items)
   Col 3: Charcutières 2 + Maritimes + Boissons + image */
#les-charcutieres-grand-format {
	break-before: column;
}
#les-charcutieres-grand-format-2 {
	break-before: column;
}

/* Category Title - matches tizzano.fr exactly */
.category-title {
	color: #ffffff;
	font-size: 1.2em;
	font-weight: 300;
	margin: 0 0 10px 0;
	text-transform: uppercase;
	letter-spacing: 0;
	padding: 0;
	border-bottom: none;
	line-height: 25px;
	break-after: avoid;
}

.text-blue {
	color: #47BBD6;
}

/* ==============================================
   MENU ITEM - matches tizzano.fr inline layout
   Name (cyan) + description (white) flow inline,
   price floated right on the first line.
   ============================================== */

.menu-item {
	margin-bottom: 15px;
	color: #47bbd6;
	line-height: 25px;
	list-style: none;
	break-inside: avoid;
}

.item-price {
	float: right;
	white-space: nowrap;
	margin-left: 8px;
	color: inherit;
}

.item-name {
	color: #47bbd6;
	text-transform: uppercase;
}

.item-desc {
	color: #ffffff;
	font-style: normal;
	font-size: 0.9em;
	display: inline;
	margin: 0;
}

.item-desc u,
.tizzano-allergen-underline {
	text-decoration: underline;
	color: #ffffff;
}

/* Price Variants */
.item-variants {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-top: 0.25rem;
}

.item-variant {
	display: inline-flex;
	align-items: baseline;
	gap: 0.3em;
	font-size: 0.85rem;
}

.variant-label {
	color: #aaaaaa;
}

.variant-price {
	font-weight: 700;
	color: #47BBD6;
}

/* Allergen Underlining - plain underline like tizzano.fr */
.tizzano-allergen-underline {
	text-decoration: underline;
	color: inherit;
}

/* ==============================================
   SOCIAL MEDIA BAR (Footer bar)
   ============================================== */

.social-media-bar {
	background-color: #47BBD6;
	color: #ffffff;
	font-size: 13px;
	padding: 15px 0;
	text-align: center;
	width: 100%;
	margin-top: 40px;
}

.container-footer {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 15px;
}

.container-footer p {
	margin: 0;
}

.footer-links-desktop {
	display: flex;
	gap: 20px;
}

.footer-links-desktop a {
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	transition: opacity 0.2s;
}

.footer-links-desktop a:hover {
	opacity: 0.8;
}

.footer-social a {
	color: #fff;
	font-size: 16px;
	margin-left: 10px;
	transition: opacity 0.2s;
}

.footer-social a:hover {
	opacity: 0.8;
}

/* ==============================================
   MAP SECTION
   ============================================== */

.map-section {
	width: 100%;
	margin: 0;
	padding: 0;
	line-height: 0;
}

.map-section iframe {
	width: 100%;
	height: 400px;
	border: 0;
}

/* ==============================================
   COOKIE CONSENT BANNER
   ============================================== */

.tizzano-cookie-consent {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: #2e3035;
	color: #aeb4be;
	padding: 1rem;
	z-index: 9999;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.tizzano-cookie-consent.is-visible {
	transform: translateY(0);
}

.tizzano-cookie-consent__inner {
	max-width: 1300px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.tizzano-cookie-consent__text {
	flex: 1;
	min-width: 200px;
}

.tizzano-cookie-consent__text p {
	margin: 0;
	font-size: 0.875rem;
}

.tizzano-cookie-consent__buttons {
	display: flex;
	gap: 0.5rem;
}

.tizzano-cookie-consent__btn {
	padding: 0.5rem 1rem;
	border: none;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.tizzano-cookie-consent__btn--accept {
	background-color: #47BBD6;
	color: #fff;
}

.tizzano-cookie-consent__btn--accept:hover {
	background-color: #3a9db5;
}

.tizzano-cookie-consent__btn--decline {
	background-color: transparent;
	color: #aeb4be;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.tizzano-cookie-consent__btn--decline:hover {
	background-color: rgba(255, 255, 255, 0.05);
}

/* ==============================================
   INNER PAGES (Legal, Privacy, etc.)
   ============================================== */

.tizzano-page-content {
	background-color: #4C4C4C;
	padding: 20px 50px;
	max-width: 1250px;
	margin: 0 auto 0;
	border-radius: 0 0 10px 10px;
	position: relative;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	color: #ffffff;
	font-size: 15px;
	line-height: 25px;
}

.tizzano-page-content .entry-title {
	display: none;
}

.tizzano-page-content .entry-content {
	color: #cccccc;
}

.tizzano-page-content .entry-content h2,
.tizzano-page-content .entry-content h3,
.tizzano-page-content .entry-content h4 {
	color: #ffffff;
	font-weight: 400;
	margin-top: 25px;
	margin-bottom: 10px;
}

.tizzano-page-content .entry-content p {
	margin-bottom: 15px;
}

.tizzano-page-content .entry-content a {
	color: #47BBD6;
	text-decoration: underline;
}

.tizzano-page-content .entry-content a:hover {
	color: #ffffff;
}

@media (max-width: 768px) {
	.tizzano-page-content {
		padding: 25px 20px;
		margin-top: 10px;
		border-radius: 6px;
	}
}

/* ==============================================
   404 PAGE
   ============================================== */

.tizzano-404 {
	text-align: center;
	padding: 4rem 1rem;
	max-width: 600px;
	margin: 0 auto;
}

.tizzano-404 h1 {
	font-size: 4rem;
	color: #47BBD6;
	margin-bottom: 1rem;
}

.tizzano-404 p {
	color: #aeb4be;
	margin-bottom: 2rem;
}

.tizzano-404 a {
	display: inline-block;
	background-color: #47BBD6;
	color: #fff;
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	font-weight: 600;
	transition: background-color 0.2s;
}

.tizzano-404 a:hover {
	background-color: #3a9db5;
}

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

@media (max-width: 900px) {
	.menu-grid {
		column-count: 2;
	}

	.fb-widget {
		display: none;
	}
}

@media (max-width: 768px) {
	.menu-grid {
		column-count: 1;
	}

	/* Disable forced column breaks on mobile */
	#les-charcutieres-grand-format,
	#les-charcutieres-grand-format-2 {
		break-before: auto;
	}

	.menu-content {
		padding: 25px 20px;
	}

	.mobile-bar {
		display: block;
	}

	.top-bar {
		display: none;
	}

	.header-content {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
		padding: 0;
	}

	.logo-container {
		text-align: center;
	}

	.desktop-logo,
	.custom-logo-link {
		display: none;
	}

	.mobile-logo {
		display: block;
		max-width: 180px;
		margin: 0 auto;
	}

	.logo,
	.logo-container img,
	.custom-logo {
		max-width: 280px;
	}

	.footer-links-desktop {
		display: none;
	}

	.container-footer {
		flex-direction: column;
		text-align: center;
		gap: 15px;
	}

	.tabs-list {
		flex-wrap: wrap;
	}

	.tabs-list li {
		width: 50%;
		flex: none;
	}

	.tabs-list li button {
		font-size: 10px;
		padding: 12px 5px;
		height: 100%;
	}

	.hero {
		padding: 25px 20px 20px 20px;
		margin-top: 10px;
	}

	.hero h1 {
		font-size: 20px;
	}
}

@media (max-width: 600px) {
	.contact-info {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}

	.contact-info .separator {
		display: none;
	}
}

/* ==============================================
   MENU DECORATION IMAGE
   ============================================== */
.menu-category-image {
	justify-content: flex-end;
	padding-bottom: 0;
	overflow: hidden;
}

.menu-category-image img {
	width: 100%;
	height: auto;
	display: block;
	margin-top: auto;
	object-position: bottom center;
}