:root {
	--bs-success-rgb: 19, 222, 185;
	--bs-success-bg-subtle:#e6fffa;
	--bs-danger-bg-subtle:#fee7e1;
	--bs-success-border-subtle:#a1f2e3;
	--bs-danger-border-subtle:#fdd0c4;
	--bs-border-width:1px;
	--bs-danger-text: #c86e56;
	--bs-success-text: #0fb294;
}

.text-danger {
	color: var(--bs-danger-text);
}

.alert {
    --bs-alert-bg: transparent;
    --bs-alert-padding-x: 1rem;
    --bs-alert-padding-y: 1rem;
    --bs-alert-margin-bottom: 1rem;
    --bs-alert-color: inherit;
    --bs-alert-border-color: transparent;
    --bs-alert-border: var(--bs-border-width) solid var(--bs-alert-border-color);
    --bs-alert-border-radius: 7px;
    --bs-alert-link-color: inherit;
    position: relative;
    padding: var(--bs-alert-padding-y) var(--bs-alert-padding-x);
    margin-bottom: var(--bs-alert-margin-bottom);
    color: var(--bs-alert-color);
    background-color: var(--bs-alert-bg);
    border: var(--bs-alert-border);
    border-radius: var(--bs-alert-border-radius);
}

.alert-success {
    --bs-alert-color: var(--bs-success-text);
    --bs-alert-bg: var(--bs-success-bg-subtle);
    --bs-alert-border-color: var(--bs-success-border-subtle);
    --bs-alert-link-color: var(--bs-success-text);
}
.alert-danger {
    --bs-alert-color: var(--bs-danger-text);
    --bs-alert-bg: var(--bs-danger-bg-subtle);
    --bs-alert-border-color: var(--bs-danger-border-subtle);
    --bs-alert-link-color: var(--bs-danger-text);
}



/* Menu de la semaine */
.content__menu-semaine {
	padding: 4rem 0;
}

.content__menu-semaine-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.content__menu-semaine-title {
	text-align: center;
	margin-bottom: 2rem;
	color: #333;
}

.content__menu-semaine-content {
	margin-top: 2rem;
}

/* Grille pour image + texte */
.content__menu-semaine-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: center;
}

/* Image seule - centrée */
.content__menu-semaine-image-only {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Texte seul - centré */
.content__menu-semaine-text-only {
	display: flex;
	justify-content: center;
	align-items: center;
}

.content__menu-semaine-text-content {
	max-width: 600px;
	line-height: 1.6;
	font-size: 1.1rem;
	color: #555;
}

.content__menu-semaine-img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
	.content__menu-semaine-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.content__menu-semaine-image {
		order: 1;
	}
	
	.content__menu-semaine-text {
		order: 2;
	}
	
	.content__menu-semaine-text-content {
		font-size: 1rem;
		text-align: center;
	}
	
	.content__menu-semaine {
		padding: 2rem 0;
	}
}


.mb-1 {
    margin-bottom: 0.25rem!important
}

.mb-2 {
    margin-bottom: 0.5rem!important
}

.mb-3 {
    margin-bottom: 1rem!important
}

.mb-4 {
    margin-bottom: 1.5rem!important
}

.mb-5 {
    margin-bottom: 3rem!important
}

.mb-auto {
    margin-bottom: auto!important
}





.plat-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem 2rem;
	width: 100%;
	margin: 0 auto;
	position: relative;
}
.plat-item {
	position: relative;
	border: 1.5px solid #bbb;
	border-radius: 8px;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
	min-height: 225px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.38s cubic-bezier(0.4,0.2,0.2,1);
}
.plat-item:hover {
	box-shadow: 0 4px 18px rgba(0, 0, 0, .09);
	transform: translateY(-2px) scale(1.012);
	z-index: 2;
}

.plat-item img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

.plat-item .content {
	position: relative;
	z-index: 2;
	color: white;
	padding: 15px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

.plat-item h5 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: bold;
	text-shadow: 0 1px 3px rgba(0,0,0,0.5);
	color: #fff;
}

.plat-item p {
	margin: 5px 0 0;
	font-size: 0.8rem;
	opacity: 0.9;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.plat-carrousel {
	grid-column: 2 / span 2;
    grid-row: 1 / span 2;
    height: 100%;
    width: 100%;
}

@media (max-width: 1100px) {
	.plat-container {
		display: flex;
		height: 500px;
		max-height: 500px;
	}
	.plat-item {
		display: none;
	}
	.plat-carrousel {
		grid-column: auto;
		grid-row: auto;
		height: 100%;
		display: block;
	}
}

/* Cartes de sous-sections sans images */
.dish-card--no-image {
	background: #fff;
	border: 1.5px solid #bbb;
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	transition: all 0.3s ease;
}

.dish-card--no-image:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
}

.dish-card--no-image .dish-card__body {
	padding: 0;
	text-align: center;
	width: 100%;
}

.dish-card--no-image .dish-card__title {
	color: #41444b;
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.dish-card--no-image .dish-card__desc {
	color: #646669;
	font-size: 0.95rem;
	line-height: 1.5;
}


/* =================================================================== */
/* FIX FONT-SIZE 64PX SUR MOBILE - TROP GROS                          */
/* =================================================================== */

/* Annuler le font-size: 64px !important sur mobile pour tous les hero__title */
@media (max-width: 768px) {
	#home .hero__title,
	#menu .hero__title,
	#menu-2 .hero__title {
		font-size: unset !important;
		/* La taille sera calculée automatiquement ou héritée */
	}
}


/* =================================================================== */
/* FIX IMAGE ABOUT - PAGE ACCUEIL MOBILE                              */
/* =================================================================== */

/* Supprimer la taille fixe de 375px qui déborde sur mobile */
@media (max-width: 768px) {
	#home .about__image {
		width: 100% !important;
		height: auto !important;
		min-height: 200px;
		max-width: 375px;
		margin: 0 auto 1.5rem;
		overflow: hidden;
	}
	
	#home .about__image img {
		width: 100%;
		min-height: 200px;
		height: auto;
		object-fit: cover;
		object-position: top;
		transform: none !important;
	}
	
	/* Centrer le conteneur about sur mobile */
	#home .about__container {
		flex-direction: column;
		align-items: center;
	}
}


/* =================================================================== */
/* FIX DÉBORDEMENT DE TEXTE SUR MOBILE - PAGE CATÉGORIE               */
/* =================================================================== */

/* Gestion globale des mots longs sur la page catégorie */
.content,
.content__container,
.content__header-text,
.content__dishes,
.dishes-grid,
.dish-card,
.dish-card__body,
.dish-card__title,
.dish-card__desc,
.dish-card__price {
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
}

/* Titres et descriptions */
.hero__title,
.hero__desc,
.dish-card__title {
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	max-width: 100%;
}

/* Règles spécifiques mobile */
@media (max-width: 768px) {
	/* Empêcher le débordement horizontal */
	.content,
	.content__container,
	.dishes-grid,
	.dish-card {
		max-width: 100vw;
		overflow-x: hidden;
	}
	
	/* Padding pour éviter que le texte touche les bords */
	.content__container {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	
	.dish-card__body {
		padding: 0.75rem;
	}
	
	/* Titre de catégorie */
	.hero__title {
		font-size: 2em !important;
		word-wrap: break-word;
		overflow-wrap: break-word;
		hyphens: auto;
		-webkit-hyphens: auto;
	}
	
	/* Noms de plats */
	.dish-card__title {
		font-size: 1.1rem;
		line-height: 1.3;
		word-wrap: break-word;
		overflow-wrap: break-word;
		hyphens: auto;
		-webkit-hyphens: auto;
	}
	
	/* Descriptions de plats */
	.dish-card__desc {
		font-size: 0.9rem;
		line-height: 1.4;
		word-wrap: break-word;
		overflow-wrap: break-word;
		hyphens: auto;
		-webkit-hyphens: auto;
	}
	
	/* Prix */
	.dish-card__price {
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
}

/* Protection supplémentaire pour très petits écrans */
@media (max-width: 360px) {
	.hero__title {
		font-size: 1.75em !important;
	}
	
	.dish-card__title {
		font-size: 1rem;
	}
	
	.dish-card__desc {
		font-size: 0.85rem;
	}
}


/* =================================================================== */
/* FIX DÉBORDEMENT DE TEXTE - PAGE PLAT (DÉTAILS)                     */
/* =================================================================== */

/* Gestion des mots longs sur la page détail de plat */
.dish-content,
.dish-content__container,
.dish-content__info,
.dish-content__title,
.dish-content__desc,
.dish-content__price,
.dish-content__others {
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
}

/* Prix du plat : noir et gras */
#dish .dish-content__price {
	color: #000000 !important;
	font-weight: bold !important;
	font-style: normal !important;
}

/* Règles spécifiques mobile pour page plat */
@media (max-width: 768px) {
	.dish-content,
	.dish-content__container {
		max-width: 100vw;
		overflow-x: hidden;
	}
	
	.dish-content__info {
		padding: 1rem;
	}
	
	.dish-content__title {
		word-wrap: break-word;
		overflow-wrap: break-word;
		hyphens: auto;
		-webkit-hyphens: auto;
		font-size: 1.8em !important;
	}
	
	.dish-content__desc {
		word-wrap: break-word;
		overflow-wrap: break-word;
		hyphens: auto;
		-webkit-hyphens: auto;
		font-size: 16px !important;
	}
}


/* =================================================================== */
/* FIX IMAGE PORTRAIT LONGUE - PAGE PLAT MOBILE                       */
/* =================================================================== */

/* Corriger l'affichage des images portrait longues sur mobile */
@media (max-width: 800px) {
	/* Retirer la hauteur fixe de 200px qui coupe les images portraits */
	#dish .dish-content__image {
		height: auto !important;
		width: 90%;
		max-width: 500px;
		margin: 0 auto;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	
	/* Adapter l'objet pour ne pas couper l'image */
	#dish .dish-content__image img {
		object-fit: contain !important;
		height: auto !important;
		max-height: 600px;
		width: 100%;
		transform: none !important;
		margin: 0 auto;
	}
	
	/* S'assurer que le conteneur principal s'adapte */
	#dish .dish-content__main {
		align-items: center !important;
		gap: 1.5rem !important;
	}
}


/* =================================================================== */
/* PROTECTION GLOBALE CONTRE LE DÉBORDEMENT                           */
/* =================================================================== */

/* Appliqué à toutes les pages du site pour prévenir les débordements */
@media (max-width: 768px) {
	/* Empêcher tout scroll horizontal sur mobile */
	body {
		overflow-x: hidden;
		max-width: 100vw;
	}
	
	/* Protection générale pour tous les conteneurs */
	.container,
	.content__container,
	.dish-content__container {
		max-width: 100vw;
		overflow-x: hidden;
	}
	
	/* Gestion des longues URLs, emails, etc. */
	a, p, span, div, h1, h2, h3, h4, h5, h6 {
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
}


