/* WAH! en-tête, v1.3 : harmonisé avec la page d'accueil « La setlist » (voir DESIGN.md).
   Barre bleu nuit (le mur), panneaux en feuille blanche scotchée (le papier), traits de pinceau.
   Tout est préfixé (.wah-entete, .we-*) pour ne pas croiser les styles de Divi,
   et les réglages de base de Divi (listes, titres, paragraphes, liens) sont neutralisés à l'intérieur. */
.wah-entete {
  --nuit: #000058; --cyan: #5fffff; --violet: #8265ff; --lilas: #dc87ff; --rouge: #ff0000; --blanc: #ffffff;
  --lavande: #ecebff; --lavande-2: #c4c1ff; --encre-douce: #3a3a72; --filet: #d9d7f7;
  --font: "Poppins", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --trait-cyan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath fill='%235FFFFF' d='M3 5C45 2 140 1 196 4c3 3 3 9 1 12-46 3-140 4-193 1-3-3-3-9-1-12z'/%3E%3C/svg%3E");
  --trait-lilas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath fill='%23DC87FF' d='M3 5C45 2 140 1 196 4c3 3 3 9 1 12-46 3-140 4-193 1-3-3-3-9-1-12z'/%3E%3C/svg%3E");
  --trait-rouge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath fill='%23FF0000' fill-opacity='.7' d='M3 5C45 2 140 1 196 4c3 3 3 9 1 12-46 3-140 4-193 1-3-3-3-9-1-12z'/%3E%3C/svg%3E");
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 99990;
  background: var(--nuit); color: var(--blanc);
  font: 400 16px/1.6 var(--font); text-align: left;
}
.wah-entete *, .wah-entete *::before, .wah-entete *::after { box-sizing: border-box; }
.wah-entete ul, .wah-entete ol { margin: 0; padding: 0; list-style: none; line-height: inherit; }
.wah-entete h2, .wah-entete h3, .wah-entete p { padding: 0; margin: 0; }
.wah-entete a { text-decoration: none; }
.wah-entete :focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 4px; }
.wah-entete ::selection { background: var(--cyan); color: var(--nuit); }
.we-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.we-skip { position: absolute; left: 12px; top: -60px; z-index: 100000; padding: 10px 16px; border-radius: 40px; background: #5fffff; color: #000058 !important; font: 700 0.95rem/1 "Poppins", Helvetica, Arial, sans-serif; }
.we-skip:focus { top: 12px; }
html.we-verrou { overflow: hidden; }

/* ---------- Barre : le mur bleu nuit ---------- */
.wah-entete .we-bar { display: flex; align-items: center; gap: 18px; max-width: 1440px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 56px); min-height: 84px; }
.wah-entete .we-logo { display: block; flex: none; border-radius: 8px; }
.wah-entete .we-logo img { display: block; height: 46px; width: auto; max-width: none; }
.wah-entete .we-nav { flex: 1; min-width: 0; }
.wah-entete .we-nav > ul { display: flex; align-items: center; justify-content: flex-end; gap: clamp(2px, 0.6vw, 10px); }
.wah-entete .we-item { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 6px; padding: 10px 10px 16px; margin: 0; font: 500 0.95rem/1.2 var(--font); color: var(--blanc); background: none; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.wah-entete .we-chev { width: 12px; height: 12px; color: var(--lavande-2); transition: transform 0.25s var(--ease); }
.wah-entete .we-item[aria-expanded="true"] .we-chev { transform: rotate(180deg); color: var(--cyan); }
/* Le trait de pinceau sous la rubrique : lilas au survol et à l'ouverture, cyan pour la rubrique en cours */
.wah-entete .we-stabilo { position: absolute; z-index: -1; left: 9px; width: calc(100% - 18px); bottom: 5px; height: 7px; color: var(--lilas); pointer-events: none; clip-path: inset(0 100% 0 0); transition: clip-path 0.45s var(--ease); }
.wah-entete .we-stabilo path { fill: currentColor; }
.wah-entete .we-item:hover .we-stabilo, .wah-entete .we-item[aria-expanded="true"] .we-stabilo, .wah-entete .we-item[aria-current] .we-stabilo { clip-path: inset(0 0 0 0); }
.wah-entete .we-item[aria-current] .we-stabilo { color: var(--cyan); }
.wah-entete .we-search-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; margin-left: 8px; border: 2px solid var(--cyan); border-radius: 40px; background: none; color: var(--cyan); font: 600 0.9rem/1 var(--font); cursor: pointer; transition: background 0.25s, color 0.25s; }
.wah-entete .we-search-btn:hover, .wah-entete .we-search-btn[aria-expanded="true"] { background: var(--cyan); color: var(--nuit); }
.wah-entete .we-search-btn svg { width: 18px; height: 18px; flex: none; }
.wah-entete .we-menu-btn { display: none; }

/* ---------- Panneaux : une feuille blanche scotchée sur le mur ---------- */
.wah-entete .we-panel {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--nuit); color: var(--nuit);
  padding: 26px clamp(16px, 4vw, 56px) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.38s var(--ease), visibility 0s linear 0.38s;
  box-shadow: 0 30px 50px -30px rgb(0 0 30 / 0.7); }
.wah-entete .we-panel.we-open { clip-path: inset(0 0 -60px 0); visibility: visible; transition: clip-path 0.38s var(--ease), visibility 0s; }
.wah-entete .we-panel.we-instant { transition: none; }
.wah-entete .we-panel-in { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 56px; max-width: 1328px; margin: 0 auto; padding: 36px 44px 0; min-height: 320px;
  background: var(--blanc); border-radius: 4px; box-shadow: 0 30px 60px -20px rgb(0 0 30 / 0.65), 0 6px 14px rgb(0 0 30 / 0.25); }
.wah-entete .we-panel-in.we-sans-art { grid-template-columns: minmax(0, 1fr); }
.wah-entete .we-scotch { position: absolute; top: -15px; width: 118px; height: 32px; background: rgb(95 255 255 / 0.78); mix-blend-mode: multiply; pointer-events: none; }
.wah-entete .we-scotch.we-g { left: 52px; transform: rotate(-4deg); }
.wah-entete .we-scotch.we-d { right: 52px; transform: rotate(5deg); }
.wah-entete .we-panel-main { display: grid; gap: 22px; align-content: start; padding-bottom: 36px; min-width: 0; }
.wah-entete .we-panel-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 24px; }
.wah-entete .we-panel-title { font: 800 clamp(1.6rem, 2.2vw, 2.1rem)/1.1 var(--font); letter-spacing: -0.02em; color: var(--nuit); text-wrap: balance; }
.wah-entete .we-promise { grid-column: 1 / -1; font-size: 1rem; line-height: 1.5; color: var(--encre-douce); max-width: 60ch; text-wrap: balance; }
/* « Voir toute la rubrique » : lien contour en pilule, comme « Plus d'actus ! » */
.wah-entete .we-all { grid-row: 1; grid-column: 2; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border: 2px solid var(--nuit); border-radius: 40px; color: var(--nuit); font: 700 0.9rem/1.2 var(--font); white-space: nowrap; transition: background 0.25s, color 0.25s; }
.wah-entete .we-all:hover { background: var(--nuit); color: var(--blanc); }
.wah-entete .we-all::after, .wah-entete .we-sub::after { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform 0.35s var(--ease), opacity 0.2s; }
.wah-entete .we-all:hover::after { transform: translateX(4px); }
.wah-entete .we-cols { columns: 2; column-gap: 44px; }
.wah-entete .we-cols > * { break-inside: avoid; }
.wah-entete .we-group + .we-group { margin-top: 24px; }
/* Groupes : intitulé sur filet bleu nuit, marqué d'une pastille de peinture (comme les colonnes de la setlist) */
.wah-entete .we-group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; padding-bottom: 9px; border-bottom: 3px solid var(--nuit); font: 700 0.9rem/1.3 var(--font); letter-spacing: 0.02em; color: var(--nuit); }
.wah-entete .we-group h3::before { content: ""; flex: none; width: 26px; height: 10px; border-radius: 8px 3px 9px 4px; background: var(--cyan); }
.wah-entete .we-group:nth-child(3n+2) h3::before { background: var(--lilas); }
.wah-entete .we-group:nth-child(3n+3) h3::before { background: rgb(255 0 0 / 0.7); }
/* Liens : lignes filetées, flèche à droite ; au survol le titre se barre d'un trait de pinceau, comme dans la setlist */
.wah-entete .we-sub { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; column-gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--filet); color: var(--nuit); font: 600 0.98rem/1.35 var(--font); }
.wah-entete .we-group .we-sub { font-weight: 500; }
.wah-entete .we-sub > span { display: grid; gap: 2px; }
.wah-entete .we-sub b { justify-self: start; font-weight: inherit; background: var(--we-trait, var(--trait-cyan)) no-repeat 0 0.585em / 0% 0.6em; /* sous la première ligne, même sur deux lignes */ -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 0.55s var(--ease); }
.wah-entete .we-sub small { font: 500 0.82rem/1.4 var(--font); color: var(--encre-douce); }
.wah-entete .we-sub::after { opacity: 0.45; }
.wah-entete .we-sub:hover b, .wah-entete .we-sub:focus-visible b, .wah-entete .we-sub[aria-current="page"] b { background-size: 100% 0.6em; }
.wah-entete .we-sub:hover::after, .wah-entete .we-sub:focus-visible::after, .wah-entete .we-sub[aria-current="page"]::after { opacity: 1; transform: translateX(4px); }
.wah-entete .we-panel li:nth-child(3n+1) { --we-trait: var(--trait-cyan); }
.wah-entete .we-panel li:nth-child(3n+2) { --we-trait: var(--trait-lilas); }
.wah-entete .we-panel li:nth-child(3n+3) { --we-trait: var(--trait-rouge); }
/* Parcours en étapes (rubrique marquée « wah-etapes ») : numéros comme ceux de la setlist */
.wah-entete .we-steps { counter-reset: q; max-width: 36rem; }
.wah-entete .we-steps li { counter-increment: q; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; border-bottom: 1px solid var(--filet); }
.wah-entete .we-steps li::before { content: counter(q, decimal-leading-zero); font: 600 0.82rem/1 var(--font); color: var(--encre-douce); font-variant-numeric: tabular-nums; }
.wah-entete .we-steps .we-sub { border-bottom: 0; }
/* L'illustration au trait se pose sur la feuille, en bas à droite ; trois tailles au choix dans Apparence › Menus */
.wah-entete .we-art { --art-h: 260px; position: relative; align-self: end; display: grid; place-items: end center; width: 100%; height: var(--art-h); margin-bottom: 32px; }
.wah-entete .we-art.we-petite { --art-h: 190px; }
.wah-entete .we-art.we-grande { --art-h: 330px; }
.wah-entete .we-art img { position: relative; display: block; width: 100%; max-width: none; height: var(--art-h); margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; object-fit: contain; object-position: bottom center; }

/* ---------- Recherche : la pilule de l'accueil, posée sur le mur ---------- */
.wah-entete .we-search-layer { position: absolute; inset: 0 0 auto 0; z-index: 8; background: var(--nuit); padding: 14px clamp(16px, 4vw, 56px) 16px; transform: translateY(-101%); visibility: hidden; transition: transform 0.32s var(--ease), visibility 0s linear 0.32s; box-shadow: 0 24px 34px -26px rgb(0 0 30 / 0.8); }
.wah-entete .we-search-layer.we-open { transform: none; visibility: visible; transition: transform 0.32s var(--ease), visibility 0s; }
.wah-entete .we-search-row { display: flex; align-items: center; gap: 10px; min-height: 54px; max-width: 1328px; margin: 0 auto; padding: 5px 5px 5px 24px; border-radius: 40px; background: var(--blanc); transition: box-shadow 0.3s; }
.wah-entete .we-search-row:focus-within { box-shadow: 0 0 0 4px var(--cyan); }
.wah-entete .we-search-row input { flex: 1; min-width: 0; height: auto; margin: 0; font: 500 1.05rem/1.2 var(--font); color: var(--nuit); border: 0; border-radius: 0; padding: 10px 0; background: none; box-shadow: none; -webkit-appearance: none; appearance: none; caret-color: var(--violet); }
.wah-entete .we-search-row input::placeholder { color: #5c5c8a; opacity: 1; }
.wah-entete .we-search-row input:focus-visible { outline: none; }
.wah-entete .we-go-btn { flex: none; height: 44px; padding: 0 22px; border: 0; border-radius: 40px; background: var(--nuit); color: var(--cyan); font: 700 0.92rem/1 var(--font); cursor: pointer; transition: background 0.25s, color 0.25s; }
.wah-entete .we-go-btn:hover { background: var(--cyan); color: var(--nuit); }
.wah-entete .we-close-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 2px solid var(--filet); border-radius: 40px; background: var(--blanc); color: var(--nuit); cursor: pointer; }
.wah-entete .we-close-btn svg { width: 20px; height: 20px; }

/* ---------- Largeurs intermédiaires : la recherche se réduit à sa loupe ---------- */
@media (max-width: 1320px) {
  .wah-entete .we-search-btn { padding: 0; width: 44px; justify-content: center; }
  .wah-entete .we-search-btn .we-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---------- Mobile et tablette : sous 1 220 px, avant que la barre ne déborde ---------- */
.wah-entete .we-overlay { display: none; }
@media (max-width: 1220px) {
  .wah-entete .we-bar { padding: 12px clamp(16px, 4vw, 56px); min-height: 72px; gap: 10px; }
  .wah-entete .we-logo img { height: 38px; }
  .wah-entete .we-nav { display: none; }
  .wah-entete .we-search-btn { margin-left: auto; }
  /* Bouton « Menu » : pilule contour cyan, comme sur la maquette d'accueil */
  .wah-entete .we-menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 2px solid var(--cyan); border-radius: 40px; background: none; color: var(--cyan); font: 600 0.9rem/1 var(--font); cursor: pointer; }
  .wah-entete .we-menu-btn svg { width: 18px; height: 18px; }
  .wah-entete .we-search-layer { padding: 12px clamp(16px, 4vw, 56px) 14px; }
  .wah-entete .we-search-row { padding-left: 18px; }
  .wah-entete .we-search-row .we-go-btn { display: none; }
  .wah-entete .we-overlay { display: grid; grid-template-rows: auto minmax(0, 1fr); position: fixed; inset: var(--wp-admin--admin-bar--height, 0px) 0 0 0; z-index: 99995; background: var(--nuit); color: var(--blanc); clip-path: circle(0 at calc(100% - 52px) 36px); visibility: hidden; transition: clip-path 0.5s var(--ease), visibility 0s linear 0.5s; }
  .wah-entete .we-overlay.we-open { clip-path: circle(150% at calc(100% - 52px) 36px); visibility: visible; transition: clip-path 0.5s var(--ease), visibility 0s; }
  .wah-entete .we-m-head { display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(16px, 4vw, 56px); min-height: 72px; }
  .wah-entete .we-m-head img { display: block; height: 38px; width: auto; }
  .wah-entete .we-m-head .we-close-btn { background: none; border-color: var(--cyan); color: var(--cyan); }
  .wah-entete .we-m-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px clamp(16px, 4vw, 56px) 28px; display: grid; gap: 16px; align-content: start; }
  .wah-entete .we-m-search { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 5px 0 18px; border-radius: 40px; background: var(--blanc); }
  .wah-entete .we-m-search input { flex: 1; min-width: 0; height: auto; margin: 0; border: 0; padding: 0; background: none; box-shadow: none; -webkit-appearance: none; appearance: none; font: 500 1rem/1.2 var(--font); color: var(--nuit); }
  .wah-entete .we-m-search input::placeholder { color: #5c5c8a; opacity: 1; }
  .wah-entete .we-m-search input:focus-visible { outline: none; }
  .wah-entete .we-m-search:focus-within { box-shadow: 0 0 0 4px var(--cyan); }
  .wah-entete .we-m-search button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 40px; background: var(--nuit); color: var(--cyan); cursor: pointer; }
  .wah-entete .we-m-search button svg { width: 18px; height: 18px; }
  .wah-entete .we-m-list { border-top: 1px solid rgb(196 193 255 / 0.25); }
  .wah-entete .we-m-list > li { border-bottom: 1px solid rgb(196 193 255 / 0.25); }
  .wah-entete .we-acc-btn, .wah-entete .we-m-direct { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 12px 2px 14px; margin: 0; background: none; border: 0; color: var(--blanc); font: 700 1.25rem/1.25 var(--font); letter-spacing: -0.01em; text-align: left; cursor: pointer; }
  .wah-entete .we-acc-btn .we-t { position: relative; isolation: isolate; }
  /* Rubrique en cours : un trait de pinceau cyan sous le mot */
  .wah-entete .we-acc-btn .we-t .we-stabilo { left: -2px; width: calc(100% + 4px); bottom: -6px; height: 8px; color: var(--cyan); clip-path: inset(0 0 0 0); }
  .wah-entete .we-pm { flex: none; width: 18px; height: 18px; color: var(--cyan); transition: transform 0.3s var(--ease); }
  .wah-entete .we-acc-btn[aria-expanded="true"] .we-pm { transform: rotate(45deg); }
  .wah-entete .we-acc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.35s var(--ease), visibility 0s linear 0.35s; }
  .wah-entete .we-acc-panel.we-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.35s var(--ease), visibility 0s; }
  .wah-entete .we-acc-panel > div { overflow: hidden; }
  .wah-entete .we-m-links { padding: 0 0 16px; display: grid; gap: 0; }
  .wah-entete .we-m-links a { display: grid; align-content: center; gap: 1px; min-height: 44px; padding: 8px 0 8px 22px; position: relative; color: #ffffff; font: 500 1rem/1.35 var(--font); }
  .wah-entete .we-m-links a::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 5px; margin-top: -3px; border-radius: 5px 2px 6px 2px; background: var(--violet); transition: width 0.3s var(--ease); }
  .wah-entete .we-m-links a:hover::before, .wah-entete .we-m-links a[aria-current="page"]::before { width: 16px; background: var(--cyan); }
  .wah-entete .we-m-links a small { font: 400 0.85rem/1.35 var(--font); color: var(--lavande-2); }
  .wah-entete .we-m-links a.we-m-rubrique { color: var(--cyan); font-weight: 700; padding-left: 0; }
  .wah-entete .we-m-links a.we-m-rubrique::before { display: none; }
  .wah-entete .we-m-links a[aria-current="page"] { color: var(--cyan); }
  .wah-entete .we-m-group { padding: 12px 0 4px; font: 700 0.85rem/1.3 var(--font); letter-spacing: 0.02em; color: var(--lavande-2); }
  .wah-entete .we-m-foot { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .wah-entete .we-m-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--lavande-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 5px; }
}
@media (max-width: 480px) {
  .wah-entete .we-search-btn { display: none; }
  .wah-entete .we-menu-btn { margin-left: auto; }
}

/* Fil d'Ariane des pages Divi : prolonge le mur bleu nuit de la barre, aligné sur la largeur de contenu de Divi (.container) */
.wah-ariane { background: #000058; font: 400 14px/1.5 "Poppins", Helvetica, Arial, sans-serif; color: #c4c1ff; }
.wah-ariane ol { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0 auto; padding: 2px 0 16px; list-style: none; }
.wah-ariane li { padding: 0; margin: 0; }
.wah-ariane li + li::before { content: "/"; margin: 0 10px; color: #8265ff; font-weight: 600; }
.wah-ariane a { color: #fff; font-weight: 500; text-decoration: underline; text-decoration-color: #5fffff; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color 0.3s; }
.wah-ariane a:hover { text-decoration-color: #dc87ff; }
.wah-ariane a:focus-visible { outline: 3px solid #ff0000; outline-offset: 3px; border-radius: 4px; }
.wah-ariane [aria-current="page"] { color: #c4c1ff; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .wah-entete *, .wah-entete *::before, .wah-entete *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
