/* Thème And Joy — valeurs relevées sur l'ancien site Breakdance (31/10/2026). Mobile d'abord, ordinateur à partir de 1024 px. */

:root {
	--aj-noir: #171717;
	--aj-blanc: #fff;
	--aj-rouge: #b0132c;
	--aj-rose: #e46e84;
	--aj-rose-fonce: #dd5e75;
	--aj-rose-bandeau: #ea3958;
	--aj-bordeaux-bandeau: #9b2b2a;
	--aj-beige: #faf7f5;
	--aj-beige-reassurance: #e8e0db;
	--aj-gris-trait: #e5e5e5;
	--aj-texte: "Poppins", sans-serif;
	--aj-titre: "Playfair Display", serif;
	--aj-largeur: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--aj-texte); font-size: 16px; font-weight: 300; line-height: 1.4; color: var(--aj-noir); background: var(--aj-blanc); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
/* Texte réservé aux lecteurs d'écran (libellés WooCommerce, WordPress) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* :where() : sans poids, pour laisser les styles des pages Breakdance (breakdance-compat.css) décider des titres */
:where(h1, h2, h3, h4, h5, h6) { font-family: var(--aj-titre); color: var(--aj-noir); margin: 0; }

/* ---------- Bandeau du haut ---------- */
/* En-tête collant : .aj-haut-cache posé par andjoy.js en descendant la page */
.aj-haut { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100; transition: transform .5s; }
.aj-haut.aj-haut-cache { transform: translateY(-100%); }
/* Bandeau du haut : défilement continu, bordeaux (proposition 4). Même hauteur que l'ancien bandeau rose (34,8 px). */
.aj-bandeau-haut { overflow: hidden; background: var(--aj-bordeaux-bandeau); color: var(--aj-blanc); font-size: 12px; font-weight: 400; line-height: 16.8px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.aj-bandeau-haut__piste { display: flex; width: max-content; animation: aj-bandeau 114s linear infinite; } /* 3 suites par moitié : 3 × 38 s, même vitesse que la maquette */
.aj-bandeau-haut__piste p { display: flex; margin: 0; padding: 9px 0; }
.aj-bandeau-haut__piste span { padding-right: 48px; }
@keyframes aj-bandeau { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .aj-bandeau-haut__piste { animation: none; } }

/* ---------- En-tête ---------- */
.aj-entete { position: relative; z-index: 50; background: var(--aj-blanc); }
.aj-entete__barre { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 53px; padding: 0 10px 0 16px; }
/* Blocs repères de la loupe d'andjoy-recherche (positionnée en absolu à côté du menu ou du compte) */
.aj-entete__gauche { position: relative; justify-self: start; display: flex; align-items: center; }
.aj-entete__droite { position: relative; justify-self: end; display: flex; align-items: center; gap: 10px; }
.aj-entete__gauche .aj-loupe--mobile { margin-left: 30px; }
.aj-loupe svg { max-width: none; }
.aj-logo img { width: 128px; height: auto; }
.aj-icone { display: flex; width: 18px; height: 18px; }
.aj-icone svg { width: 100%; height: 100%; fill: currentColor; }
.aj-panier .xoo-wsc-sc-cont { display: flex; align-items: center; justify-content: center; min-width: 32px; }
.aj-burger { display: flex; width: 18px; height: 18px; }
.aj-burger svg { width: 100%; height: 100%; stroke-width: 2.2; }
.aj-burger__fermer, .aj-menu-ouvert .aj-burger__ouvrir { display: none; }
.aj-menu-ouvert .aj-burger__fermer { display: block; }
.aj-chevron { display: inline-flex; width: 18px; height: 18px; transition: transform .2s; }
.aj-ouvert > .aj-menu__lien .aj-chevron, .aj-ouvert > .aj-mega__titre .aj-chevron { transform: rotate(180deg); }

/* Menu mobile : panneau sous l'en-tête */
/* Hauteur visible réelle (dvh) : avec 100vh, le bas du menu (les langues) passait sous les barres d'Android */
.aj-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 120px); max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(32px + env(safe-area-inset-bottom)); background: var(--aj-blanc); border-top: 1px solid var(--aj-gris-trait); }
.aj-menu-ouvert .aj-nav { display: block; }
.aj-nav-droite { display: none; }
.aj-menu-ouvert body { overflow: hidden; }
.aj-menu__item { border-bottom: 1px solid var(--aj-gris-trait); }
.aj-menu__lien { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 20px; font-size: 16px; font-weight: 500; line-height: 16px; text-align: left; }
.aj-mega { display: none; padding: 10px 30px 30px; }
.aj-ouvert > .aj-mega { display: block; }
.aj-mega__icones a { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; font-weight: 400; }
.aj-mega__picto { display: flex; width: 14px; height: 14px; }
.aj-mega__picto svg { width: 100%; height: 100%; fill: currentColor; }
.aj-mega__icones { margin-bottom: 10px; }
.aj-mega__titre { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 16px; font-weight: 700; font-style: italic; text-transform: uppercase; }
.aj-mega__section ul { display: none; padding-bottom: 10px; }
.aj-mega__section.aj-ouvert ul { display: block; }
.aj-mega__section a { display: block; padding: 5px 0; font-size: 15px; font-weight: 400; }
.aj-mega__vignettes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 16px; }
.aj-mega__vignettes img { width: 100%; height: auto; aspect-ratio: 300 / 456; object-fit: cover; }
/* Bandeau d'avis Google (mu-plugin andjoy-bandeau-avis) : caché quand le menu est ouvert, il recouvrait les langues */
.aj-menu-ouvert #aj-avis { display: none !important; }

@media (min-width: 1024px) {
	/* En-tête sur une ligne autour du logo (proposition 4) : menu à gauche, logo, 2 liens + icônes à droite */
	.aj-entete__barre { height: auto; padding: 26px 56px; }
	.aj-burger-zone { display: none; }
	.aj-logo img { width: auto; height: 30px; }
	.aj-entete__droite { gap: 18px; }
	.aj-nav-droite { order: -1; display: flex; gap: 34px; margin-right: 10px; }
	/* Loupe d'andjoy-recherche : dans le flux, entre les liens et le compte (le module la place en absolu à gauche du bloc) */
	.aj-entete__droite .aj-loupe--ordi { position: static; transform: none; margin: 0; }
	.aj-panier { width: auto; }
	.aj-panier .xoo-wsc-sc-cont { min-width: 24px; } /* même écart entre les 3 pictos */
	/* Le menu se pose sur la barre, à gauche ; le reste de la barre reste cliquable (pointer-events) */
	.aj-nav { display: flex; align-items: center; position: absolute; inset: 0; max-height: none; overflow: visible; border: 0; padding: 0 56px; background: transparent; pointer-events: none; }
	.aj-menu { display: flex; gap: 34px; pointer-events: auto; }
	.aj-menu__item--droite { display: none; }
	.aj-menu__item { border: 0; }
	/* 5 px dessus, 3 dessous : les majuscules tombent à mi-hauteur des pictos, le soulignement garde sa place */
	.aj-menu__lien { position: relative; width: auto; padding: 5px 0 3px; gap: 6px; font-size: 12px; font-weight: 500; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; }
	.aj-menu__lien::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: currentColor; transition: width .3s; }
	.aj-menu__lien:hover::after, .aj-ouvert > .aj-menu__lien::after { width: 100%; }
	.aj-menu__lien .aj-chevron { width: 12px; height: 12px; }
	.aj-mega { position: absolute; left: 0; right: 0; top: 100%; display: none; grid-template-columns: 1fr auto; align-items: center; padding: 45px 108px 48px 100px; background: var(--aj-beige); border-radius: 0 0 16px 16px; box-shadow: 0 30px 30px -30px rgba(0, 0, 0, .12); }
	.aj-ouvert > .aj-mega { display: grid; }
	/* Pont invisible au-dessus du panneau : la souris traverse l'espace sous le lien sans quitter le menu */
	.aj-mega::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40px; }
	.aj-mega__icones a { padding: 0; font-size: 14px; line-height: 19.6px; }
	.aj-mega__icones { margin-bottom: 0; }
	.aj-mega__titre { padding: 0; margin: 25px 0 5px; font-size: 16px; font-weight: 600; font-style: normal; line-height: 19.2px; cursor: default; }
	.aj-mega__titre .aj-chevron { display: none; }
	.aj-mega__section ul { display: block; padding: 0; }
	.aj-mega__section a { padding: 0; font-size: 14px; line-height: 19.6px; }
	.aj-mega__vignettes { grid-template-columns: 300px 300px; gap: 12px; margin: 0; }
}

/* Pictos de l'en-tête (loupe, compte, panier) : un seul dessin, trait 1,5 px arrondi, 24 px.
   Posés en masque par-dessus les icônes d'origine (module de recherche, thème, panier Xoo), qui avaient chacune leur style. */
.aj-entete .aj-loupe svg, .aj-entete .aj-compte svg { display: none; }
.aj-entete .aj-loupe::before, .aj-entete .aj-compte::before, .aj-panier .xoo-wsc-sc-bki::before { content: "" !important; display: block; width: 24px; height: 24px; background: var(--aj-noir); -webkit-mask: var(--aj-picto) center / contain no-repeat; mask: var(--aj-picto) center / contain no-repeat; }
.aj-entete .aj-loupe { --aj-picto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E"); }
.aj-entete .aj-compte { --aj-picto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='3.75'/%3E%3Cpath d='M4.75 20c.9-3.6 3.8-5.75 7.25-5.75s6.35 2.15 7.25 5.75'/%3E%3C/svg%3E"); width: 24px; height: 24px; }
.aj-panier .xoo-wsc-sc-bki { --aj-picto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 8.5h13l-1 11.25h-11z'/%3E%3Cpath d='M9 8.5V7a3 3 0 0 1 6 0v1.5'/%3E%3C/svg%3E"); font-size: 0 !important; line-height: 0; color: var(--aj-noir); }

/* ---------- Contenu générique ---------- */
.aj-page { max-width: var(--aj-largeur); margin: 0 auto; padding: 60px 20px; }
.aj-page__titre { font-size: 30px; font-style: italic; margin-bottom: 30px; }
.aj-page__texte { font-size: 15px; line-height: 1.6; }

/* ---------- Pied de page ---------- */
.aj-reassurance { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 10px; padding: 12px 10px; background: var(--aj-beige-reassurance); text-align: center; }
.aj-reassurance__item { max-width: 170px; margin: 0 auto; }
.aj-reassurance__item img { width: 30px; height: auto; margin: 0 auto 8px; }
.aj-reassurance__item p { margin: 0; }
.aj-reassurance__titre { font-family: var(--aj-texte); font-size: 15px; font-weight: 700; font-style: italic; letter-spacing: 1px; line-height: 18px; text-transform: uppercase; margin-bottom: 5px !important; }
.aj-reassurance__texte { font-family: var(--aj-titre); font-size: 15px; font-weight: 600; font-style: italic; line-height: 21px; }

.aj-joyletter { padding: 60px 20px 50px; text-align: center; }
.aj-joyletter__titre { font-size: 30px; font-weight: 700; font-style: italic; line-height: 36px; margin: 0 auto 20px; max-width: 350px; }
.aj-joyletter__texte { max-width: 350px; margin: 0 auto 10px; font-size: 15px; font-weight: 400; line-height: 21px; }
.aj-joyletter__form { max-width: 350px; margin: 0 auto; text-align: left; }
.aj-joyletter .ff-el-group { margin-bottom: 20px !important; }
.aj-joyletter .ff-el-input--label { display: none !important; }
.aj-joyletter input.ff-el-form-control { width: 100%; height: 37px; padding: 8px 0 !important; border: 0 !important; border-bottom: 1px solid var(--aj-noir) !important; border-radius: 0 !important; background: transparent !important; font-family: var(--aj-titre) !important; font-size: 15px !important; font-style: italic; color: var(--aj-noir); box-shadow: none !important; }
.aj-joyletter input.ff-el-form-control::placeholder { color: rgba(23, 23, 23, .7); }
.aj-joyletter .ff-btn-submit { width: 100% !important; height: 42px; padding: 8px 20px !important; border: 1px solid var(--aj-noir) !important; border-radius: 0 !important; background: var(--aj-noir) !important; color: var(--aj-blanc) !important; font-family: var(--aj-texte) !important; font-size: 16px !important; font-weight: 500 !important; }
.aj-joyletter .ff_submit_btn_wrapper { margin: 0; }

.aj-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.aj-photos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

.aj-liens { padding: 32px 37px 50px; background: var(--aj-noir); color: var(--aj-blanc); }
.aj-liens__grille { display: grid; gap: 25px; }
.aj-liens__marque img { width: 130px; height: auto; margin: 10px 0 20px; }
.aj-liens__marque p { margin: 0; font-size: 12px; line-height: 16.5px; }
.aj-liens h3 { font-family: var(--aj-texte); font-size: 14px; font-weight: 500; font-style: italic; letter-spacing: 1px; line-height: 16.8px; text-transform: uppercase; color: var(--aj-blanc); margin-bottom: 22px; }
.aj-liens li { margin-bottom: 10px; font-size: 11px; line-height: 15.4px; }
.aj-reseaux { display: flex; justify-content: center; gap: 12px; margin: 16px 0 40px; }
.aj-reseaux a { display: flex; width: 44px; height: 44px; padding: 10px; }
.aj-reseaux svg { width: 100%; height: 100%; fill: var(--aj-blanc); }
.aj-copyright { max-width: 315px; margin: 0 auto 20px; font-size: 12px; line-height: 16.8px; text-align: center; }
.aj-paiements { width: 300px; height: auto; margin: 0 auto; }

@media (min-width: 1024px) {
	.aj-reassurance { grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 60px 20px 58px; }
	.aj-reassurance__item { max-width: none; }
	.aj-reassurance__titre { font-size: 17px; line-height: 20.4px; margin-bottom: 6px !important; }
	.aj-reassurance__texte { font-size: 18px; line-height: 25.2px; }
	.aj-joyletter { padding: 102px 20px 76px; }
	.aj-joyletter__titre { font-size: 40px; line-height: 48px; max-width: none; margin: 0 0 5px; }
	.aj-joyletter__texte { max-width: 427px; }
	.aj-joyletter__form { max-width: 800px; }
	.aj-joyletter .ff-t-container { display: flex !important; gap: 15px; align-items: center; }
	.aj-joyletter .ff-t-cell { flex: 1 1 0 !important; width: auto !important; max-width: none !important; padding: 0 !important; }
	.aj-joyletter .ff-el-group, .aj-joyletter .ff-field_container { margin-bottom: 0 !important; }
	.aj-photos { grid-template-columns: repeat(6, 1fr); }
	.aj-liens { padding: 50px 20px 50px; }
	.aj-reseaux { margin: 30px 0 30px; }
	.aj-liens__grille { grid-template-columns: repeat(4, 212px); justify-content: center; gap: 30px; }
	.aj-liens__marque img { margin-top: 0; }
	.aj-liens__marque p { font-size: 11px; }
	.aj-liens h3 { font-style: normal; margin-bottom: 20px; }
	.aj-liens li { margin-bottom: 9.6px; }
	.aj-copyright { max-width: none; }
}

/* Parcours « Compose ton lot » en page seule (shortcode [funnel_bundle_wizard standalone="1"] du connecteur) :
   le connecteur pose sa barre fine .fc-standalone-top ; ses règles de masquage visent la structure Breakdance,
   celles-ci font la même chose pour ce thème */
body:has(.fc-standalone-top) .aj-haut, body:has(.fc-standalone-top) .aj-pied, body:has(.fc-standalone-top) #aj-avis { display: none !important; }
body:has(.fc-standalone-top) .aj-contenu, body:has(.fc-standalone-top) .aj-contenu > .bde-section:first-child { margin: 0 !important; }
body:has(.fc-standalone-top) .aj-contenu > .bde-section:first-child > .section-container { padding: 0 !important; max-width: none !important; }
