/* ==========================================================================
   pmj-account 0.2.0 — bouton « My Account » de l'en-tête (phase 2, maquette Main.dc.html)
   Chargé sur toutes les pages, seulement pour les personnes qui voient le nouveau bouton.
   Valeurs de pmj-cart (décision A). Toutes les classes commencent par « pmj-acc-e ».
   Version ordinateur dans l'en-tête ordinateur d'Astra (#ast-desktop-header),
   version téléphone dans son en-tête téléphone (#ast-mobile-header).
   ========================================================================== */

@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/libre-baskerville-400-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/libre-baskerville-400-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.pmj-acc-e {
	--pmj-encre: #1A1510;
	--pmj-encre-2: #534330;
	--pmj-gris-texte: #6E675E;
	--pmj-ligne: #E4E0D8;
	--pmj-creme: #F5F0E8;
	--pmj-or: #C9A96E;
	--pmj-or-pale: #EFE4CC;
	--pmj-or-fond: #FBF6EA;
	--pmj-titres: "Libre Baskerville", Baskerville, Georgia, serif;
	--pmj-ui: Poppins, "Segoe UI", Arial, sans-serif;

	position: relative;
	display: inline-flex;
	align-items: center;
	font-family: var(--pmj-ui);
	line-height: 1.3;
	text-align: left;
}
.pmj-acc-e *, .pmj-acc-e *::before, .pmj-acc-e *::after { box-sizing: border-box; }
.pmj-acc-e svg { display: block; flex: 0 0 auto; }
.pmj-acc-e a { text-decoration: none; box-shadow: none; }
.pmj-acc-e :focus-visible { outline: 2px solid var(--pmj-or); outline-offset: 2px; }

/* ---------- Quelle version dans quel en-tête d'Astra ---------- */
.pmj-acc-e .pmj-acc-e-mobile { display: none; }
#ast-mobile-header .pmj-acc-e .pmj-acc-e-ordi { display: none; }
#ast-mobile-header .pmj-acc-e .pmj-acc-e-mobile { display: flex; }

/* ---------- Visiteur : « Sign in » à contour doré ---------- */
.pmj-acc-e a.pmj-acc-e-signin {
	display: inline-flex; align-items: center; gap: 8px;
	height: 38px; padding: 0 18px;
	border: 1.5px solid var(--pmj-or); border-radius: 999px; background: transparent;
	color: var(--pmj-or-pale);
	font: 600 13px/1 var(--pmj-ui); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}
.pmj-acc-e a.pmj-acc-e-signin:hover, .pmj-acc-e a.pmj-acc-e-signin:focus { background: var(--pmj-or); color: var(--pmj-encre); }

/* ---------- Client connecté (ordinateur) : pastille ---------- */
.pmj-acc-e .pmj-acc-e-deroulant { position: relative; }
.pmj-acc-e button.pmj-acc-e-pastille {
	display: inline-flex; align-items: center; gap: 10px;
	height: 38px; margin: 0; padding: 0 14px 0 4px;
	border: 1.5px solid var(--pmj-or); border-radius: 999px; background: var(--pmj-encre);
	color: var(--pmj-or-pale); box-shadow: none;
	font: 600 13px/1 var(--pmj-ui); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
	cursor: pointer; transition: background .15s ease;
}
.pmj-acc-e button.pmj-acc-e-pastille:hover,
.pmj-acc-e button.pmj-acc-e-pastille:focus,
.pmj-acc-e button.pmj-acc-e-pastille[aria-expanded="true"] { background: #2A231B; color: var(--pmj-or-pale); border-color: var(--pmj-or); }
.pmj-acc-e .pmj-acc-e-initiale {
	width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px;
	background: var(--pmj-or); color: var(--pmj-encre);
	display: flex; align-items: center; justify-content: center;
	font: 400 13px/1 var(--pmj-titres); letter-spacing: 0; text-transform: none;
}
.pmj-acc-e .pmj-acc-e-fleche { transition: transform .15s ease; }
.pmj-acc-e button[aria-expanded="true"] .pmj-acc-e-fleche { transform: rotate(180deg); }

/* ---------- Menu déroulant ---------- */
.pmj-acc-e .pmj-acc-e-menu {
	position: absolute; top: calc(100% + 10px); right: 0; z-index: 100000;
	width: 320px; max-width: calc(100vw - 24px);
	background: #fff; border: 1px solid var(--pmj-ligne); border-radius: 14px;
	box-shadow: 0 18px 40px rgba(26, 21, 16, .16);
	padding: 14px; display: flex; flex-direction: column; gap: 4px;
	color: var(--pmj-encre); font: 400 15px/1.4 var(--pmj-ui); letter-spacing: 0; text-transform: none;
}
.pmj-acc-e .pmj-acc-e-menu[hidden] { display: none; }
.pmj-acc-e .pmj-acc-e-bonjour { display: flex; flex-direction: column; gap: 2px; padding: 4px 8px 10px; }
.pmj-acc-e .pmj-acc-e-bonjour-nom { font: 400 17px/1.3 var(--pmj-titres); color: var(--pmj-encre); }
.pmj-acc-e .pmj-acc-e-courriel { font-size: 13px; color: var(--pmj-gris-texte); overflow-wrap: anywhere; }

.pmj-acc-e a.pmj-acc-e-commande {
	display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; padding: 12px;
	background: var(--pmj-or-fond); border: 1px solid var(--pmj-or-pale); border-radius: 10px; color: var(--pmj-encre);
}
.pmj-acc-e a.pmj-acc-e-commande:hover { border-color: var(--pmj-or); color: var(--pmj-encre); }
.pmj-acc-e .pmj-acc-e-commande-haut { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.pmj-acc-e .pmj-acc-e-commande-haut strong { font-weight: 600; }
.pmj-acc-e .pmj-acc-e-commande-etat { color: #7A5D22; font-weight: 600; }
.pmj-acc-e .pmj-acc-e-commande-lien { font-size: 12.5px; color: var(--pmj-gris-texte); }

.pmj-acc-e ul.pmj-acc-e-liens { list-style: none; margin: 0; padding: 0; }
.pmj-acc-e ul.pmj-acc-e-liens li { margin: 0; padding: 0; list-style: none; }
.pmj-acc-e ul.pmj-acc-e-liens li::before { display: none; }
.pmj-acc-e .pmj-acc-e-liens a, .pmj-acc-e a.pmj-acc-e-sortie {
	display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 8px;
	color: var(--pmj-encre); font: 400 15px/1.3 var(--pmj-ui);
}
.pmj-acc-e .pmj-acc-e-liens a:hover, .pmj-acc-e .pmj-acc-e-liens a:focus,
.pmj-acc-e a.pmj-acc-e-sortie:hover, .pmj-acc-e a.pmj-acc-e-sortie:focus { background: var(--pmj-creme); color: var(--pmj-encre); }
.pmj-acc-e .pmj-acc-e-menu .pmj-acc-icone { width: 20px; height: 20px; color: var(--pmj-gris-texte); }
.pmj-acc-e a.pmj-acc-e-sortie { color: var(--pmj-gris-texte); }
.pmj-acc-e .pmj-acc-e-trait { display: block; height: 1px; background: var(--pmj-ligne); margin: 4px 0; }

/* ---------- Téléphone : rond avec l'initiale (zone de toucher de 44 px) ---------- */
.pmj-acc-e a.pmj-acc-e-rond-lien { position: relative; width: 44px; height: 44px; align-items: center; justify-content: center; }
.pmj-acc-e .pmj-acc-e-rond {
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--pmj-or); color: var(--pmj-encre);
	display: flex; align-items: center; justify-content: center;
	font: 400 14px/1 var(--pmj-titres);
}
.pmj-acc-e .pmj-acc-e-rond-vide { background: transparent; border: 1.5px solid var(--pmj-or); color: var(--pmj-or-pale); }
.pmj-acc-e .pmj-acc-e-point {
	position: absolute; top: 5px; right: 4px; width: 11px; height: 11px; border-radius: 50%;
	background: #fff; border: 2px solid var(--pmj-encre);
}

@media (prefers-reduced-motion: reduce) {
	.pmj-acc-e *, .pmj-acc-e *::before, .pmj-acc-e *::after { transition: none !important; }
}

/* 0.5.0 (phase 5) : mini-barre d'avancement de la commande en cours. */
.pmj-acc-e .pmj-acc-e-barre { display: block; height: 5px; margin: 8px 0 6px; border-radius: 3px; background: var(--pmj-ligne, #E4E0D8); overflow: hidden; }
.pmj-acc-e .pmj-acc-e-barre > span { display: block; height: 100%; border-radius: 3px; background: var(--pmj-or, #C9A96E); }
.pmj-acc-e .pmj-acc-e-barre--attente > span { background: #C2610F; }