/* Ohlya — panier (maquette « Ohlya Panier et date », vue B · Panier).
   Toutes les règles sous .oh-root, classes oh-p-*. Mobile d'abord : le récapitulatif passe sous le formulaire
   sur téléphone, à droite (collant) sur ordinateur. Chargé seulement sur le modèle « ohlya-panier ». */

.oh-root .oh-p { max-width: 1280px; margin: 0 auto; padding: 32px var(--oh-gutter) 64px; display: flex; flex-direction: column; gap: 22px; }
.oh-root .oh-p [hidden] { display: none !important; }

/* ——— Étapes ——— */
.oh-root .oh-p-etapes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; padding: 0; font-family: var(--oh-ui); font-size: 14px; font-weight: 500; }
.oh-root .oh-p-etapes__item { display: flex; align-items: center; gap: 10px; margin: 0; }
.oh-root .oh-p-etapes__item + .oh-p-etapes__item::before { content: "—"; content: "—" / ""; color: #B3A5AE; }
.oh-root .oh-p-etapes__pastille { display: inline-block; padding: 6px 14px; border: 1px solid var(--oh-ligne); border-radius: 999px; color: var(--oh-gris); line-height: 1.3; }
.oh-root .oh-p-etapes__item.is-active .oh-p-etapes__pastille { background: var(--oh-aubergine); border-color: var(--oh-aubergine); color: var(--oh-creme); }

/* ——— Titre ——— */
.oh-root .oh-p-titre { font-family: var(--oh-titre); font-weight: var(--oh-titre-poids); font-size: clamp(24px, 2.8vw, 38px); line-height: 1.1; letter-spacing: normal; text-transform: uppercase; color: var(--oh-aubergine); margin: 0; }
body.oh-polices-site .oh-root .oh-p-titre { font-size: clamp(32px, 3.4vw, 48px); text-transform: none; }

/* ——— Messages WooCommerce (erreurs du formulaire, création retirée…) ——— */
.oh-root .oh-p-notices:empty { display: none; }
.oh-root .oh-p-notices { font-family: var(--oh-ui); font-size: 15px; line-height: 1.5; }
.oh-root .oh-p-notices > * { margin-top: 0; margin-bottom: 10px; }
.oh-root .oh-p-notices > *:last-child { margin-bottom: 0; }
.oh-root .oh-p-notices a { text-decoration: underline; text-underline-offset: 3px; }

/* ——— Panier vide : un message, un bouton ——— */
.oh-root .oh-p-vide { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px 22px; border-radius: 20px; background: var(--oh-creme); }
.oh-root .oh-p-vide__titre { font-family: var(--oh-ui); font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: normal; text-transform: none; color: var(--oh-aubergine); margin: 0; }
.oh-root .oh-p-vide__texte { font-size: 16px; line-height: 1.5; color: var(--oh-gris); margin: 0; }
.oh-root a.oh-p-btn-sombre { background: var(--oh-aubergine); color: var(--oh-creme); padding: 14px 24px; font-size: 14px; }
.oh-root a.oh-p-btn-sombre:hover, .oh-root a.oh-p-btn-sombre:focus-visible { color: var(--oh-creme); opacity: .9; }

/* ——— Colonnes : formulaire puis récapitulatif ——— */
.oh-root .oh-p-form { margin: 0; }
.oh-root .oh-p-colonnes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.oh-root .oh-p-principal { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ——— Créations ——— */
.oh-root .oh-p-lignes { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.oh-root .oh-p-ligne { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; margin: 0; padding: 12px; border: 1px solid var(--oh-ligne); border-radius: 20px; background: var(--oh-blanc); }
.oh-root .oh-p-ligne__media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: repeating-linear-gradient(135deg, #EFE3C4 0 10px, #FAF5EA 10px 20px); }
.oh-root .oh-p-ligne__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.oh-root .oh-p-ligne__corps { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.oh-root .oh-p-ligne__haut { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 0; }
.oh-root .oh-p-ligne__nom { font-family: var(--oh-ui); font-size: 17px; font-weight: 500; line-height: 1.25; color: var(--oh-aubergine); overflow-wrap: anywhere; }
.oh-root a.oh-p-ligne__nom:hover, .oh-root a.oh-p-ligne__nom:focus-visible { color: var(--oh-aubergine); opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.oh-root .oh-p-ligne__prix { font-family: var(--oh-ui); font-size: 16px; font-weight: 500; white-space: nowrap; }
.oh-root .oh-p-ligne__infos, .oh-root .oh-p-ligne__qte { font-size: 14px; line-height: 1.4; color: var(--oh-gris); margin: 0; }
.oh-root .oh-p-ligne__details { font-size: 13px; line-height: 1.4; color: var(--oh-gris); }
.oh-root .oh-p-ligne__details dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 6px; margin: 0; }
.oh-root .oh-p-ligne__details :where(dt, dd, p) { margin: 0; padding: 0; float: none; font-weight: 400; }
.oh-root a.oh-p-ligne__retirer { align-self: flex-start; font-family: var(--oh-ui); font-size: 14px; color: var(--oh-rouge); text-decoration: underline; text-underline-offset: 3px; }
.oh-root a.oh-p-ligne__retirer:hover, .oh-root a.oh-p-ligne__retirer:focus-visible { color: var(--oh-rouge); opacity: .8; }

/* ——— Blocs du formulaire ——— */
.oh-root .oh-p-bloc { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--oh-ligne); border-radius: 20px; background: var(--oh-blanc); }
.oh-root .oh-p-bloc__titre { font-family: var(--oh-ui); font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--oh-violet); margin: 0; }
.oh-root .oh-p-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.oh-root .oh-p-champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.oh-root .oh-p-champ label, .oh-root .oh-p .oh-p-label { display: block; font-family: var(--oh-ui); font-size: 14px; font-weight: 500; line-height: 1.35; letter-spacing: normal; text-transform: none; color: var(--oh-aubergine); margin: 0; padding: 0; }
.oh-root .oh-p-requis { color: var(--oh-rouge); }

/* Champs : le thème (WoodMart) stylise input, select et textarea ; on reprend la main sous .oh-p. */
.oh-root .oh-p :is(input[type="text"], input[type="tel"], input[type="date"], select, textarea) { box-sizing: border-box; width: 100%; max-width: none; min-height: 48px; height: auto; margin: 0; padding: 11px 14px; border: 1.5px solid var(--oh-ligne); border-radius: 12px; background-color: var(--oh-blanc); box-shadow: none; font-family: var(--oh-ui); font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--oh-aubergine); }
/* Listes : flèche dessinée ici (l'apparence native ignore hauteur et marges, celle du thème peut manquer). */
.oh-root .oh-p .oh-p-champ select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23320130' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; cursor: pointer; }
.oh-root .oh-p .oh-p-carte__saisie textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.oh-root .oh-p :is(input, select, textarea)::placeholder { color: #8F7F8A; opacity: 1; }
.oh-root .oh-p-bloc--date :is(select, input[type="date"]) { border-color: var(--oh-aubergine); }
.oh-root .oh-p :is(input[type="text"], input[type="tel"], input[type="date"], select, textarea):focus { outline: 2px solid var(--oh-orange); outline-offset: 1px; border-color: var(--oh-orange); }

/* Encadré de la date : vert si la date est possible (ou pas encore choisie), rosé si elle est trop proche. */
.oh-root .oh-p-datebox { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: #E3EFD9; color: var(--oh-aubergine); font-size: 15px; line-height: 1.5; }
.oh-root .oh-p-datebox.is-tot { background: #F3E3E0; }
.oh-root .oh-p-datebox__icone { flex: none; min-width: 1em; font-family: var(--oh-ui); font-weight: 500; color: #2E5A1C; }
.oh-root .oh-p-datebox__icone::before { content: "✓"; }
.oh-root .oh-p-datebox.is-tot .oh-p-datebox__icone { color: #8A2420; }
.oh-root .oh-p-datebox.is-tot .oh-p-datebox__icone::before { content: "!"; }

/* Cases et boutons radio : la vraie case reste dans la page (clavier, lecteurs d'écran), dessinée à côté. */
.oh-root .oh-p-cache { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.oh-root .oh-p-case { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--oh-aubergine); border-radius: 6px; background: transparent; color: var(--oh-creme); font-family: var(--oh-ui); font-size: 14px; line-height: 1; }
.oh-root .oh-p-cache:checked + .oh-p-case { background: var(--oh-aubergine); }
.oh-root .oh-p-cache:checked + .oh-p-case::before { content: "✓"; }
.oh-root .oh-p-cache:focus-visible + .oh-p-case { outline: 2px solid var(--oh-orange); outline-offset: 2px; }

/* ——— 2 · Carte message ——— */
.oh-root .oh-p-bascule { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border: 1.5px solid var(--oh-ligne); border-radius: 14px; background: var(--oh-blanc); color: var(--oh-aubergine); font-family: var(--oh-ui); cursor: pointer; }
.oh-root .oh-p-bascule.is-on { border-color: var(--oh-aubergine); background: var(--oh-creme); }
.oh-root .oh-p-bascule__texte { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; line-height: 1.35; }
.oh-root .oh-p-bascule__prix { font-size: 15px; font-weight: 500; white-space: nowrap; }
.oh-root .oh-p-carte__champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.oh-root .oh-p-carte__saisie { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.oh-root .oh-p-carte__compteur { margin: 0; font-family: var(--oh-ui); font-size: 13px; line-height: 1.4; color: var(--oh-gris); }
.oh-root .oh-p-carte__compteur label { display: inline; font-family: inherit; font-size: inherit; font-weight: 400; color: inherit; margin: 0; }
.oh-root .oh-p-apercu { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.oh-root .oh-p-apercu__carte { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; aspect-ratio: 3 / 2; margin: 0; padding: 20px; border-radius: 12px; background: var(--oh-creme); box-shadow: 0 6px 20px rgba(50, 1, 48, .12); }
.oh-root .oh-p-apercu__oiseau { position: absolute; right: -18px; bottom: -18px; width: 90px; height: 100px; color: var(--oh-orange); opacity: .18; }
.oh-root .oh-p-apercu__message { position: relative; margin: 0; font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--oh-aubergine); }
.oh-root .oh-p-apercu__message.is-exemple { color: var(--oh-gris); font-style: italic; }
.oh-root .oh-p-apercu__signature { position: relative; align-self: flex-end; margin: 0; font-family: var(--oh-ui); font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.oh-root .oh-p-apercu__signature::before { content: "— "; }

/* ——— 3 · Destinataire ——— */
.oh-root .oh-p-modes { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.oh-root .oh-p-modes legend { float: none; width: auto; margin: 0 0 8px; padding: 0; border: 0; }
.oh-root .oh-p-modes__choix { display: flex; flex-wrap: wrap; gap: 8px; }
.oh-root .oh-p-pill { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.oh-root .oh-p-pill span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--oh-aubergine); border-radius: 999px; background: transparent; color: var(--oh-aubergine); font-family: var(--oh-ui); font-size: 14px; font-weight: 500; line-height: 1.2; }
.oh-root .oh-p-pill .oh-p-cache:checked + span { background: var(--oh-aubergine); color: var(--oh-creme); }
.oh-root .oh-p-pill .oh-p-cache:focus-visible + span { outline: 2px solid var(--oh-orange); outline-offset: 2px; }

/* Encadré « Pour que votre attention arrive à bon port » et case obligatoire. */
.oh-root .oh-p-prevenir { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1.5px solid var(--oh-orange); border-radius: 14px; background: #FFF1DC; }
.oh-root .oh-p-prevenir__titre { margin: 0; font-family: var(--oh-ui); font-size: 16px; font-weight: 500; line-height: 1.35; }
.oh-root .oh-p-prevenir__texte { margin: 0; font-size: 15px; line-height: 1.5; }
.oh-root .oh-p-prevenir__case { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 0; font-family: var(--oh-ui); font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--oh-aubergine); cursor: pointer; }
.oh-root .oh-p-prevenir__case .oh-p-case { width: 20px; height: 20px; margin-top: 1px; border-radius: 5px; font-size: 13px; }
.oh-root .oh-p-prevenir__rappel { margin: 0; font-size: 13px; line-height: 1.45; color: var(--oh-gris-fonce); }

/* ——— Récapitulatif : dégradé du haut de l'accueil, texte crème ———
   Brief : vérifier la lisibilité sur la partie orange. Un voile aubergine léger, seulement sur la moitié droite,
   garde le crème lisible jusqu'au bord (contraste ≥ 4,5:1 sur les montants alignés à droite). */
.oh-root .oh-p-recap { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 22px; border-radius: 24px; background: linear-gradient(105deg, rgba(50, 1, 48, 0) 55%, rgba(50, 1, 48, .38) 100%), var(--oh-degrade-fonce); color: var(--oh-creme); }
.oh-root .oh-p-recap__titre { margin: 0; font-family: var(--oh-titre); font-weight: var(--oh-titre-poids); font-size: 18px; line-height: 1.2; letter-spacing: normal; text-transform: uppercase; color: var(--oh-creme); }
body.oh-polices-site .oh-root .oh-p-recap__titre { font-size: 26px; text-transform: none; }
.oh-root .oh-p-recap__lignes { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.oh-root .oh-p-recap__ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(245, 234, 206, .3); font-size: 16px; line-height: 1.35; }
.oh-root .oh-p-recap__ligne dt { min-width: 0; margin: 0; font-weight: 400; overflow-wrap: anywhere; }
.oh-root .oh-p-recap__ligne dd { margin: 0; font-weight: 500; text-align: right; white-space: nowrap; }
/* Frais pas encore connus : « Calculés à l'étape suivante » peut passer à la ligne. */
.oh-root .oh-p-recap__ligne dd[data-oh-recap-frais] { max-width: 58%; white-space: normal; }
.oh-root .oh-p-recap__ligne--total { padding-bottom: 0; border-bottom: 0; font-family: var(--oh-ui); font-size: 22px; }
.oh-root .oh-p-recap__ligne--total dt { font-weight: 500; }
.oh-root .oh-p-recap__prevue { margin: 0; font-size: 14px; line-height: 1.5; }
.oh-root .oh-p-recap__prevue strong { font-weight: 500; color: var(--oh-miel); }
.oh-root .oh-p-recap__bouton { width: 100%; margin: 0; padding: 18px; border: 0; cursor: pointer; }
.oh-root .oh-p-recap__bouton:hover { opacity: 1; }
.oh-root .oh-p-recap :focus-visible { outline-color: var(--oh-creme); }
.oh-root .oh-p-garanties { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; }
.oh-root .oh-p-garanties li { margin: 0; }
.oh-root .oh-p-garanties li::before { content: "✦ "; content: "✦ " / ""; }
.oh-root .oh-p-recap__note { margin: 0; font-size: 13px; line-height: 1.45; }

/* Montants WooCommerce (wc_price) : le thème les colore parfois ; ici ils suivent le texte. */
.oh-root .oh-p :is(.amount, bdi, .woocommerce-Price-currencySymbol) { color: inherit; font-size: inherit; font-weight: inherit; }

/* ——— Ordinateur : deux colonnes, récapitulatif collant ——— */
@media (min-width: 960px) {
	.oh-root .oh-p { padding: 48px var(--oh-gutter) 80px; gap: 28px; }
	.oh-root .oh-p-colonnes { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: 28px; }
	.oh-root .oh-p-principal { gap: 20px; }
	.oh-root .oh-p-vide { padding: 40px; }
	.oh-root .oh-p-ligne { grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 16px; }
	.oh-root .oh-p-ligne__nom { font-size: 19px; }
	.oh-root .oh-p-ligne__prix { font-size: 17px; }
	.oh-root .oh-p-bloc { padding: 22px; }
	.oh-root .oh-p-recap { padding: 26px; }
}
@media (min-width: 960px) and (min-height: 700px) {
	.oh-root .oh-p-recap { position: sticky; top: 20px; }
	body.admin-bar .oh-root .oh-p-recap { top: 52px; }
	/* En-tête collant du thème (WoodMart) : le récapitulatif s'arrête dessous. */
	body.oh-theme-chrome .oh-root .oh-p-recap { top: 96px; }
	body.oh-theme-chrome.admin-bar .oh-root .oh-p-recap { top: 128px; }
}

/* ——— Petits téléphones ——— */
@media (max-width: 480px) {
	.oh-root .oh-p-etapes { gap: 6px; font-size: 13px; }
	.oh-root .oh-p-etapes__item { gap: 6px; }
	.oh-root .oh-p-etapes__pastille { padding: 5px 10px; }
}
@media (max-width: 400px) {
	.oh-root .oh-p-ligne { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
	.oh-root .oh-p-bascule { flex-wrap: wrap; }
	.oh-root .oh-p-bascule__prix { margin-left: 34px; }
	.oh-root .oh-p-recap__ligne--total { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.oh-root .oh-p * { transition: none !important; }
}
