/* Extensions AD (fil d'actu, messagerie, notifications, membres, réactions) dans le style du thème.
   Les couleurs sont converties dans ad-couleurs.css (généré) ; ici, les variables, polices et formes. */

:root {
  --ad-primary-color: var(--or); --ad-primary-hover: var(--or-hi);
  --ad-content-background: var(--card); --ad-content-alt-background: var(--inset);
  --ad-border-color: rgba(255,255,255,.1); --ad-headings-color: var(--txt); --ad-alternate-text-color: var(--mut);
  --bb-primary-color: var(--or); --bb-primary-button-background-hover: var(--or-hi);
  --bb-primary-button-border-hover: var(--or-hi); --bb-primary-button-text-hover: #1a1004;
}
body.wp-theme-aventuriers-des-12 .reactions-bar, body.wp-theme-aventuriers-des-12 .reactions-popover { --reactions-active-bg: rgba(245,166,35,.14); }
body.wp-theme-aventuriers-des-12 .adm-app {
  --adm-accent: var(--or); --adm-text-1: var(--txt); --adm-text-2: var(--mut); --adm-border: var(--line);
  --adm-card-bg: var(--card); --adm-card-radius: 16px; --adm-online-color: var(--ok);
}

/* Polices : titres en Lexend, texte en Nunito Sans comme le reste du site */
body.wp-theme-aventuriers-des-12 :is(.actv, .msgn, .adn, .adm-app, .reactions-popover, .reactions-who-panel) { font-family: var(--f-txt); }
body.wp-theme-aventuriers-des-12 :is(.msgn__title, .adn__title, .actv h2, .actv h3, .msgn h2, .msgn h3, .adn h2, .adm-app h2, .adm-app h3) { font-family: var(--f-titre); color: var(--txt); }

/* Champs de saisie */
body.wp-theme-aventuriers-des-12 :is(.actv, .msgn, .adn, .adm-app) :is(input[type=text], input[type=search], input[type=email], input[type=url], textarea, select) {
  background: var(--inset); color: var(--txt); border: 1px solid var(--line); border-radius: 11px;
}
body.wp-theme-aventuriers-des-12 :is(.actv, .msgn, .adn, .adm-app) :is(input, textarea, select):focus {
  outline: none; border-color: rgba(245,166,35,.6); box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}
body.wp-theme-aventuriers-des-12 :is(.actv, .msgn, .adn, .adm-app) :is(input, textarea)::placeholder { color: var(--mut2); }

/* Fil d'actu : aligné sur le titre de la page, cartes comme .ad12-card */
body.wp-theme-aventuriers-des-12 .actv:not(.actv--compact, .actv--cards) { max-width: 720px; margin: 18px 0 0; padding: 0; }
body.wp-theme-aventuriers-des-12 :is(.actv__compose, .actv__item, .actv__card) { border-radius: 16px; border: 1px solid var(--line); box-shadow: none; }
body.wp-theme-aventuriers-des-12 .actv__submit-btn { border-radius: 11px; font-weight: 800; }
body.wp-theme-aventuriers-des-12 .actv__empty { color: var(--mut); }

/* Messagerie */
body.wp-theme-aventuriers-des-12 .msgn { background: transparent; }
body.wp-theme-aventuriers-des-12 .msgn__split { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: none; }
body.wp-theme-aventuriers-des-12 .msgn__title { font-size: 22px; }
body.wp-theme-aventuriers-des-12 .msgn__tab { border-radius: 99px; font-weight: 700; }

/* Notifications : même titre et même largeur que les autres pages */
body.wp-theme-aventuriers-des-12 .adn { max-width: 720px; margin: 0; padding: 0 0 60px; }
body.wp-theme-aventuriers-des-12 .adn__title { font: 700 30px/1.1 var(--f-titre); }
body.wp-theme-aventuriers-des-12 .adn__list { border-radius: 16px; }
body.wp-theme-aventuriers-des-12 .adn__settings-link { color: var(--or); font-weight: 800; }

/* Annuaire */
body.wp-theme-aventuriers-des-12 .adm-filter-btn, body.wp-theme-aventuriers-des-12 .adm-filterbar__search-wrap { border-radius: 11px; }

/* En-tête : état des serveurs de jeu, même rond que les icônes du compte */
.ad12-serveurs { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 99px;
  background: var(--card); border: 1px solid var(--line); color: var(--mut); cursor: pointer; }
.ad12-serveurs:hover { color: var(--txt); border-color: rgba(245,166,35,.35); }
.ad12-srv-titre { margin: 0 28px 10px 0; font: 600 20px/1.25 var(--f-titre); color: #fff; }
.ad12-srv-ligne { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.ad12-srv-ligne i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #8a8a8a; }
.ad12-srv-ligne i.Up { background: #2e9e4f; } .ad12-srv-ligne i.Maintenance { background: #f08c00; }
.ad12-srv-ligne i.Unstable { background: #e6b800; } .ad12-srv-ligne i.Down { background: #d64545; }
.ad12-srv-ligne span { flex: 1; min-width: 0; } .ad12-srv-ligne.mien span { font-weight: 800; }
.ad12-srv-ligne small { color: var(--mut); }
.ad12-srv-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.ad12-srv-actions .ad12-btn { padding: 8px 14px; font-size: 13px; }

/* En-tête : icônes messagerie et notifications à gauche du rond du compte (comme sur AD) */
.ad12-icones { display: flex; align-items: center; gap: 6px; }
.ad12-icones .menu-item-has-children { position: relative; }
.ad12-icones .notification-link { display: grid; place-items: center; position: relative; width: 44px; height: 44px; border-radius: 99px;
  background: var(--card); border: 1px solid var(--line); color: var(--mut); }
.ad12-icones .notification-link:hover, .ad12-icones .selected > .notification-link { color: var(--txt); border-color: rgba(245,166,35,.35); }
.ad12-icones .notification-link > span { display: grid; place-items: center; }
body.wp-theme-aventuriers-des-12 #header-messages-dropdown-elem .notification-link svg { width: 20px; height: 20px; color: currentColor; }
/* Cloche : icône-police BuddyBoss absente ici, redessinée en masque SVG */
.ad12-icones .bb-icon-bell { display: block; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center / contain no-repeat; }
.ad12-icones .notification-footer .bb-icon-angle-right { display: none; }
.ad12-icones .count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--or); color: #1a1004; font-size: 10px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }

/* Aperçu déroulant */
.ad12-icones .notification-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 340px; max-width: calc(100vw - 32px);
  background: var(--card-hi); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.45); overflow: hidden; }
.ad12-icones .selected > .notification-dropdown { display: block; }
.ad12-icones .notification-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ad12-icones .notification-header .title { margin: 0; font: 600 15px var(--f-titre); color: var(--txt); }
.ad12-icones .notification-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.ad12-icones .notification-list li a { color: var(--txt); }
.ad12-icones .notification-list :is(.adn-topbar-list__empty, .msgn-topbar-list__empty) { padding: 22px 16px; font-size: 13px; text-align: center; }
.ad12-icones .notification-footer { padding: 10px 16px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; font-weight: 800; }
.ad12-icones .notification-footer a { color: var(--or); }
.ad12-icones .adn-topbar-mark-all button { background: none; border: 0; color: var(--or); font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }

/* Titre de page : place pour les trois icônes en plus du compte */
body.logged-in :is(.ad12-content > .ad12-h1:first-child, #ad12-vue:first-child > .ad12-stack:first-child > :first-child) { padding-right: 404px; }
@media (max-width: 860px) {
  .ad12-icones .notification-link, .ad12-serveurs { width: 40px; height: 40px; }
  .ad12-icones .notification-dropdown { position: fixed; top: calc(64px + var(--barre-wp)); left: 16px; right: 16px; width: auto; max-width: none; }
}

/* Modification du profil (ad-membre) : formulaire en carte, champs et boutons du thème */
body.wp-theme-aventuriers-des-12 .show-form { max-width: 720px; margin: 8px 0 40px; }
body.wp-theme-aventuriers-des-12 .avtr-mp-form { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
body.wp-theme-aventuriers-des-12 .avtr-mp-fields > .avtr-mp-field { padding: 0 !important; margin: 0 0 20px; }
body.wp-theme-aventuriers-des-12 .avtr-mp-field .avtr-mp-label label { color: var(--txt); font: 700 14px var(--f-titre); margin: 0 0 7px; }
body.wp-theme-aventuriers-des-12 .avtr-mp-field p.description { color: var(--mut); font-style: normal; font-size: 12.5px; margin: 0 0 8px; }
body.wp-theme-aventuriers-des-12 .avtr-mp-field :is(input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=date], input[type=password], textarea, select) {
  background: var(--inset); color: var(--txt); border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; font: 15px/1.4 var(--f-txt); box-shadow: none;
}
body.wp-theme-aventuriers-des-12 .avtr-mp-field textarea { min-height: 110px; }
body.wp-theme-aventuriers-des-12 .avtr-mp-field :is(input, textarea, select):focus { outline: none; border-color: rgba(245,166,35,.6); box-shadow: 0 0 0 3px rgba(245,166,35,.15); }
body.wp-theme-aventuriers-des-12 .avtr-mp-field :is(input, textarea)::placeholder { color: var(--mut2); }
body.wp-theme-aventuriers-des-12 .avtr-mp-field :is(input[type=checkbox], input[type=radio]) { accent-color: var(--or); }
body.wp-theme-aventuriers-des-12 :is(ul.ad-mp-radio-list, ul.ad-mp-checkbox-list) li { font-size: 14px; color: var(--txt); }
body.wp-theme-aventuriers-des-12 .avtr-mp-conditional { border-left-color: var(--line); }
body.wp-theme-aventuriers-des-12 .avtr-mp-canal-group__fields { border-color: var(--line); border-radius: 11px; }
body.wp-theme-aventuriers-des-12 .avtr-mp-canal-row { border-top-color: var(--line); }
body.wp-theme-aventuriers-des-12 .avtr-mp-canal-row__label { background: var(--inset); border-right-color: var(--line); }
body.wp-theme-aventuriers-des-12 .avtr-mp-canal-row__label label { color: var(--mut); }
body.wp-theme-aventuriers-des-12 .avtr-mp-form-submit { border-top: 1px solid var(--line); margin-top: 8px; padding: 18px 0 0; }
body.wp-theme-aventuriers-des-12 .avtr-mp-form-submit .button-primary {
  background: var(--or); color: #1a1004; border: 0; border-radius: 11px; padding: 12px 22px; font: 800 15px var(--f-txt); cursor: pointer;
}
body.wp-theme-aventuriers-des-12 .avtr-mp-form-submit .button-primary:hover { background: var(--or-hi); }
body.wp-theme-aventuriers-des-12 .avtr-mp-notice-success { background: rgba(80,200,120,.12); color: var(--ok); border-radius: 11px; }
body.wp-theme-aventuriers-des-12 .avtr-mp-notice-error { background: rgba(255,107,74,.12); color: #ff8a6b; border-radius: 11px; }
@media (max-width: 600px) { body.wp-theme-aventuriers-des-12 .avtr-mp-form { padding: 16px; } }
body.wp-theme-aventuriers-des-12 :is(ul.avtr-mp-radio-list, ul.avtr-mp-checkbox-list) { list-style: none; margin: 0; padding: 0; }
body.wp-theme-aventuriers-des-12 :is(ul.avtr-mp-radio-list, ul.avtr-mp-checkbox-list) li { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; color: var(--txt); }
body.wp-theme-aventuriers-des-12 :is(ul.avtr-mp-radio-list, ul.avtr-mp-checkbox-list) li::marker { content: ""; }
body.wp-theme-aventuriers-des-12 :is(ul.avtr-mp-radio-list, ul.avtr-mp-checkbox-list) label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
body.wp-theme-aventuriers-des-12 ul.avtr-mp-radio-list { display: flex; flex-wrap: wrap; gap: 8px 22px; }
body.wp-theme-aventuriers-des-12 ul.avtr-mp-checkbox-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 20px; }

/* Barre du haut sur téléphone : logo réduit puis masqué pour laisser la place au bouton des serveurs */
@media (max-width: 420px) {
  .ad12-top img { height: 28px; }
  .ad12-main .ad12-entete { gap: 6px; }
  .ad12-entete .ad12-btn { padding: 8px 10px; }
}
@media (max-width: 359px) { .ad12-top a { display: none; } }

/* ── Événements (ad-events) et placement de quête aux couleurs d'AD12 ─────────────────────────────
 * ad-events est partagé avec AD (thème clair) : on n'y touche pas, on redéfinit ses variables ici
 * et on recolore les quelques teintes claires qu'il écrit en dur. Préfixe « body » : passe devant
 * ses feuilles quel que soit l'ordre de chargement. Idem pour le placement (lad12). */
body {
  --ade-accent: var(--or); --ade-accent-dark: var(--or-hi); --ade-accent-light: rgba(245,166,35,.14);
  --ade-card-bg: var(--card); --ade-card-border: rgba(255,255,255,.09); --ade-border: rgba(255,255,255,.1);
  --ade-text-primary: var(--txt); --ade-dark: var(--txt); --ade-text-secondary: #b9c5d3; --ade-mid: #b9c5d3;
  --ade-text-muted: var(--mut); --ade-muted: var(--mut); --ade-bg: var(--inset); --ade-shadow: 0 8px 28px rgba(0,0,0,.35);
}
body .ade-hero, body .ade-single__card { background: var(--card); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
body .ade-single__hero-cta { background: var(--card); }
body .ade-hero__cta-bar { border-top-color: var(--line); }
body .ade-hero__illustration { background: radial-gradient(circle at 70% 30%, rgba(245,166,35,.16), transparent 60%), linear-gradient(135deg, #16283b, #0f1c2a); }
body .ade-single__desc { color: #c3cdd9; }
body .ade-single__desc strong, body .ade-single__desc b { color: var(--txt); }
body .ade-single__card-title, body .ade-single__info-list dt { color: var(--mut); }
body .ade-single__section--note { background: rgba(245,166,35,.08); border-color: rgba(245,166,35,.3); color: var(--txt); }
body .ade-single__resource-link { color: var(--txt); }
body a.ade-single__resource-link:hover { background: var(--card-hi); color: var(--txt); }
body .ade-single__resource-badge { background: rgba(167,139,250,.16); color: #c4b5fd; }

/* Boutons : orange d'AD12, texte foncé (le blanc sur orange se lit mal) */
body .ade-reg-btn--register, body .ade-reg-btn--register:hover,
body .ade-reg-btn.ade-join-btn--open, body .ade-reg-btn.ade-join-btn--open:hover,
body .ade-guest-banner__btn--primary, body .ade-guest-banner__btn--primary:hover { color: #1a1004; }
body .ade-reg-btn--register:hover, body .ade-reg-btn.ade-join-btn--open:hover { background: var(--or-hi); box-shadow: 0 4px 14px rgba(245,166,35,.3); }
body .ade-reg-btn--login { background: var(--card-hi); color: var(--txt); border: 1px solid rgba(255,255,255,.12); }
body .ade-reg-btn--login:hover { background: #1c3249; color: var(--txt); }
body .ade-reg-btn--cancel:hover { background: rgba(239,68,68,.14); color: #fca5a5; border-color: rgba(239,68,68,.4); }
body .ade-hcta__more-btn, body .ade-hero__cta-bar .ade-cal-picker summary,
body [data-ade-hero-cta] .ade-cal-picker summary, body .ade-hcta__share-btn { background: var(--inset); border-color: rgba(255,255,255,.12); color: var(--txt); }
body .ade-hcta__more-btn:hover, body .ade-hero__cta-bar .ade-cal-picker summary:hover,
body [data-ade-hero-cta] .ade-cal-picker summary:hover, body .ade-hcta__share-btn:hover { background: var(--card-hi); border-color: rgba(255,255,255,.2); color: var(--txt); }
body .ade-hcta__more-menu { background: var(--card-hi); border-color: rgba(255,255,255,.12); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
body .ade-hcta__unreg, body .ade-hcta__unreg:hover { color: #fca5a5 !important; }
body .ade-hcta__unreg:hover { background: rgba(239,68,68,.12); }
body .ade-hcta__label { color: var(--ok); }
body .ade-hcta__sub { color: var(--mut); }
body .ade-hero--live .ade-hero__badge { background: rgba(239,68,68,.16); color: #fca5a5; }
body .ade-my-events__item--live { background: rgba(239,68,68,.08); }
body .ade-my-events__status--registered, body .ade-my-events__actions .ade-reg-status { background: rgba(74,222,128,.14); color: #86efac; }
body .ade-my-events__status--waitlist { background: rgba(245,166,35,.14); color: #fcd34d; }
body .ade-my-events__status--checked { background: rgba(96,165,250,.14); color: #93c5fd; }

/* Formulaire « Proposer un rendez-vous » (ad-events) et son champ Serveur (lad12) */
body .ade-ce { --ade-ce-border: rgba(255,255,255,.1); --ade-ce-soft: rgba(255,255,255,.04); --ade-ce-accent: var(--or); --ade-ce-danger: #fca5a5; --ade-ce-success: var(--ok); }
body .ade-ce-form, body .ade-ce-mine { background: var(--card); border-color: rgba(255,255,255,.08); border-radius: 16px; }
body .ade-ce-form__title { font-family: var(--f-titre); font-weight: 600; color: var(--txt); }
body .ade-ce-field span { color: var(--txt); }
body .ade-ce-field em, body .ade-ce-hint { color: var(--mut); opacity: 1; }
body .ade-ce-field input, body .ade-ce-field textarea, body .ade-ce-field select {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 11px; border: 1px solid rgba(255,255,255,.1);
  background-color: var(--inset); color: var(--txt); font: 600 14px var(--f-txt); color-scheme: dark;
}
body .ade-ce-field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b9bb0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
body .ade-ce-field select option { background: var(--card); color: var(--txt); }
body .ade-ce-field input:focus, body .ade-ce-field textarea:focus, body .ade-ce-field select:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(245,166,35,.18); }
body .ade-ce-btn { border-radius: 11px; background: var(--inset); color: var(--txt); }
body .ade-ce-btn--primary { background: var(--or); border-color: var(--or); color: #1a1004; font-weight: 800; }
body .ade-ce-btn--primary:hover { background: var(--or-hi); border-color: var(--or-hi); }
body .ade-ce-mine__info a { color: var(--or); }

/* Placement de quête (lad12) : mêmes variables, valeurs sombres */
body .lad12-placement, body .lad12-pl-fenetre {
  --pl-texte: var(--txt); --pl-doux: #9fb0c3; --pl-fond: var(--card); --pl-fond-2: var(--inset);
  --pl-bord: rgba(255,255,255,.1); --pl-accent: var(--or); --pl-ok: var(--ok); --pl-attente: #f59e0b; --pl-vide: #fb7185; --pl-moi: #a78bfa;
}
body .lad12-pl h2, body .lad12-pl-fenetre h2 { font-family: var(--f-titre); font-weight: 600; color: var(--txt); }
body .lad12-pl-compteur strong { color: var(--txt); }
body .lad12-pl-compteur.ok strong { color: var(--ok); }
body .lad12-pl-provisoire { background: rgba(245,166,35,.08); border-color: rgba(245,166,35,.3); color: #e9d9bb; }
body .lad12-pl-carte { box-shadow: 0 8px 28px rgba(0,0,0,.4); }
body .lad12-pl-dalle--ouverte { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--or); }
body .lad12-pl-lien { color: var(--or); }
body .lad12-pl-bouton { color: #1a1004; font-weight: 800; }
body .lad12-pl-bouton:not(.lad12-pl-bouton--discret):hover { background: var(--or-hi); }
body .lad12-pl-bouton--discret { color: var(--txt); }
body .lad12-pl-badge--ok { background: rgba(74,222,128,.14); color: #86efac; }
body .lad12-pl-badge--attente { background: rgba(245,158,11,.16); color: #fcd34d; }
body .lad12-pl-badge--vide { background: rgba(251,113,133,.16); color: #fda4af; }
body .lad12-pl-alerte, body .lad12-pl-erreur { background: rgba(251,113,133,.14); color: #fda4af; }
body .lad12-pl-manque, body .lad12-pl-perso-cases label small { color: #fcd34d; }
body .lad12-pl-fond { background: rgba(4,9,15,.72); }
body .lad12-pl-fenetre { background: var(--card); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 70px rgba(0,0,0,.6); }
body .lad12-pl-actions { background: var(--card); }
body .lad12-placement input[type=checkbox], body .lad12-pl-fenetre input[type=checkbox] { accent-color: var(--or); }
/* ad-events se sert aussi de sa couleur de texte comme fond sombre : on lui redonne un fond sombre. */
body .ade-countdown__unit { background: var(--inset); border: 1px solid rgba(255,255,255,.08); }
body .ade-page-header, body .ade-single__hero, body .ade-guest-banner, body .ade-replay__btn,
body .ade-avatar-stack__extra, body .ade-reg-btn.ade-join-btn--late { background-color: #0a121c; color: var(--txt); }
body .ade-pill--active { background: var(--or); border-color: var(--or); color: #1a1004; }
body .ade-ed-hero .ade-reg-btn--register, body .ade-ed-row .ade-reg-btn--register, body .ade-ed-single-hero .ade-reg-btn--register { background: var(--or); color: #1a1004; }

/* Menus « Ajouter à l'agenda » et « Partager » (ad-events) */
body .ade-cal-menu { background: var(--card-hi); border-color: rgba(255,255,255,.12); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
body .ade-cal-menu a { color: var(--txt); border-bottom-color: var(--line); }
body .ade-cal-menu a:hover { background: rgba(255,255,255,.05); color: var(--txt); }
body .lad12-placement, body .lad12-pl-fenetre { color-scheme: dark; }

/* Paramètres du compte (ad-membre) : les selects « Date et heure » gardaient un texte noir */
body.wp-theme-aventuriers-des-12 .avtr-settings__form :is(input[type=email], input[type=password], input[type=text]),
body.wp-theme-aventuriers-des-12 .avtr-settings__panel select {
  background-color: var(--inset); color: var(--txt); border: 1px solid rgba(255,255,255,.1); border-radius: 11px; color-scheme: dark;
}
body.wp-theme-aventuriers-des-12 .avtr-settings__panel select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b9bb0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
body.wp-theme-aventuriers-des-12 .avtr-settings__panel select option { background: var(--card); color: var(--txt); }
body.wp-theme-aventuriers-des-12 .avtr-settings__form :is(input, select):focus,
body.wp-theme-aventuriers-des-12 .avtr-settings__panel select:focus { outline: none; border-color: rgba(245,166,35,.6); box-shadow: 0 0 0 3px rgba(245,166,35,.15); }

/* Haut d'un événement sur téléphone. ad-events passe la grille à une colonne mais laisse l'image en
 * colonne 2 (grid-column: 2) : une colonne invisible élargit le bloc, qui est coupé à droite. Et sa
 * marge de 16 px s'ajoute à celle du site. Image vide (pas de visuel) : masquée plutôt que 200 px de gris. */
@media (max-width: 768px) {
  body .ad12-main .ade-container { padding-left: 0; padding-right: 0; }
  body .ade-hero { grid-template-columns: minmax(0, 1fr); }
  body .ade-hero > .ade-hero__illustration { grid-column: 1; grid-row: auto; }
  body .ade-hero > .ade-hero__body, body .ade-hero > .ade-hero__cta-bar { grid-row: auto; min-width: 0; }
  body .ade-hero__illustration:has(.ade-hero__placeholder) { display: none; }
  body .ade-hero__body { padding: 18px 18px 0; }
  body .ade-hero__cta-bar { padding: 12px 18px 16px; }
  body .ade-countdown { gap: 3px; }
  body .ade-countdown__unit { flex: 1 1 0; min-width: 0; padding: 8px 4px 6px; }
  body .ade-countdown__sep { padding: 0; }
}
