/* Ohlya — filtre « Trouver un cadeau par date » : menu des occasions et bandeau « Quand doit-il arriver ? »
   de l'accueil, page « Trouver un cadeau par date » (maquette « Ohlya Panier et date », vue A).
   Mobile d'abord ; toutes les règles sous .oh-root. Fond violet foncé sans photo → dégradé
   --oh-degrade-fonce avec texte crème (brief du 21/10). Chargé après ohlya-accueil.css. */

/* ════════ Accueil : menu « Toutes les occasions » au bout des pastilles ════════ */
.oh-root .oh-pd-occsel { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; max-width: 100%; }
.oh-root .oh-pd-occsel__select { max-width: min(100%, 300px); border-color: var(--oh-aubergine); }
.oh-root .oh-pd-occsel__ok { font-family: var(--oh-ui); height: 44px; min-height: 0; margin: 0; padding: 0 20px; border: 0; border-radius: 999px; background: var(--oh-miel); color: var(--oh-aubergine); font-size: 15px; font-weight: 500; letter-spacing: normal; line-height: 1; text-transform: none; cursor: pointer; box-shadow: none; }
.oh-root .oh-pd-occsel__ok:hover { background: #FFD480; color: var(--oh-aubergine); }
/* Avec JavaScript, le menu s'envoie tout seul : plus besoin du bouton « OK ». */
.oh-root .oh-pd-occsel.is-auto .oh-pd-occsel__ok { display: none; }

/* ════════ Accueil : bandeau « Quand doit-il arriver ? » ════════ */
.oh-root .oh-pd-bandeau { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: end; margin: 0; padding: 20px; border-radius: 24px; background: var(--oh-degrade-fonce); color: var(--oh-creme); }
.oh-root .oh-pd-bandeau__texte { display: flex; flex-direction: column; gap: 4px; align-self: center; padding-bottom: 4px; }
/* Ombre légère sous le texte : il reste lisible là où le dégradé passe au rouge puis à l'orange (téléphone). */
.oh-root .oh-pd-bandeau__t { font-family: var(--oh-titre); font-weight: var(--oh-titre-poids); font-size: 17px; line-height: 1.25; text-transform: uppercase; color: var(--oh-miel); text-shadow: 0 1px 2px rgba(50, 1, 48, .45); }
.oh-root .oh-pd-bandeau__d { font-size: 15px; line-height: 1.45; color: var(--oh-creme); text-shadow: 0 1px 2px rgba(50, 1, 48, .45); }
/* Champs sur fond clair presque opaque : libellé et valeur sombres, lisibles sur tout le dégradé. */
.oh-root .oh-pd-bandeau__champ { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; padding: 8px 14px 6px; border-radius: 14px; background: rgba(255, 253, 247, .94); color: var(--oh-aubergine); cursor: pointer; }
.oh-root .oh-pd-bandeau__champ:focus-within { box-shadow: 0 0 0 2px var(--oh-aubergine), 0 0 0 4px var(--oh-miel); }
.oh-root .oh-pd-bandeau__label { font-family: var(--oh-ui); font-size: 12px; font-weight: 500; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; color: var(--oh-gris-fonce); }
.oh-root .oh-pd-bandeau__champ input,
.oh-root .oh-pd-bandeau__champ select { display: block; width: 100%; max-width: 100%; height: auto; min-height: 34px; margin: 0; padding: 4px 0; border: 0; border-radius: 0; background-color: transparent; box-shadow: none; font-family: var(--oh-ui); font-size: 16px; font-weight: 400; line-height: 1.3; color: var(--oh-aubergine); -webkit-appearance: none; appearance: none; }
/* Le cadre du champ porte l'indication de focus (:focus-within ci-dessus). */
.oh-root .oh-pd-bandeau__champ input:focus,
.oh-root .oh-pd-bandeau__champ select:focus { outline: none; }
.oh-root .oh-pd-bandeau__champ select { padding-right: 26px; background: transparent 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 1l5 5 5-5' fill='none' stroke='%23320130' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 2px center; text-overflow: ellipsis; cursor: pointer; }
.oh-root .oh-pd-bandeau__btn { font-family: var(--oh-ui); display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin: 0; padding: 14px 22px; border: 0; border-radius: 999px; background: var(--oh-miel); color: var(--oh-aubergine); font-size: 14px; font-weight: 500; letter-spacing: .04em; line-height: 1.2; text-align: center; text-transform: uppercase; white-space: nowrap; cursor: pointer; box-shadow: 0 6px 18px rgba(50, 1, 48, .25); transition: background-color .2s; }
.oh-root .oh-pd-bandeau__btn:hover { background: #FFD480; color: var(--oh-aubergine); }
/* Double anneau (aubergine + crème) : visible sur toutes les couleurs du dégradé, orange compris. */
.oh-root .oh-pd-bandeau__btn:focus-visible { outline: 2px solid var(--oh-aubergine); outline-offset: 2px; box-shadow: 0 0 0 6px var(--oh-creme); }

/* ════════ Page « Trouver un cadeau par date » ════════ */
.oh-root .oh-pd { max-width: 1280px; margin: 0 auto; padding: 40px var(--oh-gutter) 64px; display: flex; flex-direction: column; gap: 28px; }
.oh-root .oh-pd__tete { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.oh-root .oh-pd__ey { font-family: var(--oh-ui); font-size: 13px; font-weight: 500; letter-spacing: .2em; line-height: 1.4; text-transform: uppercase; color: var(--oh-rouge); }
.oh-root .oh-pd__h1 { font-family: var(--oh-titre); font-weight: var(--oh-titre-poids); font-size: clamp(26px, 3.2vw, 44px); line-height: 1.1; text-transform: uppercase; text-wrap: balance; }
.oh-root .oh-pd__intro { font-size: 16px; line-height: 1.55; color: var(--oh-gris); text-wrap: pretty; }
.oh-root .oh-pd__h2 { font-family: var(--oh-titre); font-weight: var(--oh-titre-poids); font-size: 18px; line-height: 1.2; text-transform: uppercase; }
.oh-root .oh-pd__h2--grand { font-size: 20px; }

/* Formulaire : date, wilaya (avec son délai), résumé. */
.oh-root .oh-pd-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 20px; border-radius: 24px; background: var(--oh-creme); }
.oh-root .oh-pd-form__champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; font-family: var(--oh-ui); font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--oh-aubergine); }
.oh-root .oh-pd-form__champ input,
.oh-root .oh-pd-form__champ select { display: block; width: 100%; max-width: 100%; height: auto; min-height: 54px; margin: 0; padding: 14px 16px; border: 1.5px solid var(--oh-aubergine); border-radius: 14px; background-color: var(--oh-blanc); box-shadow: none; font-family: var(--oh-ui); font-size: 17px; font-weight: 400; line-height: 1.3; color: var(--oh-aubergine); -webkit-appearance: none; appearance: none; }
.oh-root .oh-pd-form__champ select { padding-right: 44px; background: var(--oh-blanc) 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 1l5 5 5-5' fill='none' stroke='%23320130' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; text-overflow: ellipsis; cursor: pointer; }
.oh-root .oh-pd-form__champ input:focus-visible,
.oh-root .oh-pd-form__champ select:focus-visible { outline: 2px solid var(--oh-orange); outline-offset: 2px; }
.oh-root .oh-pd-form__champ input[type="date"]::-webkit-date-and-time-value,
.oh-root .oh-pd-bandeau__champ input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.oh-root .oh-pd-form__btn { font-family: var(--oh-ui); display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin: 0; padding: 14px 26px; border: 0; border-radius: 999px; background: var(--oh-aubergine); color: var(--oh-creme); font-size: 14px; font-weight: 500; letter-spacing: .06em; line-height: 1.2; text-align: center; text-transform: uppercase; white-space: nowrap; cursor: pointer; box-shadow: none; transition: background-color .2s; }
.oh-root .oh-pd-form__btn:hover { background: var(--oh-violet); color: var(--oh-creme); }
.oh-root .oh-pd-form__resume { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.oh-root .oh-pd-form__phrase { font-size: 16px; font-weight: 500; line-height: 1.45; }
.oh-root .oh-pd-form__phrase.is-tard { color: #8A2420; }
.oh-root .oh-pd-form__note { font-size: 14px; line-height: 1.45; color: var(--oh-gris); }

/* « Ou choisissez une occasion » : nom, date, pastille de fiabilité (couleurs de la maquette). */
.oh-root .oh-pd-occ { display: flex; flex-direction: column; gap: 14px; }
.oh-root .oh-pd-occ__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.oh-root .oh-pd-occ__legende { font-size: 13px; line-height: 1.4; color: var(--oh-gris); }
.oh-root .oh-pd-occ__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.oh-root .oh-pd-occ__liste > li { display: flex; }
.oh-root .oh-pd-occ__item { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border: 1.5px solid var(--oh-ligne); border-radius: 16px; background: var(--oh-blanc); color: var(--oh-aubergine); transition: border-color .2s, background-color .2s; }
.oh-root .oh-pd-occ__item:hover { opacity: 1; border-color: var(--oh-orange); color: var(--oh-aubergine); }
.oh-root .oh-pd-occ__item.is-active,
.oh-root .oh-pd-occ__item.is-active:hover { opacity: 1; background: var(--oh-aubergine); border-color: var(--oh-aubergine); color: var(--oh-creme); }
.oh-root .oh-pd-occ__nom { font-size: 15px; font-weight: 500; line-height: 1.25; }
.oh-root .oh-pd-occ__date { font-size: 13px; line-height: 1.35; }
.oh-root .oh-pd-fia { margin-top: 2px; padding: 2px 8px; border-radius: 999px; background: var(--oh-creme); color: var(--oh-aubergine); font-family: var(--oh-ui); font-size: 11px; font-weight: 500; letter-spacing: .06em; line-height: 1.4; }
.oh-root .oh-pd-fia--lunaire { background: #E8E1F7; }
.oh-root .oh-pd-fia--a-confirmer,
.oh-root .oh-pd-fia--officielle { background: #FFE0B8; }

/* Résultats : livrables d'abord ; les autres grisées avec « Au plus tôt le … ». */
.oh-root .oh-pd-res { display: flex; flex-direction: column; gap: 18px; }
.oh-root .oh-pd-res__tete { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.oh-root .oh-pd-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.oh-root .oh-pd-carte { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 12px; border: 1px solid var(--oh-ligne); border-radius: 16px; background: var(--oh-blanc); }
.oh-root .oh-pd-carte__visuel { position: relative; }
.oh-root .oh-pd-carte__media { aspect-ratio: 1; border-radius: 10px; transition: opacity .2s; }
.oh-root .oh-pd-carte__ideal { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px); padding: 4px 8px; border-radius: 999px; background: var(--oh-miel); color: var(--oh-aubergine); font-family: var(--oh-ui); font-size: 10.5px; font-weight: 500; line-height: 1.25; }
.oh-root .oh-pd-carte__corps { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 0 4px; }
.oh-root .oh-pd-carte__ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; }
.oh-root .oh-pd-carte__nom { font-family: var(--oh-texte); font-size: 15px; font-weight: 500; line-height: 1.2; }
/* Toute la carte mène à la fiche (lien étiré), sauf le bouton. */
.oh-root .oh-pd-carte__lien::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.oh-root .oh-pd-carte:hover .oh-pd-carte__lien { opacity: 1; }
.oh-root .oh-pd-carte:hover .oh-pd-carte__media { opacity: .9; }
.oh-root .oh-pd-carte__prix { font-size: 14px; font-weight: 500; white-space: nowrap; }
.oh-root .oh-pd-carte__prix del { margin-right: 4px; opacity: .6; font-weight: 400; }
.oh-root .oh-pd-carte__prix ins { text-decoration: none; background: none; }
.oh-root .oh-pd-carte__meta { font-size: 12px; line-height: 1.35; color: var(--oh-gris); }
.oh-root .oh-pd-carte__statut { align-self: flex-start; padding: 4px 9px; border-radius: 999px; background: #E3EFD9; color: #2E5A1C; font-family: var(--oh-ui); font-size: 12px; font-weight: 500; line-height: 1.3; }
.oh-root .oh-pd-carte__statut.is-tard { background: #F3E3E0; color: #8A2420; }
.oh-root .oh-pd-carte__btn { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin: auto 0 0; padding: 10px 12px; border: 0; border-radius: 999px; background: var(--oh-aubergine); color: var(--oh-creme); font-family: var(--oh-ui); font-size: 12px; font-weight: 500; letter-spacing: .03em; line-height: 1.2; text-align: center; text-transform: uppercase; cursor: pointer; box-shadow: none; transition: background-color .2s; }
.oh-root a.oh-pd-carte__btn:hover,
.oh-root a.oh-pd-carte__btn:focus-visible { opacity: 1; background: var(--oh-violet); color: var(--oh-creme); }
/* opacity: 1 : certains thèmes (WoodMart) pâlissent les boutons désactivés, le texte deviendrait illisible. */
.oh-root .oh-pd-carte__btn:disabled { opacity: 1; background: var(--oh-ligne); color: var(--oh-gris); cursor: not-allowed; }
/* Trop tard pour la date choisie : photo grisée, textes gardés lisibles (pas d'opacité sur toute la carte). */
.oh-root .oh-pd-carte.is-tard { background: rgba(255, 253, 247, .55); }
.oh-root .oh-pd-carte.is-tard .oh-pd-carte__media { opacity: .5; filter: grayscale(.8); }
.oh-root .oh-pd-carte.is-tard:hover .oh-pd-carte__media { opacity: .6; }
.oh-root .oh-pd-carte.is-tard .oh-pd-carte__ligne { color: var(--oh-gris-fonce); }

/* ════════ Tablette et plus ════════ */
@media (min-width: 641px) {
	.oh-root .oh-pd-bandeau { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px 24px; }
	.oh-root .oh-pd-bandeau__texte { grid-column: 1 / -1; }
	.oh-root .oh-pd-bandeau__btn { grid-column: 1 / -1; justify-self: start; width: auto; }

	.oh-root .oh-pd { padding: 56px var(--oh-gutter) 80px; gap: 36px; }
	.oh-root .oh-pd__intro { font-size: 18px; }
	.oh-root .oh-pd__h2--grand { font-size: 22px; }
	.oh-root .oh-pd-form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px; }
	.oh-root .oh-pd-form__btn { grid-column: 1 / -1; justify-self: start; width: auto; }

	.oh-root .oh-pd-occ__liste { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
	.oh-root .oh-pd-occ__item { padding: 14px 16px; }
	.oh-root .oh-pd-occ__nom { font-size: 16px; }
	.oh-root .oh-pd-occ__date { font-size: 14px; }

	.oh-root .oh-pd-grille { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
	.oh-root .oh-pd-carte { padding: 12px 12px 18px; border-radius: 20px; }
	.oh-root .oh-pd-carte__lien::after { border-radius: 20px; }
	.oh-root .oh-pd-carte__media { border-radius: 12px; }
	.oh-root .oh-pd-carte__ideal { top: 10px; left: 10px; padding: 5px 10px; font-size: 11px; }
	.oh-root .oh-pd-carte__corps { padding: 0 6px; }
	.oh-root .oh-pd-carte__nom { font-size: 18px; }
	.oh-root .oh-pd-carte__prix { font-size: 16px; }
	.oh-root .oh-pd-carte__meta { font-size: 13px; }
	.oh-root .oh-pd-carte__statut { padding: 5px 10px; font-size: 13px; }
	.oh-root .oh-pd-carte__btn { padding: 12px 18px; font-size: 14px; letter-spacing: .04em; }
}

/* ════════ Ordinateur ════════ */
@media (min-width: 1000px) {
	/* Bandeau sur une ligne : texte (partie sombre du dégradé), date, wilaya, bouton. */
	.oh-root .oh-pd-bandeau { grid-template-columns: minmax(220px, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; }
	.oh-root .oh-pd-bandeau__texte,
	.oh-root .oh-pd-bandeau__btn { grid-column: auto; }

	.oh-root .oh-pd-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
	.oh-root .oh-pd-form__btn { grid-column: auto; }
}

/* ════════ Polices du site actuel (Cormorant Garamond, Lora, DM Sans) ════════ */
body.oh-polices-site .oh-root .oh-pd-bandeau__t { font-size: 26px; font-weight: 400; line-height: 1.15; text-transform: none; }
body.oh-polices-site .oh-root .oh-pd__h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.05; text-transform: none; }
body.oh-polices-site .oh-root .oh-pd__h1 .oh-violet { font-style: italic; }
body.oh-polices-site .oh-root .oh-pd__h2 { font-size: 26px; font-weight: 400; text-transform: none; }
body.oh-polices-site .oh-root .oh-pd__h2--grand { font-size: 32px; }
body.oh-polices-site .oh-root .oh-pd-carte__nom { font-family: var(--oh-titre); font-size: 19px; font-weight: 400; }
@media (min-width: 641px) {
	body.oh-polices-site .oh-root .oh-pd-carte__nom { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
	.oh-root .oh-pd-occ__item,
	.oh-root .oh-pd-carte__media,
	.oh-root .oh-pd-carte__btn,
	.oh-root .oh-pd-form__btn,
	.oh-root .oh-pd-bandeau__btn { transition: none; }
}
