/* Adeline Navigation – menu, pied de page, barre du bas. Tout est préfixé « adn- » pour ne rien toucher d'autre. */

/* ---- Palette : clair / sombre (le menu et le pied de page ont chacun le leur, choisi dans les réglages) ----
   Les couleurs de la charte viennent de Core (--adeline-*), avec une valeur de secours si Core est absent.
   Rien n'est redéclaré sur :root. Le « clair » (blanc, rose très pâle) n'existe pas dans la charte : valeurs locales. */
.adn-header, .adn-tabbar {
	--bg: #ffffff; --fg: #14070f; --muted: #5a4452; --line: #eee3ea;
	--chip: #f5eef3; --pink: var(--adeline-pink, #F50087); --pink2: var(--adeline-pink-bright, #FF3AA5); --ll: block; --ld: none;
}
.adn-footer {
	--bg: linear-gradient(180deg, var(--adeline-bg, #210019) 0%, var(--adeline-aubergine, #3A062E) 100%);
	--fg: var(--adeline-white, #FFFFFF); --muted: var(--adeline-muted, #C9A9BD); --line: var(--adeline-border, rgba(255,141,204,.22));
	--chip: rgba(255,255,255,.08); --pink: var(--adeline-pink, #F50087); --pink2: var(--adeline-pink-bright, #FF3AA5); --ll: none; --ld: block;
	--tile: var(--adeline-card, #471039); --tile-line: var(--adeline-border, rgba(255,141,204,.22)); --soc: rgba(255,255,255,.1);
	--link: var(--adeline-pink-light, #FF8DCC);
}
.adn-header[data-theme="dark"], .adn-tabbar[data-theme="dark"] {
	--bg: var(--adeline-bg, #210019); --fg: var(--adeline-white, #FFFFFF); --muted: var(--adeline-muted, #C9A9BD);
	--line: var(--adeline-border, rgba(255,141,204,.22)); --chip: rgba(255,255,255,.08); --ll: none; --ld: block;
}
.adn-footer[data-theme="light"] {
	--bg: #f7eff4; --fg: #14070f; --muted: #5a4452; --line: #e4d3de; --chip: #ffffff;
	--tile: #ffffff; --tile-line: #eadbe5; --soc: #ffffff; --link: var(--adeline-pink, #F50087); --ll: block; --ld: none;
}

.adn, .adn * { box-sizing: border-box; }
.adn { font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: var(--fg); -webkit-font-smoothing: antialiased; }
.adn a { color: inherit; text-decoration: none; }
.adn svg { display: block; }
.adn button { font: inherit; color: inherit; cursor: pointer; }
.adn-logo { display: block; line-height: 0; flex: 0 1 auto; min-width: 0; }
.adn-logo { --lh: 48px; }
.adn-logo img { height: var(--lh); width: auto; max-width: none; margin-left: calc(var(--lh) * -.305); }
.adn-logo-light { display: var(--ll); }
.adn-logo-dark { display: var(--ld); }

/* ---- Menu ---- */
.adn-header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 9990; }
.adn-header.is-sticky { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }
.adn-bar { display: flex; align-items: center; gap: 40px; max-width: 1600px; margin: 0 auto; padding: 0 48px; height: 80px; }
.adn-nav { display: flex; align-items: center; justify-content: center; gap: 40px; flex: 1; font-size: 17.5px; font-weight: 500; }
.adn-nav > a, .adn-nav .adn-dd-btn { padding: 8px 0; margin: 0; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline-offset: 4px; font: inherit; font-size: 17.5px; font-weight: 500; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--fg) !important; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; min-height: 0; }
.adn-nav > a:hover, .adn-nav .adn-dd-btn:hover, .adn-nav .adn-dd-btn:focus, .adn-dd.is-open .adn-dd-btn { color: var(--pink) !important; background: none !important; }
.adn-dd { position: relative; }
.adn-dd-panel { display: none; position: absolute; top: 100%; right: -12px; z-index: 5; min-width: 230px; padding: 10px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(20,7,15,.18); }
.adn-dd.is-open .adn-dd-panel { display: block; }
.adn-dd-panel a { display: block; padding: 12px 16px; border-radius: 12px; font-size: 16px; font-weight: 500; }
.adn-dd-panel a:hover { background: var(--chip); color: var(--pink); }
.adn-right { display: flex; align-items: center; gap: 14px; }
.adn-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); border: 0; position: relative; }
.adn-lang { position: relative; }
.adn-lang-btn { width: auto; padding: 0 13px; display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; font-size: 14.5px; font-weight: 600; }
.adn-lang-panel { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; padding: 8px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(20,7,15,.18); }
.adn-lang.is-open .adn-lang-panel { display: block; }
.adn-lang-panel button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font-size: 15.5px; font-weight: 500; }
.adn-lang-panel button:hover { background: var(--chip); color: var(--pink); }
.adn-cart { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); position: relative; }
.adn-cart.is-empty { display: none; }
.adn-cart i { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--pink); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.adn-btn { background: linear-gradient(135deg, var(--pink), var(--pink2)); color: #fff !important; font-weight: 600; font-size: 16.5px; padding: 14px 28px; border-radius: 30px; box-shadow: 0 6px 20px rgba(245,0,135,.32); white-space: nowrap; }
.adn-btn-ghost { background: transparent; color: var(--fg) !important; border: 1.5px solid var(--pink); box-shadow: none; padding: 12.5px 26px; }
.adn-btn:hover { filter: brightness(1.07); }

/* Moteur GTranslate : présent mais invisible */
.adn-gt-src { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Pied de page ---- */
.adn-footer { background: var(--bg); padding: 56px 48px 30px; position: relative; z-index: 2; }
.adn-footer > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.adn-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 52px; }
.adn-tile { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px; border-radius: 16px; background: var(--tile); border: 1px solid var(--tile-line); font-size: 14px; font-weight: 600; line-height: 1.3; transition: border-color .2s, transform .2s; }
.adn-tile:hover { border-color: var(--pink); transform: translateY(-2px); }
.adn-ti { width: 38px; height: 38px; border-radius: 12px; background: rgba(245,0,135,.18); color: var(--pink); display: grid; place-items: center; }
.adn-f-top { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 56px; padding-bottom: 6px; }
.adn-f-top > * { justify-self: center; }
.adn-brand .adn-logo { --lh: 54px; }
.adn-addr { font-style: normal; margin-top: 24px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.adn-addr strong { display: block; font-size: 15px; font-weight: 600; color: var(--fg); }
.adn-pay { max-width: 460px; }
.adn-pay h5 { margin: 0 0 16px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); font-weight: 700; }
.adn-cards { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.adn-cards img { height: 26px; width: auto; }
.adn-pay p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.adn-pay a { display: block; margin-top: 6px; font-size: 14px; color: var(--link, var(--pink)); }
.adn-f-mid { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.adn-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.adn-soc { width: 44px; height: 44px; border-radius: 50%; background: var(--soc); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.adn-soc img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.adn-copy { margin: 22px auto 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---- Barre du bas (mobile seulement) ---- */
.adn-tabbar { display: none; }

@media (max-width: 1100px) {
	.adn-nav { display: none; }
	.adn-bar { gap: 12px; }
	.adn-right { margin-left: auto; }
}
@media (max-width: 782px) {
	.adn-bar { padding: 0 14px; height: 60px; gap: 8px; }
	.adn-logo { flex: 0 0 auto; --lh: 28px; }
	.adn-right { gap: 6px; flex: 0 0 auto; }
	.adn-ico, .adn-cart { width: 34px; height: 34px; }
	.adn-lang-btn { padding: 0 10px; }
	.adn-lang-cur { display: none; }
	.adn-account { display: none; }
	.adn-btn { padding: 9px 13px; font-size: 13px; }
	.adn-btn-ghost { padding: 8px 12px; }
	.adn-footer { padding: 36px 22px 30px; }
	.adn-tiles { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 34px; }
	.adn-tile { flex-direction: row; align-items: center; gap: 12px; padding: 12px; font-size: 13px; }
	.adn-tile:last-child:nth-child(odd) { grid-column: span 2; }
	.adn-f-top { grid-template-columns: 1fr; gap: 30px; }
	.adn-f-top > * { justify-self: start; }
	.adn-brand .adn-logo { --lh: 44px; }
	.adn-f-mid { margin-top: 34px; }
	body.adn-has-tabbar { padding-bottom: 72px; }
	.adn-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9995; height: 68px; padding: 0 6px env(safe-area-inset-bottom, 0); justify-content: space-around; align-items: center; background: var(--bg); border-top: 1px solid var(--line); }
	.adn-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; font-size: 10.5px; font-weight: 600; opacity: .65; }
	.adn-tab.is-current { opacity: 1; color: var(--pink); }
}
@media (prefers-reduced-motion: reduce) { .adn-tile { transition: none; } }

/* Le thème laisse 60 px de vide sous l'ancien menu : on les retire, sinon une bande blanche apparaît sous le nouveau. */
body.adn-menu-on #primary { margin-top: 0 !important; }
