/* ==========================================================================
   v5-ui.css — chargée en tout dernier.
   1. En-tête   2. Recherche   3. Lettre du pied de page   4. Mon compte
   DA : crème, encre bleu nuit, bouton bleu égéen, Inter Tight.
   ========================================================================== */

:root {
	--v5-creme: #f7f5f0;
	--v5-blanc: #ffffff;
	--v5-encre: #1d2b45;
	--v5-encre-2: #4a5876;
	--v5-encre-3: #7a849a;
	--v5-bleu: #2f6fd0;
	--v5-bleu-fonce: #255bb0;
	--v5-dore: #8a6a3a;
	--v5-trait: rgba(29, 43, 69, .10);
	--v5-trait-fort: rgba(29, 43, 69, .18);
	--v5-police: "Inter Tight Ondea", "Inter Tight", "Helvetica Neue", Arial, sans-serif;
	--v5-h: 72px;
	--v5-ombre: 0 1px 2px rgba(29, 43, 69, .04), 0 18px 40px -22px rgba(29, 43, 69, .28);
}
@media (max-width: 1099px) { :root { --v5-h: 60px; } }

/* ---------------------------------------------------------------- 1. EN-TÊTE */
body .entete.v5-entete,
body.home .entete.v5-entete,
body.en-tete-sombre .entete.v5-entete {
	position: sticky !important; top: 0 !important; left: auto !important; right: auto !important;
	z-index: 100; height: var(--v5-h) !important;
	background: rgba(247, 245, 240, .92) !important;
	-webkit-backdrop-filter: saturate(1.6) blur(18px) !important; backdrop-filter: saturate(1.6) blur(18px) !important;
	border-bottom: 1px solid transparent !important;
	color: var(--v5-encre) !important;
	transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
body.admin-bar .entete.v5-entete { top: 32px !important; }
@media (max-width: 782px) { body.admin-bar .entete.v5-entete { top: 0 !important; } }
body.v5-defile .entete.v5-entete {
	border-bottom-color: var(--v5-trait) !important;
	box-shadow: 0 10px 30px -24px rgba(29, 43, 69, .45);
}

body .v5-entete .entete-in {
	display: grid !important;
	grid-template-columns: 1fr auto 1fr !important;
	grid-template-areas: "nav logo actions" !important;
	align-items: center !important; gap: 24px !important;
	max-width: 1320px; margin: 0 auto; height: 100% !important;
	padding: 0 clamp(16px, 3.2vw, 40px) !important;
	position: relative;
}
body .v5-entete .menu-ouvrir { display: none !important; }

/* Logo */
body .v5-entete .logo {
	grid-area: logo !important; position: static !important; transform: none !important;
	display: inline-flex !important; align-items: center; justify-self: center;
	background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important;
	text-decoration: none; line-height: 1;
}
body .v5-entete .logo-marque { font-size: 1.62rem !important; letter-spacing: -.035em !important; }

/* Navigation : du texte, pas de pastilles */
body .v5-entete .nav-principale { grid-area: nav !important; display: block !important; min-width: 0; }
body .v5-entete .nav-liste {
	display: flex !important; align-items: center !important; justify-content: flex-start !important;
	gap: 0 !important; margin: 0 !important; padding: 0 !important; list-style: none; flex-wrap: nowrap !important;
}
body .v5-entete .nav-liste li { margin: 0 !important; }
body .v5-entete .nav-liste li.nav-droite { margin-left: 0 !important; }
body .v5-entete .nav-liste a {
	position: relative; display: inline-flex !important; align-items: center;
	height: 40px; padding: 0 14px !important;
	border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
	font: 500 15px/1 var(--v5-police) !important; letter-spacing: -.005em !important; text-transform: none !important;
	color: var(--v5-encre) !important; text-decoration: none !important; white-space: nowrap;
	transition: color .2s ease;
}
body .v5-entete .nav-liste a::after {
	content: "" !important; display: block !important; position: absolute; left: 14px; right: 14px; bottom: 6px; top: auto;
	height: 1.5px; border-radius: 2px; background: var(--v5-bleu) !important;
	transform: scaleX(0); transform-origin: left center; transition: transform .3s cubic-bezier(.2, .8, .2, 1); opacity: 1 !important;
}
body .v5-entete .nav-liste a:hover,
body .v5-entete .nav-liste a:focus-visible { color: var(--v5-bleu) !important; background: transparent !important; }
body .v5-entete .nav-liste a:hover::after,
body .v5-entete .nav-liste a[aria-current]::after,
body .v5-entete .nav-liste .current-menu-item a::after { transform: scaleX(1); }
/* Second groupe (aide au choix) : même ligne, ton plus discret, séparé par un filet */
body .v5-entete .nav-liste li.nav-droite a { color: var(--v5-encre-2) !important; }
body .v5-entete .nav-liste li.nav-droite a:hover { color: var(--v5-bleu) !important; }
body .v5-entete .nav-liste li:nth-child(4) { position: relative; margin-left: 12px !important; padding-left: 12px; }
body .v5-entete .nav-liste li:nth-child(4)::before {
	content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 16px; transform: translateY(-50%); background: var(--v5-trait-fort);
}

/* Actions : icônes nues */
body .v5-entete .entete-actions { grid-area: actions !important; justify-self: end; display: flex !important; align-items: center; gap: 2px !important; }
body .v5-entete .entete-bouton {
	width: 42px !important; height: 42px !important; min-width: 0 !important; padding: 0 !important;
	display: inline-grid !important; place-items: center;
	border: 0 !important; border-radius: 50% !important; box-shadow: none !important;
	background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
	color: var(--v5-encre) !important; transition: background-color .2s ease, color .2s ease;
}
body .v5-entete .entete-bouton:hover,
body .v5-entete .entete-bouton:focus-visible,
body .v5-entete .entete-bouton[aria-expanded="true"] { background: rgba(29, 43, 69, .06) !important; color: var(--v5-bleu) !important; }
body .v5-entete .entete-bouton svg { width: 21px; height: 21px; stroke-width: 1.6; }
body .v5-entete .panier-nb {
	position: absolute !important; top: 5px !important; right: 3px !important; left: auto !important;
	min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; border: 2px solid var(--v5-creme) !important;
	display: grid; place-items: center; box-sizing: content-box;
	background: var(--v5-bleu) !important; color: #fff !important;
	font: 700 10px/1 var(--v5-police) !important;
}
body .v5-entete .panier-nb[data-n="0"] { display: none !important; }

/* Tablette & mobile : menu | logo | recherche + panier */
@media (max-width: 1099px) {
	body .v5-entete .entete-in { grid-template-columns: 1fr auto 1fr !important; grid-template-areas: "menu logo actions" !important; gap: 8px !important; }
	body .v5-entete .nav-principale { display: none !important; }
	body .v5-entete .menu-ouvrir { display: inline-grid !important; grid-area: menu; justify-self: start; margin-left: -9px !important; }
	body .v5-entete .entete-actions { margin-right: -9px; }
	body .v5-entete .logo-marque { font-size: 1.42rem !important; }
}
@media (max-width: 1099px) and (min-width: 700px) {
	body .v5-entete .cache-mobile { display: inline-grid !important; }
}
@media (max-width: 699px) {
	body .v5-entete .cache-mobile { display: none !important; }
	body .v5-entete .entete-bouton { width: 40px !important; height: 40px !important; }
}
@media (min-width: 1100px) and (max-width: 1240px) {
	body .v5-entete .nav-liste a { padding: 0 10px !important; font-size: 14.5px !important; }
	body .v5-entete .nav-liste a::after { left: 10px; right: 10px; }
}

/* Menu mobile : finitions à la DA */
body .menu-mobile { background: var(--v5-creme) !important; }
body .menu-mobile .menu-mobile-liste a { font-family: var(--v5-police) !important; color: var(--v5-encre) !important; letter-spacing: -.02em; }
body .menu-mobile .menu-mobile-liste a span { color: var(--v5-encre-2) !important; letter-spacing: 0; }
body .menu-mobile .menu-mobile-liste a:hover { color: var(--v5-bleu) !important; }
body .menu-mobile .entete-bouton { border: 0 !important; background: rgba(29, 43, 69, .06) !important; box-shadow: none !important; }

/* ---------------------------------------------------------------- 2. RECHERCHE */
.v5-recherche[hidden] { display: none !important; }
body .recherche.v5-recherche {
	position: fixed !important; inset: 0 !important; z-index: 1000 !important;
	display: block; padding: 0 !important; margin: 0;
	background: rgba(20, 28, 46, .38) !important; border: 0 !important; box-shadow: none !important;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	animation: v5-fondu .2s ease both; overflow-y: auto;
}
.v5-rech-panneau {
	background: var(--v5-creme); color: var(--v5-encre);
	box-shadow: 0 30px 60px -30px rgba(20, 28, 46, .45);
	border-radius: 0 0 24px 24px;
	animation: v5-descend .32s cubic-bezier(.2, .8, .2, 1) both;
}
.admin-bar .v5-rech-panneau { margin-top: 32px; }
body .v5-recherche .v5-rech-form {
	display: flex !important; align-items: center; gap: 14px;
	max-width: 880px; margin: 0 auto !important; padding: 26px clamp(16px, 4vw, 40px) 0 !important;
	background: none !important; border: 0 !important;
}
.v5-rech-loupe { color: var(--v5-encre-2); display: inline-grid; place-items: center; flex: none; }
.v5-rech-form .v5-rech-loupe { position: relative; }
body .v5-recherche #recherche-champ {
	flex: 1; min-width: 0; height: 60px; padding: 0 !important; margin: 0;
	border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; outline: none;
	font: 500 clamp(1.25rem, 2.6vw, 1.75rem)/1.2 var(--v5-police) !important; letter-spacing: -.02em; color: var(--v5-encre) !important;
	-webkit-appearance: none; appearance: none;
}
body .v5-recherche #recherche-champ::placeholder { color: var(--v5-encre-3); opacity: 1; }
body .v5-recherche #recherche-champ::-webkit-search-cancel-button { display: none; }
body .v5-recherche .v5-rech-fermer {
	flex: none; display: inline-flex !important; align-items: center; gap: 8px;
	height: 40px; padding: 0 14px !important; border-radius: 999px !important;
	border: 1px solid var(--v5-trait-fort) !important; background: var(--v5-blanc) !important; color: var(--v5-encre) !important;
	font: 500 14px/1 var(--v5-police) !important; cursor: pointer; width: auto !important;
}
.v5-recherche .v5-rech-fermer:hover { border-color: var(--v5-encre) !important; }
.v5-rech-corps {
	max-width: 880px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 30px;
	border-top: 0;
}
.v5-rech-corps::before {
	content: ""; display: block; height: 1.5px; margin: 0 0 24px; background: var(--v5-encre);
	transform-origin: left; transform: scaleX(.12); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.v5-recherche:focus-within .v5-rech-corps::before { transform: scaleX(1); background: var(--v5-bleu); }
.v5-charge .v5-rech-corps::before { animation: v5-charge 1s ease-in-out infinite; }
.v5-rech-titre {
	margin: 0 0 12px !important; font: 600 12px/1.2 var(--v5-police) !important; letter-spacing: .12em !important;
	text-transform: uppercase; color: var(--v5-dore) !important;
}
.v5-rech-puces, .v5-rech-liens, .v5-rech-liste { list-style: none; margin: 0; padding: 0; }
.v5-rech-puces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.v5-rech-puces button {
	height: 36px; padding: 0 16px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--v5-trait-fort); background: var(--v5-blanc); color: var(--v5-encre);
	font: 500 14px/1 var(--v5-police); transition: border-color .2s, color .2s;
}
.v5-rech-puces button:hover { border-color: var(--v5-bleu); color: var(--v5-bleu); }
.v5-rech-liens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.v5-rech-liens a {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 12px 0; border-bottom: 1px solid var(--v5-trait);
	font: 500 15px/1.3 var(--v5-police); color: var(--v5-encre); text-decoration: none;
}
.v5-rech-liens a::after { content: "→"; color: var(--v5-encre-3); transition: transform .2s, color .2s; }
.v5-rech-liens a:hover { color: var(--v5-bleu); }
.v5-rech-liens a:hover::after { color: var(--v5-bleu); transform: translateX(3px); }
.v5-rech-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.v5-rech-liste a {
	display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px;
	padding: 8px; margin: 0 -8px; border-radius: 14px; text-decoration: none; color: var(--v5-encre);
	transition: background-color .15s;
}
.v5-rech-liste a:hover, .v5-rech-liste a:focus-visible { background: var(--v5-blanc); }
.v5-rech-img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #ece8df; display: block; }
.v5-rech-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v5-rech-nom { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v5-rech-nom strong { font: 600 15px/1.25 var(--v5-police); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v5-rech-nom small { font: 400 13px/1.2 var(--v5-police); color: var(--v5-encre-2); }
.v5-rech-prix { font: 600 14px/1 var(--v5-police); white-space: nowrap; color: var(--v5-encre); }
.v5-rech-tout {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; height: 44px; padding: 0 20px;
	border-radius: 999px; background: var(--v5-bleu); color: #fff !important; text-decoration: none;
	font: 600 14px/1 var(--v5-police);
}
.v5-rech-tout:hover { background: var(--v5-bleu-fonce); }
.v5-rech-vide { margin: 0; font: 400 15px/1.55 var(--v5-police); color: var(--v5-encre-2); max-width: 56ch; }
@media (max-width: 699px) {
	.v5-rech-panneau { border-radius: 0 0 20px 20px; }
	body .v5-recherche .v5-rech-form { padding-top: 14px !important; gap: 10px; }
	body .v5-recherche #recherche-champ { height: 52px; font-size: 1.1rem !important; }
	body .v5-recherche .v5-rech-fermer { padding: 0 !important; width: 40px !important; justify-content: center; }
	body .v5-recherche .v5-rech-fermer span { display: none; }
	.v5-rech-liens { grid-template-columns: 1fr 1fr; }
	.v5-rech-liste { grid-template-columns: 1fr; }
	.v5-rech-liste a { grid-template-columns: 56px minmax(0, 1fr) auto; }
	.v5-rech-img { width: 56px; height: 56px; }
	.v5-rech-tout { width: 100%; justify-content: center; }
}
@keyframes v5-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes v5-descend { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes v5-charge { 0% { transform: scaleX(.1); } 50% { transform: scaleX(.7); } 100% { transform: scaleX(1); opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .v5-recherche, .v5-rech-panneau { animation: none !important; } }

/* ---------------------------------------------------------------- 3. LETTRE (pied de page) */
.v5-lettre { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 48px); background: transparent; }
.v5-lettre-carte {
	display: grid; grid-template-columns: 132px minmax(0, 1fr) minmax(0, 440px);
	grid-template-areas: "livre texte form"; align-items: center; gap: 24px 48px;
	padding: clamp(24px, 4vw, 44px) clamp(22px, 4vw, 52px);
	background: var(--v5-blanc); border: 1px solid var(--v5-trait); border-radius: 28px;
	box-shadow: var(--v5-ombre);
}
.v5-lettre-livre { grid-area: livre; }
.v5-lettre-livre img {
	display: block; width: 100%; height: auto; border-radius: 4px 8px 8px 4px;
	box-shadow: -1px 0 0 rgba(0, 0, 0, .08) inset, 0 2px 4px rgba(29, 43, 69, .12), 0 22px 36px -18px rgba(29, 43, 69, .55);
	transform: rotate(-3deg);
}
.v5-lettre-texte { grid-area: texte; min-width: 0; }
.v5-surtitre {
	margin: 0 0 10px !important; font: 600 12px/1.3 var(--v5-police) !important; letter-spacing: .12em !important;
	text-transform: uppercase; color: var(--v5-dore) !important;
}
body .v5-lettre-titre {
	margin: 0 !important; font: 700 clamp(1.6rem, 2.6vw, 2.15rem)/1.08 var(--v5-police) !important;
	letter-spacing: -.035em !important; color: var(--v5-encre) !important;
}
.v5-lettre-chapeau { margin: 12px 0 0 !important; max-width: 46ch; font: 400 15.5px/1.55 var(--v5-police); color: var(--v5-encre-2) !important; }
.v5-lettre-form { grid-area: form; min-width: 0; margin: 0; }
.v5-lettre-label { display: block; margin: 0 0 8px; font: 600 13px/1.2 var(--v5-police); color: var(--v5-encre); }
.v5-champ {
	display: flex; align-items: center; gap: 0; height: 56px; padding: 5px;
	background: var(--v5-creme); border: 1px solid var(--v5-trait-fort); border-radius: 999px;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.v5-champ:focus-within { border-color: var(--v5-bleu); background: var(--v5-blanc); box-shadow: 0 0 0 4px rgba(47, 111, 208, .14); }
body .v5-champ input {
	flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 12px 0 18px !important;
	border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important;
	font: 400 16px/1 var(--v5-police) !important; color: var(--v5-encre) !important;
}
body .v5-champ input::placeholder { color: var(--v5-encre-3); opacity: 1; }
body .v5-champ button {
	flex: none; height: 100%; padding: 0 22px; margin: 0; cursor: pointer;
	border: 0; border-radius: 999px; background: var(--v5-bleu); color: #fff;
	font: 600 14.5px/1 var(--v5-police); letter-spacing: -.005em; text-transform: none; white-space: nowrap;
	transition: background-color .2s;
}
body .v5-champ button:hover { background: var(--v5-bleu-fonce); }
body .v5-champ button:disabled { opacity: .6; cursor: wait; }
.v5-lettre-form .form-retour { margin: 8px 0 0 18px !important; font: 500 13.5px/1.4 var(--v5-police); }
.v5-lettre-form .form-retour:empty { display: none; }
.v5-lettre-mention { margin: 10px 0 0 18px !important; font: 400 13px/1.45 var(--v5-police); color: var(--v5-encre-3) !important; }
.v5-lettre-mention a { color: var(--v5-encre-2) !important; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1099px) {
	.v5-lettre-carte { grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "livre texte" "form form"; gap: 24px 32px; }
}
@media (max-width: 599px) {
	.v5-lettre-carte { grid-template-columns: 72px minmax(0, 1fr); gap: 20px 18px; align-items: start; border-radius: 22px; }
	.v5-lettre-chapeau { grid-column: 1 / -1; }
	.v5-lettre-texte { display: contents; }
	.v5-lettre-livre { grid-row: 1 / 3; grid-column: 1; }
	.v5-surtitre { grid-column: 2; align-self: end; margin: 0 !important; }
	body .v5-lettre-titre { grid-column: 2; font-size: 1.45rem !important; }
	.v5-lettre-carte { grid-template-areas: none; }
	.v5-lettre-chapeau { grid-column: 1 / -1; margin: 0 !important; }
	.v5-lettre-form { grid-column: 1 / -1; grid-area: auto; }
	.v5-champ { height: 54px; }
	body .v5-champ input { padding-left: 14px !important; }
	body .v5-champ button { padding: 0 16px; font-size: 14px; }
	.v5-lettre-mention, .v5-lettre-form .form-retour { margin-left: 4px !important; }
}

/* ---------------------------------------------------------------- 4. MON COMPTE */
.woocommerce-account .page-woo { padding-bottom: clamp(40px, 6vw, 80px); }
.woocommerce-account .page-woo .woocommerce { font-family: var(--v5-police); color: var(--v5-encre); }

/* Champs et boutons communs */
.woocommerce-account .page-woo label { display: block; margin: 0 0 7px; font: 600 14px/1.3 var(--v5-police) !important; color: var(--v5-encre) !important; }
.woocommerce-account .page-woo label .required { color: var(--v5-bleu); text-decoration: none; }
.woocommerce-account .page-woo .input-text,
.woocommerce-account .page-woo select,
.woocommerce-account .page-woo textarea {
	width: 100%; height: 50px; padding: 0 16px !important; box-sizing: border-box;
	border: 1px solid var(--v5-trait-fort) !important; border-radius: 12px !important;
	background: var(--v5-creme) !important; box-shadow: none !important; color: var(--v5-encre) !important;
	font: 400 16px/1 var(--v5-police) !important; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.woocommerce-account .page-woo textarea { height: auto; min-height: 110px; padding: 12px 16px !important; line-height: 1.5 !important; }
.woocommerce-account .page-woo .input-text:focus,
.woocommerce-account .page-woo select:focus { outline: none; border-color: var(--v5-bleu) !important; background: var(--v5-blanc) !important; box-shadow: 0 0 0 4px rgba(47, 111, 208, .14) !important; }
.woocommerce-account .page-woo .form-row { margin: 0 0 18px !important; padding: 0 !important; }
.woocommerce-account .page-woo .password-input { display: block; position: relative; }
.woocommerce-account .page-woo .show-password-input { top: 50% !important; right: 14px !important; transform: translateY(-50%); color: var(--v5-encre-2); }
.woocommerce-account .page-woo .woocommerce-Button,
.woocommerce-account .page-woo .woocommerce-button,
.woocommerce-account .page-woo button.button,
.woocommerce-account .page-woo a.button {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px !important; border: 0 !important; border-radius: 999px !important;
	background: var(--v5-bleu) !important; color: #fff !important; box-shadow: none !important;
	font: 600 15px/1 var(--v5-police) !important; letter-spacing: -.005em !important; text-transform: none !important; text-decoration: none !important;
	cursor: pointer; transition: background-color .2s;
}
.woocommerce-account .page-woo .woocommerce-Button:hover,
.woocommerce-account .page-woo .woocommerce-button:hover,
.woocommerce-account .page-woo button.button:hover,
.woocommerce-account .page-woo a.button:hover { background: var(--v5-bleu-fonce) !important; }
.woocommerce-account .page-woo a { color: var(--v5-bleu); text-underline-offset: 3px; }

/* Connexion */
.v5-connexion {
	display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start;
	margin-top: 8px;
}
.v5-connexion-carte {
	padding: clamp(24px, 4vw, 40px); background: var(--v5-blanc);
	border: 1px solid var(--v5-trait); border-radius: 24px; box-shadow: var(--v5-ombre);
}
.v5-connexion-carte > h2 {
	margin: 0 0 22px !important; font: 700 1.6rem/1.1 var(--v5-police) !important; letter-spacing: -.035em !important; color: var(--v5-encre) !important;
}
.v5-connexion-carte form.login { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.v5-connexion-carte form.login .form-row:not(.form-row-wide) { display: flex; flex-direction: column; align-items: stretch; gap: 18px; margin: 4px 0 0 !important; }
.v5-connexion-carte .woocommerce-form-login__rememberme { display: inline-flex !important; align-items: center; gap: 10px; margin: 0 !important; font-weight: 500 !important; cursor: pointer; }
.v5-connexion-carte .woocommerce-form-login__rememberme input { width: 18px; height: 18px; margin: 0; accent-color: var(--v5-bleu); }
.v5-connexion-carte .woocommerce-form-login__submit { width: 100%; float: none !important; margin: 0 !important; }
.v5-connexion-carte .lost_password { margin: 18px 0 0 !important; text-align: center; font: 500 14px/1.3 var(--v5-police); }
.v5-connexion-carte .lost_password a { color: var(--v5-encre-2) !important; }
.v5-connexion-carte .lost_password a:hover { color: var(--v5-bleu) !important; }
.v5-connexion-carte .u-columns { display: grid; gap: 32px; }
.v5-connexion-carte .u-column1, .v5-connexion-carte .u-column2 { width: auto !important; float: none !important; }
.v5-connexion-aide { padding-top: clamp(0px, 2vw, 24px); max-width: 460px; }
body .v5-aide-titre { margin: 0 0 22px !important; font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1.12 var(--v5-police) !important; letter-spacing: -.035em !important; color: var(--v5-encre) !important; }
.v5-aide-liste { list-style: none; margin: 0 0 22px; padding: 0; }
.v5-aide-liste li { padding: 14px 0; border-top: 1px solid var(--v5-trait); font: 400 15.5px/1.45 var(--v5-police); color: var(--v5-encre-2); }
.v5-aide-liste li:last-child { border-bottom: 1px solid var(--v5-trait); }
.v5-aide-liste span { font-weight: 600; color: var(--v5-encre); }
.v5-aide-note { margin: 0 !important; font: 400 14.5px/1.55 var(--v5-police); color: var(--v5-encre-2) !important; }
@media (max-width: 860px) {
	.v5-connexion { grid-template-columns: 1fr; }
	.v5-connexion-aide { max-width: none; }
}

/* Espace connecté */
.woocommerce-account.logged-in .page-woo .woocommerce {
	display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start;
}
.woocommerce-account .page-woo .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-MyAccount-navigation {
	width: auto !important; float: none !important; position: sticky; top: calc(var(--v5-h) + 24px);
	padding: 10px; background: var(--v5-blanc); border: 1px solid var(--v5-trait); border-radius: 20px; box-shadow: var(--v5-ombre);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0 !important; }
.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 12px;
	font: 500 15px/1 var(--v5-police); color: var(--v5-encre) !important; text-decoration: none !important;
	transition: background-color .15s, color .15s;
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--v5-creme); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: rgba(47, 111, 208, .09); color: var(--v5-bleu) !important; font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px !important; padding-top: 6px !important; border-top: 1px solid var(--v5-trait) !important; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--v5-encre-2) !important; }
.woocommerce-account .woocommerce-MyAccount-content {
	width: auto !important; float: none !important; min-width: 0;
	padding: clamp(22px, 3.5vw, 40px); background: var(--v5-blanc); border: 1px solid var(--v5-trait); border-radius: 24px; box-shadow: var(--v5-ombre);
	font: 400 16px/1.6 var(--v5-police); color: var(--v5-encre-2);
}
.woocommerce-account .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.woocommerce-account .woocommerce-MyAccount-content strong { color: var(--v5-encre); }
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-MyAccount-content legend { margin: 0 0 14px !important; font: 700 1.3rem/1.2 var(--v5-police) !important; letter-spacing: -.03em !important; color: var(--v5-encre) !important; }
.woocommerce-account .woocommerce-MyAccount-content fieldset { margin: 28px 0 0; padding: 22px 0 0; border: 0; border-top: 1px solid var(--v5-trait); }
/* Tableaux (commandes, téléchargements) */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
	width: 100%; border-collapse: separate !important; border-spacing: 0; margin: 0 0 8px;
	border: 1px solid var(--v5-trait) !important; border-radius: 16px !important; overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
	padding: 14px 16px !important; border: 0 !important; border-top: 1px solid var(--v5-trait) !important;
	font: 400 15px/1.4 var(--v5-police); color: var(--v5-encre); text-align: left; vertical-align: middle; background: none;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th {
	border-top: 0 !important; background: var(--v5-creme) !important;
	font: 600 12px/1.2 var(--v5-police) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--v5-encre-2) !important;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table .button { min-height: 38px; padding: 0 16px !important; font-size: 14px !important; margin: 2px 4px 2px 0; }
/* Messages (aucune commande, etc.) */
.woocommerce-account .page-woo .woocommerce-info,
.woocommerce-account .page-woo .woocommerce-message,
.woocommerce-account .page-woo .woocommerce-error {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
	margin: 0 0 20px !important; padding: 18px 20px !important; list-style: none;
	background: var(--v5-creme) !important; border: 1px solid var(--v5-trait) !important; border-radius: 16px !important;
	color: var(--v5-encre) !important; font: 500 15px/1.45 var(--v5-police) !important;
}
.woocommerce-account .page-woo .woocommerce-error { border-color: rgba(163, 52, 31, .3) !important; }
.woocommerce-account .page-woo .woocommerce-info::before,
.woocommerce-account .page-woo .woocommerce-message::before,
.woocommerce-account .page-woo .woocommerce-error::before { display: none !important; }
.woocommerce-account .page-woo .woocommerce-info .button,
.woocommerce-account .page-woo .woocommerce-message .button { order: 2; float: none !important; }
/* Adresses */
.woocommerce-account .woocommerce-Addresses { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.woocommerce-account .woocommerce-Addresses::before, .woocommerce-account .woocommerce-Addresses::after { display: none !important; }
.woocommerce-account .woocommerce-Address { width: auto !important; float: none !important; padding: 22px; border: 1px solid var(--v5-trait); border-radius: 18px; background: var(--v5-creme); }
.woocommerce-account .woocommerce-Address-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.woocommerce-account .woocommerce-Address-title::before, .woocommerce-account .woocommerce-Address-title::after { display: none !important; }
.woocommerce-account .woocommerce-Address-title h2 { font-size: 1.1rem !important; margin: 0 !important; }
.woocommerce-account .woocommerce-Address-title .edit { float: none !important; font: 600 14px/1 var(--v5-police); white-space: nowrap; }
.woocommerce-account .woocommerce-Address address { font-style: normal; line-height: 1.6; color: var(--v5-encre-2); }
.woocommerce-account .woocommerce-MyAccount-content .form-row-first,
.woocommerce-account .woocommerce-MyAccount-content .form-row-last { width: calc(50% - 10px) !important; }
.woocommerce-account .woocommerce-MyAccount-content .form-row-first { float: left; }
.woocommerce-account .woocommerce-MyAccount-content .form-row-last { float: right; }
.woocommerce-account .woocommerce-MyAccount-content .clear { clear: both; }
.woocommerce-account .woocommerce-MyAccount-content em { font-size: 13.5px; color: var(--v5-encre-3); }

@media (max-width: 860px) {
	.woocommerce-account.logged-in .page-woo .woocommerce { grid-template-columns: 1fr; gap: 18px; }
	.woocommerce-account .woocommerce-MyAccount-navigation { position: static; padding: 6px; border-radius: 16px; overflow-x: auto; scrollbar-width: none; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul { flex-direction: row; gap: 4px; width: max-content; }
	.woocommerce-account .woocommerce-MyAccount-navigation a { height: 40px; padding: 0 14px; white-space: nowrap; font-size: 14.5px; }
	.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { margin: 0 !important; padding: 0 0 0 4px !important; border-top: 0 !important; border-left: 1px solid var(--v5-trait) !important; }
	.woocommerce-account .woocommerce-Addresses { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
	.woocommerce-account .woocommerce-MyAccount-content .form-row-first,
	.woocommerce-account .woocommerce-MyAccount-content .form-row-last { width: 100% !important; float: none; }
	/* Tableau des commandes en cartes */
	.woocommerce-account table.shop_table_responsive thead { display: none; }
	.woocommerce-account table.shop_table_responsive tr { display: block; padding: 6px 0; border-top: 1px solid var(--v5-trait); }
	.woocommerce-account table.shop_table_responsive tr:first-child { border-top: 0; }
	.woocommerce-account table.shop_table_responsive td { display: flex !important; justify-content: space-between; gap: 12px; padding: 6px 16px !important; border: 0 !important; text-align: right !important; }
	.woocommerce-account table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; color: var(--v5-encre-2); text-align: left; float: none !important; }
}

/* ---------------------------------------------------------------- Renforts (couches anciennes à !important) */
body .entete.v5-entete { transform: none !important; translate: none !important; }
body .pied .v5-lettre .v5-surtitre,
body .page-woo .v5-surtitre {
	color: var(--v5-dore) !important; letter-spacing: .12em !important; word-spacing: .1em !important;
	font: 600 12px/1.3 var(--v5-police) !important; text-transform: uppercase !important;
}
body .pied .v5-lettre .v5-lettre-titre { color: var(--v5-encre) !important; word-spacing: .02em !important; }
body .pied .v5-lettre .v5-lettre-chapeau { color: var(--v5-encre-2) !important; }
body .pied .v5-lettre .v5-lettre-label { color: var(--v5-encre) !important; letter-spacing: 0 !important; }
body .pied .v5-lettre .v5-champ button { color: #fff !important; letter-spacing: 0 !important; }
body .pied .v5-lettre .v5-champ input { color: var(--v5-encre) !important; }
body .pied .v5-lettre .v5-lettre-mention { color: var(--v5-encre-3) !important; letter-spacing: 0 !important; }
body .pied .v5-lettre .v5-lettre-mention a { color: var(--v5-encre-2) !important; }
body .pied .v5-lettre .form-retour.ok { color: #1f7a4d !important; }
body .pied .v5-lettre .form-retour.erreur { color: #a3341f !important; }
body .page-woo .v5-aide-titre { word-spacing: .02em !important; }
body .page-woo .v5-connexion-carte > h2 { word-spacing: .02em !important; }

/* En-tête bureau : logo à gauche, navigation centrée, actions à droite (aucun chevauchement) */
@media (min-width: 1100px) {
	body .v5-entete .entete-in { grid-template-columns: auto 1fr auto !important; grid-template-areas: "logo nav actions" !important; gap: 32px !important; }
	body .v5-entete .logo { justify-self: start; }
	body .v5-entete .nav-liste { justify-content: center !important; }
	body .v5-entete .entete-bouton.menu-ouvrir { display: none !important; }
}
/* Compte : liens de navigation sans cadre hérité */
body.woocommerce-account .woocommerce-MyAccount-navigation a { border: 0 !important; box-shadow: none !important; background-color: transparent; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background-color: var(--v5-creme) !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background-color: rgba(47, 111, 208, .09) !important; }
/* ambiance.js pose « .defile » sur l’en-tête de l’accueil : la classe du bandeau défilant ne doit pas s’y appliquer */
body .entete.v5-entete.defile { padding: 0 !important; overflow: visible !important; border-top: 0 !important; background: rgba(247, 245, 240, .92) !important; }
body.v5-defile .entete.v5-entete.defile { border-bottom: 1px solid var(--v5-trait) !important; }
body .v5-entete .logo { visibility: visible !important; opacity: 1 !important; }
/* Lettre mobile : le formulaire occupe toute la largeur */
@media (max-width: 599px) {
	.v5-lettre-carte .v5-lettre-form { grid-area: auto !important; grid-column: 1 / -1 !important; }
	.v5-lettre-carte .v5-lettre-chapeau { grid-column: 1 / -1 !important; }
}
/* Tiroirs et menu au-dessus de l’en-tête collant */
body .voile { z-index: 190 !important; }
body .menu-mobile, body .tiroir { z-index: 200 !important; }
body.woocommerce-account .page-woo .v5-connexion-aide p.v5-surtitre { letter-spacing: .12em !important; word-spacing: .1em !important; margin-bottom: 12px !important; }
@media (max-width: 599px) {
	.woocommerce-account .woocommerce-Address-title { flex-direction: column; align-items: flex-start; gap: 6px; }
	.woocommerce-account .woocommerce-Address { padding: 18px; }
	.v5-lettre-mention a { white-space: nowrap; }
}
