/* Jetons de peau : tout ce qui est visuel passe par ces variables, le moteur ne code aucune couleur en dur ailleurs. */
.cc-menu {
	--cc-bg: #faf6ec;
	--cc-ink: #1f3a2b;
	--cc-muted: #5d6b61;
	--cc-accent: #2f7d4f;
	--cc-line: rgba(31, 58, 43, 0.14);
	--cc-radius: 18px;
	--cc-sticky-top: 0px;
	--cc-move: 380ms;
	box-sizing: border-box;
	max-width: 960px;
	margin: 0 auto;
	padding: 0 16px 48px;
	background: var(--cc-bg);
	color: var(--cc-ink);
	font-family: inherit;
	line-height: 1.4;
}

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

/* La couche garde les jetons de .cc-menu sans ajouter fond ni marge à la page ; double classe pour passer devant les règles .cc-menu des media queries. */
.cc-menu.cc-menu--layer {
	max-width: none;
	margin: 0;
	padding: 0;
	background: none;
}

.cc-menu__homemade {
	margin: 0;
	padding: 14px 0 4px;
	font-size: 0.95rem;
	color: var(--cc-muted);
	text-align: center;
}

/* Navigation des catégories */
.cc-nav {
	position: sticky;
	top: var(--cc-sticky-top);
	z-index: 5;
	display: flex;
	gap: 8px;
	margin: 0 -16px;
	padding: 10px 16px;
	overflow-x: auto;
	background: var(--cc-bg);
	border-bottom: 1px solid var(--cc-line);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.cc-nav::-webkit-scrollbar {
	display: none;
}

.cc-nav__link {
	flex: 0 0 auto;
	padding: 8px 14px;
	border: 1px solid var(--cc-line);
	border-radius: 999px;
	color: inherit;
	font-size: 0.9rem;
	text-decoration: none;
	white-space: nowrap;
}

.cc-nav__link.is-current {
	background: var(--cc-ink);
	border-color: var(--cc-ink);
	color: var(--cc-bg);
}

html {
	scroll-padding-top: 64px;
}

/* Catégories et tuiles */
.cc-cat {
	padding-top: 28px;
}

.cc-cat__title {
	margin: 0 0 12px;
	font-size: 1.7rem;
	line-height: 1.1;
	color: var(--cc-ink);
}

.cc-items {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-item {
	margin: 0;
	padding: 0;
}

.cc-item__open {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-height: 64px;
	padding: 14px 16px;
	border: 1px solid var(--cc-line);
	border-left: 6px solid var(--cc-color, var(--cc-accent));
	border-radius: var(--cc-radius);
	background: #fff;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.cc-item__open:active {
	transform: scale(0.985);
}

.cc-item__main {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cc-item__name {
	font-size: 1.1rem;
	font-weight: 700;
}

.cc-item__desc {
	font-size: 0.9rem;
	color: var(--cc-muted);
}

.cc-item__price {
	flex: 0 0 auto;
	font-weight: 700;
	white-space: nowrap;
}

.cc-badge {
	align-self: flex-start;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--cc-color, var(--cc-accent));
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cc-item__soldout {
	align-self: flex-start;
	font-size: 0.8rem;
	font-weight: 700;
	color: #9a3412;
}

.cc-item.is-sold-out .cc-item__open {
	opacity: 0.6;
}

/* Fiche produit : aplat de couleur qui s'ouvre depuis le point touché */
/* Au-dessus de l'en-tête du site (position fixe, z-index élevé) qui recouvrait le titre et la croix. */
.cc-sheet {
	position: fixed;
	z-index: 2147483647;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	background: var(--cc-color, var(--cc-accent));
	color: var(--cc-ink);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	-webkit-clip-path: circle(0px at var(--cc-x, 50%) var(--cc-y, 50%));
	clip-path: circle(0px at var(--cc-x, 50%) var(--cc-y, 50%));
	transition: -webkit-clip-path var(--cc-move) cubic-bezier(0.2, 0.7, 0.2, 1), clip-path var(--cc-move) cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cc-sheet[hidden] {
	display: none;
}

.cc-sheet.is-open {
	-webkit-clip-path: circle(150vmax at var(--cc-x, 50%) var(--cc-y, 50%));
	clip-path: circle(150vmax at var(--cc-x, 50%) var(--cc-y, 50%));
}

.cc-sheet__panel {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	max-width: 640px;
	width: 100%;
	margin: 0 auto;
}

.cc-sheet .cc-sheet__close {
	position: fixed;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cc-bg);
	box-shadow: none;
	color: var(--cc-ink);
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 160ms ease, color 160ms ease;
}

/* Le thème et Elementor stylent tous les button (padding, fond, survol) : on fige ici l'état courant pour qu'aucun ne repeigne la croix. */
.cc-sheet .cc-sheet__close:focus,
.cc-sheet .cc-sheet__close:active {
	background: var(--cc-bg);
	color: var(--cc-ink);
}

.cc-sheet .cc-sheet__close:focus-visible {
	outline: 3px solid var(--cc-ink);
	outline-offset: 2px;
}

@media (hover: hover) {
	.cc-sheet .cc-sheet__close:hover {
		background: var(--cc-ink);
		color: var(--cc-bg);
	}
}

/* La croix est dessinée plutôt qu'écrite : le glyphe × n'est jamais centré de la même façon selon la police. */
.cc-sheet__close span {
	position: relative;
	display: block;
	width: 18px;
	height: 18px;
	font-size: 0;
}

.cc-sheet__close span::before,
.cc-sheet__close span::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	margin-top: -1px;
	border-radius: 1px;
	background: currentColor;
	transform: rotate(45deg);
}

.cc-sheet__close span::after {
	transform: rotate(-45deg);
}

.cc-sheet__hero {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	padding: 64px 16px 8px;
}

.cc-sheet__hero--text {
	justify-content: center;
	min-height: 38vh;
	padding-bottom: 32px;
}

/* Le produit chevauche le bas du titre : le titre passe derrière. */
.cc-sheet__visual {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	margin-top: calc(-1 * clamp(20px, 8vw, 72px));
	padding-bottom: 18px;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity var(--cc-move) ease 120ms, transform var(--cc-move) ease 120ms;
}

.cc-sheet__visual::before {
	content: '';
	position: absolute;
	right: 16%;
	bottom: 10px;
	left: 16%;
	height: 24px;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.32), transparent 70%);
}

.cc-sheet__img {
	position: relative;
	display: block;
	width: auto;
	max-width: 86%;
	max-height: 46vh;
	max-height: 46svh;
	object-fit: contain;
}

.cc-sheet__body {
	flex: 1 0 auto;
	padding: 28px 22px 40px;
	background: var(--cc-bg);
	border-radius: 28px 28px 0 0;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity var(--cc-move) ease 120ms, transform var(--cc-move) ease 120ms;
}

.cc-sheet.is-open .cc-sheet__title,
.cc-sheet.is-open .cc-sheet__visual,
.cc-sheet.is-open .cc-sheet__body {
	opacity: 1;
	transform: none;
}

.cc-sheet__title {
	position: relative;
	z-index: 0;
	margin: 0;
	max-width: 100%;
	color: var(--cc-bg);
	font-size: clamp(2.6rem, 14vw, 6rem);
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: -0.03em;
	text-align: center;
	text-transform: uppercase;
	overflow-wrap: anywhere;
	hyphens: auto;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity var(--cc-move) ease 60ms, transform var(--cc-move) ease 60ms;
}

.cc-sheet__desc,
.cc-sheet__note {
	margin: 0 0 12px;
	color: var(--cc-muted);
}

.cc-sheet__note {
	font-size: 0.9rem;
	font-style: italic;
}

.cc-sheet__soldout {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 12px;
	background: #fff1e6;
	color: #9a3412;
	font-weight: 700;
}

/* Options */
.cc-group {
	margin: 18px 0 0;
	padding: 0;
	border: 0;
}

.cc-group__title {
	padding: 0;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cc-muted);
}

.cc-group__desc {
	margin: 4px 0 0;
	font-size: 0.9rem;
	color: var(--cc-muted);
}

.cc-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.cc-choice {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 16px;
	border: 2px solid var(--cc-line);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
}

.cc-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cc-choice:has(input:checked) {
	border-color: var(--cc-color, var(--cc-accent));
	background: var(--cc-color, var(--cc-accent));
	color: #fff;
}

.cc-choice.is-checked {
	border-color: var(--cc-color, var(--cc-accent));
	background: var(--cc-color, var(--cc-accent));
	color: #fff;
}

.cc-choice:focus-within {
	outline: 3px solid var(--cc-ink);
	outline-offset: 2px;
}

.cc-choice__extra {
	font-size: 0.85rem;
	opacity: 0.85;
}

.cc-sheet__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 24px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--cc-line);
}

.cc-sheet__total-label {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cc-muted);
}

.cc-sheet__total-value {
	font-size: 1.8rem;
	font-weight: 800;
}

/* Allergènes */
.cc-allergens {
	margin-top: 22px;
	padding: 14px 16px;
	border: 1px solid var(--cc-line);
	border-radius: 14px;
	background: #fff;
	font-size: 0.92rem;
}

.cc-allergens__title {
	margin: 0 0 6px;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cc-muted);
}

.cc-allergens p {
	margin: 0 0 6px;
}

.cc-allergens__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.cc-allergens__list li {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--cc-bg);
	border: 1px solid var(--cc-line);
}

.cc-allergens__traces {
	margin: 8px 0 0;
	color: var(--cc-muted);
	font-size: 0.85rem;
}

/* Verre et bol (traits fins) */
.cc-glass,
.cc-bowl {
	display: block;
	width: auto;
	height: 210px;
	overflow: visible;
	fill: none;
	stroke: var(--cc-ink);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cc-bowl {
	height: 150px;
}

.cc-glass,
.cc-bowl {
	transform: scale(var(--cc-scale, 1));
	transform-origin: 50% 100%;
	transition: transform var(--cc-move) cubic-bezier(0.3, 1.4, 0.5, 1);
}

.cc-liquid {
	fill: var(--cc-bg);
	stroke: none;
	opacity: 0.92;
}

.cc-shine {
	stroke: #fff;
	stroke-opacity: 0.55;
	stroke-width: 3;
}

.cc-fx-ice rect {
	fill: rgba(255, 255, 255, 0.55);
	stroke-width: 1.8;
}

.cc-fx-drops circle {
	fill: rgba(255, 255, 255, 0.8);
	stroke-width: 1.2;
}

.cc-fx-steam path {
	stroke-width: 2.4;
	stroke-opacity: 0.8;
}

.cc-glass[data-temp='hot'] .cc-fx-ice,
.cc-glass[data-temp='hot'] .cc-fx-drops,
.cc-glass[data-temp='cold'] .cc-fx-steam {
	opacity: 0;
}

.cc-fx-ice,
.cc-fx-drops,
.cc-fx-steam {
	transition: opacity var(--cc-move) ease;
}

.cc-fx-steam path {
	animation: cc-steam 2.6s ease-in-out infinite;
}

.cc-fx-steam path:nth-child(2) {
	animation-delay: 0.6s;
}

.cc-fx-steam path:nth-child(3) {
	animation-delay: 1.2s;
}

.cc-glass[data-temp='cold'] .cc-fx-ice rect {
	animation: cc-bob 3.2s ease-in-out infinite;
}

.cc-layer {
	fill: var(--cc-bg);
	stroke: none;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity var(--cc-move) ease, transform var(--cc-move) cubic-bezier(0.3, 1.4, 0.5, 1);
}

.cc-layer.is-on {
	opacity: 1;
	transform: none;
}

.cc-layer[data-layer='1'] {
	fill: #fff;
	fill-opacity: 0.75;
}

.cc-layer[data-layer='2'] {
	fill: var(--cc-ink);
	fill-opacity: 0.55;
}

.cc-layer[data-layer='3'] {
	fill: #fff;
	fill-opacity: 0.9;
}

@keyframes cc-steam {
	0% {
		opacity: 0;
		transform: translateY(8px);
	}

	40% {
		opacity: 0.9;
	}

	100% {
		opacity: 0;
		transform: translateY(-10px);
	}
}

@keyframes cc-bob {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-3px);
	}
}

html.cc-lock,
html.cc-lock body {
	overflow: hidden;
}

/* Écrans plus larges */
@media (min-width: 640px) {
	.cc-items {
		grid-template-columns: repeat(2, 1fr);
	}

	.cc-menu {
		padding: 0 24px 64px;
	}

	.cc-nav {
		margin: 0 -24px;
		padding: 12px 24px;
	}
}

@media (min-width: 900px) {
	.cc-items {
		grid-template-columns: repeat(3, 1fr);
	}

	.cc-sheet__panel {
		flex-direction: row;
		align-items: center;
		gap: 40px;
		max-width: 1120px;
		margin: 4vh auto;
		padding: 0 32px;
	}

	.cc-sheet__hero {
		flex: 1 1 55%;
		padding-top: 24px;
	}

	.cc-sheet__title {
		font-size: clamp(3.5rem, 6vw, 6.5rem);
	}

	.cc-sheet__visual {
		margin-top: -4vw;
	}

	.cc-sheet__img {
		max-height: 60vh;
	}

	.cc-sheet__body {
		flex: 0 0 420px;
		border-radius: 28px;
	}
}

/* Sans mouvement : tout est affiché tel quel */
@media (prefers-reduced-motion: reduce) {
	.cc-menu {
		--cc-move: 0.01ms;
	}

	.cc-fx-steam path,
	.cc-glass[data-temp='cold'] .cc-fx-ice rect {
		animation: none;
	}

	.cc-fx-steam path {
		opacity: 0.8;
	}

	.cc-sheet__title,
	.cc-sheet__visual,
	.cc-sheet__body {
		opacity: 1;
		transform: none;
	}

	.cc-item__open {
		transition: none;
	}

	html {
		scroll-behavior: auto;
	}
}