/* L’Orangerie — module de carte-cadeau. Jetons du site (variables Bricks), avec replis. */

.lo-cc {
	--cc-terre: var(--lo-terre-de-serre, #2c0a08);
	--cc-sable: var(--lo-allee-de-sable, #ebc495);
	--cc-lumiere: var(--lo-lumiere, #ffe2b0);
	--cc-miel: var(--lo-miel-d-oranger, #bf6d23);
	--cc-ambre: var(--lo-ambre-de-versailles, #a24e1a);
	--cc-papier: #fff7ea;
	--cc-trait: rgba(235, 196, 149, 0.34);
	--cc-voile: rgba(255, 226, 176, 0.06);
	--cc-erreur: #ffb59a;
	position: relative;
	color: var(--cc-sable);
	font-family: var(--lo-police-texte, "DM Sans", system-ui, sans-serif);
	font-size: 1.6rem;
	font-weight: 300;
	line-height: 1.45;
	text-align: left;
}
.lo-cc *,
.lo-cc *::before,
.lo-cc *::after { box-sizing: border-box; }
.lo-cc [hidden] { display: none !important; }

.lo-cc--page {
	padding: 3.2rem;
	border: 1px solid var(--cc-trait);
	border-radius: 2.4rem;
	background: rgba(44, 10, 8, 0.82);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.lo-cc-form { display: flex; flex-direction: column; gap: 2.4rem; margin: 0; }
.lo-cc-entete:empty { display: none; }
.lo-cc-titre {
	margin: 0;
	font-family: var(--lo-police-titre, Georgia, serif);
	font-size: 3.4rem;
	font-weight: 400;
	line-height: 1.05;
	color: var(--cc-sable);
}
.lo-cc-bonus { margin: 0.8rem 0 0; color: var(--cc-lumiere); font-size: 1.7rem; }

/* bandeau de promotion */
.lo-cc-promo {
	position: relative; overflow: hidden;
	padding: 2.2rem 2.4rem 2rem;
	border-radius: 2rem;
	color: var(--cc-terre);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(255, 226, 176, 0.55) 0%, rgba(255, 226, 176, 0) 55%),
		linear-gradient(135deg, var(--cc-sable) 0%, var(--cc-miel) 100%);
}
.lo-cc-promo::after { /* reflet discret */
	content: ""; position: absolute; top: -40%; right: -12%; width: 46%; aspect-ratio: 1;
	border: 1px solid rgba(44, 10, 8, 0.14); border-radius: 50%; pointer-events: none;
}
.lo-cc-promo-badge {
	display: inline-flex; align-items: center; gap: 0.8rem; margin: 0 0 1.4rem; padding: 0.6rem 1.4rem 0.6rem 1.1rem;
	border-radius: 99rem; background: var(--cc-terre); color: var(--cc-lumiere);
	font-family: var(--lo-police-texte, system-ui, sans-serif); font-size: 1.4rem; font-weight: 400; line-height: 1.2; letter-spacing: 0.01em;
}
.lo-cc-promo-badge::before {
	content: ""; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--cc-miel);
	box-shadow: 0 0 0 0.3rem rgba(191, 109, 35, 0.35);
}
.lo-cc-promo-titre {
	position: relative; margin: 0; max-width: 18em;
	font-family: var(--lo-police-titre, Georgia, serif); font-size: 2.9rem; font-weight: 400; line-height: 1.08;
}
.lo-cc-promo-texte { position: relative; margin: 0.8rem 0 0; font-size: 1.5rem; opacity: 0.85; }
.lo-cc-promo-fin {
	position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1.6rem;
	margin: 1.8rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(44, 10, 8, 0.2);
	font-size: 1.4rem;
}
.lo-cc-promo-compte { font-weight: 500; font-variant-numeric: tabular-nums; }
.lo-cc-promo-date { opacity: 0.8; }
.lo-cc-tiroir .lo-cc-promo { margin-right: 5.2rem; }
.lo-cc-tiroir .lo-cc-resume { margin-right: 5.2rem; }
.lo-cc-tiroir .lo-cc-cadeau { margin: 2.8rem 5.2rem 0 0; }
.lo-cc-promo + .lo-cc-carte { margin-top: -0.8rem; }

/* groupes */
.lo-cc-groupe { margin: 0; padding: 0; border: 0; min-width: 0; }
.lo-cc-legende { padding: 0; margin: 0 0 1rem; font-size: 1.4rem; opacity: 0.78; }
.lo-cc-puces { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.lo-cc-puce, .lo-cc-segment { position: relative; display: flex; margin: 0; padding: 0; line-height: 1.2; cursor: pointer; }
.lo-cc-segment > span { flex: 1; }
.lo-cc-puce input, .lo-cc-segment input, .lo-cc-case input {
	position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.lo-cc-puce span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 7.6rem; height: 4.6rem; padding: 0 1.8rem;
	border: 1px solid var(--cc-trait); border-radius: 99rem;
	font-size: 1.6rem; white-space: nowrap;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.lo-cc-puce:hover span { border-color: var(--cc-sable); }
.lo-cc-puce input:checked + span { background: var(--cc-sable); border-color: var(--cc-sable); color: var(--cc-terre); font-weight: 400; }

.lo-cc-segments {
	display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; padding: 0.4rem;
	border: 1px solid var(--cc-trait); border-radius: 99rem;
}
.lo-cc-segment span {
	display: flex; align-items: center; justify-content: center; height: 4rem;
	border-radius: 99rem; transition: background-color 0.3s, color 0.3s;
}
.lo-cc-segment input:checked + span { background: var(--cc-sable); color: var(--cc-terre); font-weight: 400; }

/* focus visible sur les contrôles masqués */
.lo-cc-puce input:focus-visible + span,
.lo-cc-segment input:focus-visible + span,
.lo-cc-case input:focus-visible + span::before,
.lo-cc button:focus-visible,
.lo-cc input:focus-visible,
.lo-cc textarea:focus-visible {
	outline: 2px solid var(--cc-lumiere);
	outline-offset: 2px;
}

/* champs */
.lo-cc-dest { display: flex; flex-direction: column; gap: 1.6rem; }
.lo-cc-champ { display: flex; flex-direction: column; gap: 0.6rem; }
.lo-cc-champ label { font-size: 1.4rem; opacity: 0.78; }
.lo-cc input[type="text"],
.lo-cc input[type="email"],
.lo-cc input[type="number"],
.lo-cc input[type="date"],
.lo-cc textarea {
	width: 100%; min-height: 4.8rem; padding: 1.1rem 1.4rem;
	border: 1px solid var(--cc-trait); border-radius: 1.2rem;
	background: var(--cc-voile); color: var(--cc-sable);
	font: inherit; font-size: 1.6rem; /* 16 px : pas de zoom sur iOS */
	color-scheme: dark;
	transition: border-color 0.3s;
}
.lo-cc textarea { min-height: 9rem; resize: vertical; }
.lo-cc input:hover, .lo-cc textarea:hover { border-color: rgba(235, 196, 149, 0.6); }
.lo-cc input::placeholder { color: rgba(235, 196, 149, 0.5); }
.lo-cc-argent { position: relative; }
.lo-cc-argent span { position: absolute; top: 50%; right: 1.4rem; transform: translateY(-50%); opacity: 0.7; pointer-events: none; }
.lo-cc-argent--avant span { right: auto; left: 1.4rem; }
.lo-cc .lo-cc-argent--avant input { padding-left: 2.8rem; }
.lo-cc-argent input { -moz-appearance: textfield; }
.lo-cc-argent input::-webkit-outer-spin-button,
.lo-cc-argent input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lo-cc-libre { margin-top: 1.2rem; max-width: 22rem; }
.lo-cc-date { margin-top: 1.2rem; max-width: 22rem; }
.lo-cc-aide { margin: 0; font-size: 1.3rem; opacity: 0.7; }
.lo-cc-invalide input, .lo-cc-invalide textarea { border-color: var(--cc-erreur); }
.lo-cc-msg { margin: 0; color: var(--cc-erreur); font-size: 1.4rem; }

.lo-cc-lien {
	align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer;
	color: inherit; font: inherit; font-size: 1.5rem;
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em;
}
.lo-cc-lien:hover { color: var(--cc-lumiere); }

.lo-cc-case { position: relative; display: flex; gap: 1rem; align-items: flex-start; cursor: pointer; font-size: 1.5rem; }
.lo-cc-case span::before {
	content: ""; flex: none; display: inline-block; width: 2rem; height: 2rem; margin: 0.1rem 1rem 0 0;
	vertical-align: -0.4rem; border: 1px solid var(--cc-trait); border-radius: 0.5rem;
	background: var(--cc-voile) center / 1.3rem no-repeat;
}
.lo-cc-case input:checked + span::before {
	background-color: var(--cc-sable); border-color: var(--cc-sable);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%232c0a08' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.lo-cc-poste-aide { margin-top: -1.6rem; padding-left: 3rem; }
/* le mot à joindre à la carte postée : sous la case, aligné sur son texte */
.lo-cc-mot { margin-top: -0.8rem; padding-left: 3rem; }
.lo-cc .lo-cc-mot textarea { min-height: 8.4rem; }

/* carte d’une édition */
.lo-cc-carte {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.6rem;
	padding: 1.6rem; border: 1px solid var(--cc-trait); border-radius: 1.8rem; background: var(--cc-voile);
}
.lo-cc-carte-face {
	position: relative; display: flex; flex-direction: column; justify-content: space-between;
	width: 10.4rem; aspect-ratio: 1.586; padding: 0.9rem 1rem;
	border-radius: 0.9rem; color: var(--cc-terre);
	background: linear-gradient(135deg, var(--cc-lumiere) 0%, var(--cc-sable) 45%, var(--cc-miel) 100%);
	box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.35);
}
.lo-cc-carte-marque { font-family: var(--lo-police-titre, Georgia, serif); font-size: 1.1rem; line-height: 1; }
.lo-cc-carte-valeur { align-self: flex-end; font-family: var(--lo-police-titre, Georgia, serif); font-size: 2rem; line-height: 1; }
.lo-cc-carte-nom { margin: 0; font-size: 1.7rem; font-weight: 400; }
.lo-cc-carte-bonus { margin: 0.2rem 0 0; color: var(--cc-lumiere); font-size: 1.4rem; }
.lo-cc-qte { display: flex; align-items: center; gap: 0.4rem; }

/* promotion + cartes régulières */
.lo-cc-carte--choix { grid-template-columns: 1fr auto; transition: border-color 0.3s, background-color 0.3s; }
.lo-cc-carte--choix.is-choisie { border-color: var(--cc-sable); background: rgba(235, 196, 149, 0.1); }
.lo-cc-carte--choix:not(.is-choisie):hover { border-color: var(--cc-sable); }
.lo-cc-carte-choix { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.6rem; margin: 0; cursor: pointer; }
.lo-cc-carte-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.lo-cc-carte-choix input:focus-visible ~ .lo-cc-carte-face { outline: 2px solid var(--cc-lumiere); outline-offset: 3px; }
.lo-cc-carte-texte { display: flex; flex-direction: column; }
.lo-cc-carte--choix:not(.is-choisie) .lo-cc-carte-face { opacity: 0.72; }
.lo-cc-ou { margin: 1.8rem 0 1rem; }
.lo-cc-puces--4 .lo-cc-puce span { min-width: 0; }
.lo-cc-qte-btn {
	display: flex; align-items: center; justify-content: center;
	width: 4.4rem; height: 4.4rem; padding: 0; border: 1px solid var(--cc-trait); border-radius: 50%;
	background: none; color: inherit; font-family: var(--lo-police-texte, system-ui, sans-serif); font-size: 2rem; letter-spacing: 0; text-indent: 0; line-height: 1; cursor: pointer;
}
.lo-cc-qte-btn:hover:not(:disabled) { border-color: var(--cc-sable); }
.lo-cc-qte-btn:disabled { opacity: 0.35; cursor: default; }
.lo-cc-qte-n { min-width: 2.4rem; text-align: center; font-size: 1.8rem; font-variant-numeric: tabular-nums; }

/* payer */
.lo-cc-payer {
	display: flex; align-items: center; justify-content: space-between; gap: 1.6rem;
	width: 100%; height: 5.8rem; padding: 0 2.6rem; margin-top: 0.4rem;
	border: 0; border-radius: 99rem; cursor: pointer;
	background: var(--cc-miel); color: var(--cc-terre); /* brief : Miel d’Oranger, texte Terre de Serres */
	font: inherit; font-size: 1.7rem; font-weight: 400;
	transition: background-color 0.3s, opacity 0.3s;
}
.lo-cc-payer:hover { background: var(--cc-lumiere); }
/* Inactif tant qu’aucun montant n’est choisi. */
.lo-cc-payer:disabled:not(.lo-cc-occupe) { opacity: 0.4; cursor: not-allowed; }
.lo-cc-payer:disabled:not(.lo-cc-occupe):hover { background: var(--cc-miel); }
.lo-cc-infolettre { font-size: 1.4rem; opacity: 0.88; }
/* Toujours à portée de pouce : le bouton reste collé au bas du tiroir ou de l’écran. */
.lo-cc--popup .lo-cc-payer { position: sticky; bottom: 1.6rem; z-index: 2; box-shadow: 0 1.2rem 3.2rem rgba(20, 4, 3, 0.55); }
@media (max-width: 767px) {
	.lo-cc--page .lo-cc-payer { position: sticky; bottom: 1.6rem; z-index: 2; box-shadow: 0 1.2rem 3.2rem rgba(20, 4, 3, 0.55); }
}
.lo-cc--page .lo-cc-promo-texte { display: none; }
.lo-cc-total { font-variant-numeric: tabular-nums; }
.lo-cc-occupe { cursor: progress; }
.lo-cc-occupe .lo-cc-payer-texte::after {
	content: ""; display: inline-block; width: 1.4rem; height: 1.4rem; margin-left: 1rem; vertical-align: -0.2rem;
	border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
	animation: lo-cc-tour 0.8s linear infinite;
}
@keyframes lo-cc-tour { to { transform: rotate(360deg); } }
.lo-cc-rassurer { margin: -1.2rem 0 0; font-size: 1.3rem; opacity: 0.72; text-align: center; }
.lo-cc-erreur { margin: 0; padding: 1.2rem 1.4rem; border-radius: 1.2rem; background: rgba(255, 181, 154, 0.12); color: var(--cc-erreur); font-size: 1.5rem; }
.lo-cc-conditions { margin: 0; font-size: 1.3rem; opacity: 0.68; }
.lo-cc-test { margin: 0; padding: 0.8rem 1.2rem; border: 1px dashed var(--cc-trait); border-radius: 1rem; font-size: 1.3rem; opacity: 0.8; }
.lo-cc-miel { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lo-cc-visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* étape du paiement */
.lo-cc-paiement { display: flex; flex-direction: column; gap: 1.6rem; scroll-margin-top: 2rem; }
.lo-cc-resume {
	display: flex; align-items: baseline; justify-content: space-between; gap: 1.6rem;
	padding-bottom: 1.6rem; border-bottom: 1px solid var(--cc-trait); scroll-margin-top: 2rem;
}
.lo-cc-resume-texte { margin: 0; font-size: 1.6rem; }
.lo-cc-resume .lo-cc-lien { flex: none; }
.lo-cc-chargement { margin: 0; font-size: 1.4rem; opacity: 0.75; }
.lo-cc-stripe { border-radius: 1.6rem; overflow: hidden; background: var(--cc-papier); }
.lo-cc-stripe:empty { display: none; }

/* merci */
.lo-cc-merci { display: flex; flex-direction: column; gap: 3.2rem; outline: none; scroll-margin-top: 14rem; }
.lo-cc-merci p { margin: 0; }

/* la carte offerte */
.lo-cc-cadeau { perspective: 120rem; }
.lo-cc-cadeau-scene { position: relative; width: min(34rem, 100%); }
.lo-cc-cadeau-carte {
	position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between;
	aspect-ratio: 1.586; padding: 2rem 2.2rem; overflow: hidden;
	border-radius: 1.6rem; color: var(--cc-terre);
	background:
		radial-gradient(120% 90% at 12% 0%, rgba(255, 247, 234, 0.8), transparent 55%),
		linear-gradient(135deg, var(--cc-lumiere) 0%, var(--cc-sable) 42%, var(--cc-miel) 100%);
	box-shadow: 0 2.4rem 6rem rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 226, 176, 0.4);
	transform-origin: 50% 100%;
}
.lo-cc-cadeau-carte::after {
	content: ""; position: absolute; inset: 0.9rem; border: 1px solid rgba(44, 10, 8, 0.16); border-radius: 1rem; pointer-events: none;
}
.lo-cc-cadeau-carte--dos { position: absolute; inset: 0; z-index: 0; transform: translate(1.6rem, -1.4rem) rotate(4deg); filter: brightness(0.72); }
.lo-cc-cadeau-haut, .lo-cc-cadeau-bas { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem; }
.lo-cc-cadeau-marque { font-family: var(--lo-police-titre, Georgia, serif); font-size: 2rem; line-height: 1; }
.lo-cc-cadeau-type { font-size: 1.2rem; opacity: 0.72; }
.lo-cc-cadeau-pour { min-width: 0; overflow: hidden; font-size: 1.5rem; white-space: nowrap; text-overflow: ellipsis; }
.lo-cc-cadeau-valeur { flex: none; font-family: var(--lo-police-titre, Georgia, serif); font-size: 4.6rem; line-height: 0.85; }
.lo-cc-cadeau-eclat {
	position: absolute; inset: -50%; z-index: 2; pointer-events: none;
	background: linear-gradient(105deg, transparent 42%, rgba(255, 252, 244, 0.6) 50%, transparent 58%);
	transform: translateX(60%);
}
.lo-cc-cadeau-nb {
	position: absolute; top: -1.6rem; right: -1.2rem; z-index: 3; padding: 0.4rem 1.2rem;
	border: 1px solid var(--cc-trait); border-radius: 99rem; background: var(--cc-terre); color: var(--cc-sable); font-size: 1.4rem;
}

/* ce qui suit */
.lo-cc-merci-titre { margin: 0; font-family: var(--lo-police-titre, Georgia, serif); font-size: 4rem; font-weight: 400; line-height: 1.05; color: var(--cc-lumiere); outline: none; }
.lo-cc-merci .lo-cc-merci-sous { margin-top: 1rem; font-size: 1.8rem; }
.lo-cc-merci .lo-cc-merci-suivi { margin-top: 1.8rem; max-width: 56rem; font-size: 1.5rem; line-height: 1.55; opacity: 0.86; }
.lo-cc-merci-suivi a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; white-space: nowrap; }
.lo-cc-merci-suivi a:hover { color: var(--cc-lumiere); }
.lo-cc-suite { display: flex; flex-direction: column; margin: 2.8rem 0 0; }
.lo-cc-suite > div { display: grid; grid-template-columns: 10rem 1fr; gap: 1.6rem; padding: 1.4rem 0; border-top: 1px solid var(--cc-trait); }
.lo-cc-suite > div:last-child { border-bottom: 1px solid var(--cc-trait); }
.lo-cc-suite dt { font-size: 1.4rem; opacity: 0.72; }
.lo-cc-suite dd { margin: 0; font-size: 1.6rem; overflow-wrap: anywhere; }
.lo-cc-suite-numero dd { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.lo-cc-suite-mot dd { font-family: var(--lo-police-titre, Georgia, serif); font-size: 2rem; line-height: 1.3; color: var(--cc-lumiere); white-space: pre-line; }
.lo-cc-merci-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem 2.8rem; margin-top: 2.8rem; }
.lo-cc-merci-reserver {
	display: inline-flex; align-items: center; height: 4.8rem; padding: 0 2.4rem; border-radius: 99rem;
	background: var(--cc-sable); color: var(--cc-terre); font-size: 1.6rem; font-weight: 400; text-decoration: none;
	transition: background-color 0.3s;
}
.lo-cc-merci-reserver:hover { background: var(--cc-lumiere); }
.lo-cc-merci-reserver:focus-visible { outline: 2px solid var(--cc-lumiere); outline-offset: 3px; }

/* un seul moment : la carte se pose, un reflet la traverse, puis le texte */
@media (prefers-reduced-motion: no-preference) {
	.lo-cc-merci:not([hidden]) .lo-cc-cadeau-carte { animation: lo-cc-carte-arrivee 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
	.lo-cc-merci:not([hidden]) .lo-cc-cadeau-carte--dos { animation: lo-cc-dos 1.2s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both; }
	.lo-cc-merci:not([hidden]) .lo-cc-cadeau-eclat { animation: lo-cc-eclat 1.5s 0.6s cubic-bezier(0.45, 0, 0.2, 1) both; }
	.lo-cc-merci:not([hidden]) .lo-cc-cadeau-nb { animation: lo-cc-texte 0.6s 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
	.lo-cc-merci:not([hidden]) .lo-cc-merci-texte { animation: lo-cc-texte 0.9s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes lo-cc-carte-arrivee { from { opacity: 0; transform: translateY(3.2rem) rotateX(30deg) scale(0.94); } }
@keyframes lo-cc-dos { from { opacity: 0; transform: translate(0, 0) rotate(0); } }
@keyframes lo-cc-eclat { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
@keyframes lo-cc-texte { from { opacity: 0; transform: translateY(1.2rem); } }

/* ---------- popup Bricks : tiroir à droite, plein écran sur téléphone ---------- */
.brx-popup:has(.lo-cc-tiroir) { flex-direction: row; justify-content: flex-end; align-items: stretch; padding: 0; }
.brx-popup:has(.lo-cc-tiroir) .brx-popup-content {
	width: min(50rem, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0;
	overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	background: var(--lo-terre-de-serre, #2c0a08); color: var(--lo-allee-de-sable, #ebc495);
	box-shadow: -2rem 0 6rem rgba(0, 0, 0, 0.35);
}
.brx-popup:has(.lo-cc-tiroir):not(.hide) .brx-popup-content { animation: lo-cc-entree 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes lo-cc-entree { from { transform: translateX(6rem); opacity: 0; } }
.lo-cc-tiroir { position: relative; padding: 2.8rem 3.2rem 4rem; min-height: 100%; }
.lo-cc-fermer {
	position: absolute; top: 1.6rem; right: 1.6rem; z-index: 2;
	display: flex; align-items: center; justify-content: center; width: 4.4rem; height: 4.4rem;
	padding: 0; border: 1px solid rgba(235, 196, 149, 0.34); border-radius: 50%;
	background: none; color: inherit; font-size: 2.2rem; line-height: 1; cursor: pointer;
}
.lo-cc-fermer:hover { border-color: currentColor; }
.lo-cc-tiroir .lo-cc-titre { padding-right: 5.6rem; }

@media (max-width: 767px) {
	.lo-cc--page { padding: 2.2rem 1.8rem; border-radius: 2rem; }
	.lo-cc-tiroir { padding: 2rem 2rem 3.2rem; }
	.lo-cc-titre { font-size: 2.8rem; }
	.lo-cc-tiroir .lo-cc-promo { margin-right: 0; margin-top: 5.2rem; }
	.lo-cc-tiroir .lo-cc-cadeau { margin-right: 0; margin-top: 5.2rem; }
	.lo-cc-merci-titre { font-size: 3.2rem; }
	.lo-cc-cadeau-valeur { font-size: 4rem; }
	.lo-cc-suite > div { grid-template-columns: 1fr; gap: 0.2rem; }
	.lo-cc-promo { padding: 2rem 2rem 1.8rem; }
	.lo-cc-promo-titre { font-size: 2.5rem; }
	.lo-cc-carte { grid-template-columns: auto 1fr; }
	.lo-cc-qte { grid-column: 1 / -1; justify-content: flex-end; }
	.lo-cc-form { gap: 2rem; }
	.lo-cc-dest { gap: 1.2rem; }
	.lo-cc-puce span { min-width: 0; height: 4.4rem; padding: 0 1.4rem; font-size: 1.5rem; }
	.lo-cc-puces .lo-cc-puce { flex: 1 1 auto; }
	.lo-cc-puces--montant .lo-cc-puce { flex-basis: calc(33% - 0.8rem); }
	.lo-cc-puces--montant.lo-cc-puces--4 .lo-cc-puce { flex-basis: calc(25% - 0.6rem); }
	.lo-cc-carte--choix { grid-template-columns: 1fr; }
	.lo-cc-ou { margin-top: 1.4rem; }
	.lo-cc-puces .lo-cc-puce span { width: 100%; }
	.lo-cc-legende { margin-bottom: 0.8rem; }
	.lo-cc-bonus { font-size: 1.6rem; }
	@keyframes lo-cc-entree { from { transform: translateY(4rem); opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
	.lo-cc *, .brx-popup:has(.lo-cc-tiroir) .brx-popup-content { animation: none !important; transition: none !important; }
}


/* ------------------------------------------------------------------------
   Menu des montants : un bouton, et une liste qui s’ouvre dessous.
   ------------------------------------------------------------------------ */
.lo-cc-menu { position: relative; }
.lo-cc-menu-bouton {
	display: flex; align-items: center; gap: 1.6rem; width: 100%; min-height: 6.4rem; margin: 0;
	padding: 1rem 2rem 1rem 2.2rem;
	border: 1px solid var(--cc-trait); border-radius: 1.6rem;
	background: var(--cc-voile); color: inherit;
	font: inherit; font-family: var(--lo-police-texte, "DM Sans", system-ui, sans-serif); letter-spacing: 0; text-indent: 0; text-align: left; text-transform: none; line-height: 1.2; cursor: pointer;
	transition: border-color 0.3s, background-color 0.3s;
}
.lo-cc-menu-bouton:hover,
.lo-cc-menu.is-ouvert .lo-cc-menu-bouton { border-color: var(--cc-sable); }
.lo-cc-menu.is-choisi .lo-cc-menu-bouton { border-color: var(--cc-sable); background: rgba(235, 196, 149, 0.1); }
.lo-cc-menu-bouton:focus-visible { outline: 2px solid var(--cc-lumiere); outline-offset: 3px; }
.lo-cc-menu-choix { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.2rem; min-width: 0; }
.lo-cc-menu-vide { opacity: 0.78; }
.lo-cc-menu-valeur { color: var(--cc-lumiere); font-family: var(--lo-police-titre, Georgia, serif); font-size: 2.8rem; line-height: 1; }
.lo-cc-menu-valeur--texte { font-size: 2.2rem; }
.lo-cc-menu-prix { font-size: 1.4rem; opacity: 0.85; }
.lo-cc-menu-chevron {
	flex: none; width: 1rem; height: 1rem; margin: -0.4rem 0.2rem 0 0;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), margin 0.3s;
}
.lo-cc-menu.is-ouvert .lo-cc-menu-chevron { margin-top: 0.6rem; transform: rotate(-135deg); }

.lo-cc-menu-liste {
	position: absolute; z-index: 30; top: calc(100% + 0.8rem); left: 0; right: 0;
	max-height: min(40rem, 62vh); margin: 0; padding: 0.6rem;
	overflow-y: auto; overscroll-behavior: contain; list-style: none;
	border: 1px solid rgba(235, 196, 149, 0.42); border-radius: 1.8rem;
	background: #3a140e;
	box-shadow: 0 2.4rem 5.6rem rgba(20, 4, 3, 0.6), 0 0.2rem 0.8rem rgba(20, 4, 3, 0.35);
	transform-origin: 50% 0; outline: none;
	animation: lo-cc-menu 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
	scrollbar-width: thin; scrollbar-color: rgba(235, 196, 149, 0.35) transparent;
}
@keyframes lo-cc-menu { from { opacity: 0; transform: translateY(-0.8rem) scale(0.985); } }
.lo-cc-option {
	position: relative;
	display: grid; grid-template-columns: minmax(0, 1fr) auto 1.6rem; align-items: center; gap: 1.6rem;
	height: 7.2rem; margin: 0; padding: 0 1.4rem 0 1.6rem; border-radius: 1.2rem;
	cursor: pointer; transition: background-color 0.15s;
}
/* Un filet discret entre les options, effacé autour de la ligne survolée. */
.lo-cc-option + .lo-cc-option::before {
	content: ""; position: absolute; top: 0; left: 1.6rem; right: 1.4rem;
	border-top: 1px solid rgba(235, 196, 149, 0.13); transition: opacity 0.15s;
}
.lo-cc-option.is-actif::before,
.lo-cc-option.is-actif + .lo-cc-option::before { opacity: 0; }
.lo-cc-option.is-actif { background: rgba(235, 196, 149, 0.1); }
.lo-cc-option-texte { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.5rem; min-width: 0; }
.lo-cc-option-valeur { font-family: var(--lo-police-titre, Georgia, serif); font-size: 2.3rem; line-height: 1.05; white-space: nowrap; }
.lo-cc-option[aria-selected="true"] .lo-cc-option-valeur { color: var(--cc-lumiere); }
.lo-cc-option-etiquette {
	padding: 0.1rem 0.8rem; border-radius: 99rem;
	background: rgba(191, 109, 35, 0.3); color: var(--cc-lumiere);
	font-size: 1.05rem; font-weight: 400; letter-spacing: 0.07em; line-height: 1.6; text-transform: uppercase; white-space: nowrap;
}
.lo-cc-option-prix { font-size: 1.4rem; opacity: 0.85; text-align: right; white-space: nowrap; }
.lo-cc-option-coche { justify-self: end; width: 0.6rem; height: 1.15rem; margin-top: -0.3rem; border-right: 1.5px solid var(--cc-lumiere); border-bottom: 1.5px solid var(--cc-lumiere); transform: rotate(45deg); opacity: 0; transition: opacity 0.2s; }
.lo-cc-option[aria-selected="true"] .lo-cc-option-coche { opacity: 1; }
/* « Autre montant » : à part, sous un filet plus marqué. */
.lo-cc-option--autre { margin-top: 1.2rem; }
.lo-cc-option.lo-cc-option--autre::before { top: -0.6rem; border-top-color: var(--cc-trait); opacity: 1; }
.lo-cc-option--autre .lo-cc-option-valeur { font-size: 1.9rem; }
.lo-cc-option--autre .lo-cc-option-prix { white-space: normal; }
@media (max-width: 767px) {
	.lo-cc-menu-bouton { min-height: 5.8rem; padding: 0.8rem 1.8rem; }
	.lo-cc-menu-valeur { font-size: 2.5rem; }
	.lo-cc-menu-liste { max-height: min(36rem, 56vh); }
	.lo-cc-option { gap: 1.2rem; height: 6.8rem; padding: 0 1.2rem 0 1.4rem; }
	.lo-cc-option + .lo-cc-option::before { left: 1.4rem; right: 1.2rem; }
	.lo-cc-option-valeur { font-size: 2.1rem; }
	.lo-cc-option--autre .lo-cc-option-valeur { font-size: 1.7rem; }
	.lo-cc-option--autre .lo-cc-option-prix { max-width: 13rem; }
	.lo-cc-option-etiquette { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.lo-cc-menu-liste { animation: none; }
	.lo-cc-menu-chevron { transition: none; }
}

/* ------------------------------------------------------------------------
 * Le panier : cartes en vedette (bouton « Ajouter »), puis les lignes,
 * chacune avec sa quantité, son sous-total et « retirer ».
 * --------------------------------------------------------------------- */
.lo-cc-zone { display: contents; }
.lo-cc-produits { display: flex; flex-direction: column; gap: 1rem; }
.lo-cc-promo + .lo-cc-produits { margin-top: -0.8rem; }
.lo-cc-produit { transition: border-color 0.3s, background-color 0.3s; }
.lo-cc-produit.is-au-panier { border-color: rgba(235, 196, 149, 0.6); }
.lo-cc .lo-cc-produit .lo-cc-carte-texte p { margin: 0; }
.lo-cc-ajouter {
	display: inline-flex; align-items: center; gap: 0.8rem; flex: none;
	height: 4.4rem; padding: 0 1.8rem;
	border: 1px solid var(--cc-sable); border-radius: 99rem;
	background: none; color: var(--cc-sable);
	font: inherit; font-size: 1.5rem; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1;
	white-space: nowrap; cursor: pointer;
	transition: background-color 0.25s, color 0.25s;
}
.lo-cc-ajouter::before { content: "+"; font-size: 1.8rem; line-height: 1; margin-top: -0.1rem; }
.lo-cc-ajouter:hover { background: var(--cc-sable); color: var(--cc-terre); }
.lo-cc-ajouter-n {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.2rem; height: 2.2rem; padding: 0 0.6rem; border-radius: 99rem;
	background: var(--cc-miel); color: var(--cc-terre); font-size: 1.25rem; font-variant-numeric: tabular-nums;
}

.lo-cc-panier {
	padding: 0.4rem 1.8rem 0;
	border: 1px solid var(--cc-trait); border-radius: 1.8rem; background: var(--cc-voile);
}
.lo-cc .lo-cc-panier-titre {
	margin: 1.4rem 0 0.2rem; font-family: inherit; font-size: 1.4rem; font-weight: 300; line-height: 1.3;
	letter-spacing: 0; text-transform: none; color: inherit; opacity: 0.78;
}
.lo-cc .lo-cc-lignes { list-style: none; margin: 0; padding: 0; }
.lo-cc .lo-cc-ligne::marker { content: none; }
.lo-cc .lo-cc-ligne p { margin: 0; padding: 0; }
.lo-cc .lo-cc-ligne {
	display: grid; grid-template-columns: minmax(0, 1fr) auto 7.6rem 3.2rem; align-items: center; gap: 1.2rem;
	margin: 0; padding: 1.2rem 0;
	border-top: 1px solid rgba(235, 196, 149, 0.13);
}
.lo-cc .lo-cc-ligne:first-child { border-top: 0; }
.lo-cc .lo-cc-ligne::before { content: none; }
.lo-cc .lo-cc-ligne-nom { margin: 0; font-size: 1.6rem; font-weight: 400; line-height: 1.25; }
.lo-cc .lo-cc-ligne .lo-cc-ligne-sous { margin: 0.2rem 0 0; font-size: 1.3rem; line-height: 1.35; color: var(--cc-lumiere); opacity: 0.85; }
.lo-cc-ligne .lo-cc-qte-btn { width: 3.4rem; height: 3.4rem; font-size: 1.7rem; }
.lo-cc-ligne .lo-cc-qte-n { min-width: 2rem; font-size: 1.6rem; }
.lo-cc-ligne-total { text-align: right; font-variant-numeric: tabular-nums; }
.lo-cc-retirer {
	display: flex; align-items: center; justify-content: center;
	width: 3.2rem; height: 3.2rem; padding: 0; border: 0; border-radius: 50%;
	background: none; color: inherit; opacity: 0.55; cursor: pointer;
	font-family: var(--lo-police-texte, system-ui, sans-serif); font-size: 2rem; line-height: 1; letter-spacing: 0;
	transition: opacity 0.2s, background-color 0.2s;
}
.lo-cc-retirer:hover { opacity: 1; background: rgba(235, 196, 149, 0.1); }
.lo-cc .lo-cc-panier-total {
	display: flex; justify-content: space-between; align-items: baseline; gap: 1.6rem;
	margin: 0; padding: 1.3rem 0 1.5rem; border-top: 1px solid var(--cc-trait);
	font-size: 1.6rem; font-weight: 400;
}
.lo-cc-panier-n { font-weight: 300; opacity: 0.7; }
.lo-cc-panier-somme { font-variant-numeric: tabular-nums; }
/* La ligne qui vient d’arriver s’éclaire un instant. */
.lo-cc-ligne.is-nouvelle { animation: lo-cc-nouvelle 1.1s ease-out; }
@keyframes lo-cc-nouvelle {
	from { background: rgba(255, 226, 176, 0.14); box-shadow: -1.8rem 0 0 rgba(255, 226, 176, 0.14), 1.8rem 0 0 rgba(255, 226, 176, 0.14); }
	to { background: transparent; box-shadow: -1.8rem 0 0 transparent, 1.8rem 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .lo-cc-ligne.is-nouvelle { animation: none; } }

/* Téléphone : le nom sur toute la largeur, la quantité et le sous-total dessous. */
@media (max-width: 520px) {
	.lo-cc .lo-cc-panier { padding: 0.2rem 1.4rem 0; }
	.lo-cc .lo-cc-ligne { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.8rem; }
	.lo-cc .lo-cc-ligne-texte { grid-column: 1; grid-row: 1; }
	.lo-cc .lo-cc-retirer { grid-column: 2; grid-row: 1; align-self: start; }
	.lo-cc .lo-cc-ligne .lo-cc-qte { grid-column: 1; grid-row: 2; justify-self: start; }
	.lo-cc .lo-cc-ligne-total { grid-column: 2; grid-row: 2; }
	.lo-cc-produit { grid-template-columns: auto 1fr; }
	.lo-cc-produit .lo-cc-ajouter { grid-column: 1 / -1; justify-content: center; }
}

/* Dans une page WordPress « document » (#brx-content.wordpress), le thème met ses titres en
 * serif et décale les listes, avec un sélecteur à identifiant : on le contre au même niveau. */
:is(#brx-content, body) .lo-cc .lo-cc-lignes { margin: 0; padding: 0; list-style: none; }
:is(#brx-content, body) .lo-cc .lo-cc-panier-titre {
	margin: 1.4rem 0 0.2rem; font-family: inherit; font-size: 1.4rem; font-weight: 300; line-height: 1.3; letter-spacing: 0;
}
:is(#brx-content, body) .lo-cc .lo-cc-promo-badge {
	margin: 0 0 1.4rem; font-family: var(--lo-police-texte, system-ui, sans-serif); font-size: 1.4rem; font-weight: 400; line-height: 1.2; letter-spacing: 0.01em;
}
:is(#brx-content, body) .lo-cc p { margin-bottom: 0; }

/* 29 nov. : le libellé au-dessus du menu reste pour les lecteurs d’écran seulement (le bouton dit « Choisir un montant »). */
.lo-cc-legende:not(.lo-cc-ou) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* La carte Black Friday en tête du menu, sur un fond plus chaud. */
.lo-cc-option--edition { background: color-mix(in srgb, #894a0f 22%, transparent); }
.lo-cc-option--edition .lo-cc-option-prix { white-space: normal; max-width: 13rem; font-size: 1.3rem; line-height: 1.3; }
