/* ══ CHARTE : pas d'ombre portée, bordure gris clair fine. ═════════════
   Cartes, blocs et encarts : --aaru-border-width solid --aaru-border (ou le
   même trait dessiné à l'intérieur par outline + outline-offset négatif,
   quand l'élément n'avait pas de bordure : aucun décalage de mise en page).
   Exceptions : contours de focus clavier ; éléments qui flottent PAR-DESSUS
   le contenu (menus, pop-ups, suggestions, bulle de filtres, contrôles et
   repères de carte, pastilles sur photo) : bordure fine + ombre très légère
   0 4px 12px rgba(11,11,12,.06) si l'élément ne se détache pas sans elle.
   Voir audits/ombres-vers-bordures.md. */
:root {
  /* ══ TOKENS DE COULEUR ══════════════════════════════════════════
     Deux themes, un seul jeu de noms. Le site public reste bleu de bout
     en bout : --brand et --accent y valent la meme valeur. L'Aaru Core
     redefinit --accent en terracotta dans son conteneur (voir plus bas),
     et rien d'autre ne bouge. Les composants ne posent plus de couleur
     d'accent en dur, ils lisent ces tokens.

     Regles : le texte pose sur un bouton d'accent est blanc, un corps de
     texte n'est jamais en accent, et une erreur ne se signale jamais par
     la seule couleur (icone plus texte), --error etant proche du
     terracotta. */
  --brand: #00509E;            /* ancre d'identite, logo et en-tete */
  --accent: #00509E;           /* accent interactif, bleu cote public */
  --accent-hover: #003D7A;
  --accent-active: #002A52;
  --accent-tint: #EDF4FF;      /* aplat leger de l'accent */
  --accent-ring: rgba(0, 80, 158, .35);
  /* Surface de bouton et de pastille active : un cran plus sombre que
     l'accent, pour que le texte blanc pose dessus tienne le 4,5:1 du
     petit texte. Cote public, c'est le bleu de marque. */
  --accent-btn: #00509E;
  --accent-btn-hover: #003D7A;

  /* Neutres communs aux deux themes */
  --ink: #0B0B0C;
  --navy: #002A52;
  --surface: #FFFFFF;
  --surface-2: #F6F6F6;
  --border: #ECECEC;

  /* Systeme : ne suit jamais l'accent */
  --success: #12A150;
  --error: #D64545;

  /* ── COULEURS ── */
  --aaru-primary: #00509e;
  --aaru-primary-dark: #003d7a;
  --aaru-primary-light: #2E8BE5;
  --aaru-black: #1F1F1F;
  --aaru-gray-text: #6A6E83;
  --aaru-gray-light: #A8B1CE;
  --aaru-bg: #FFFFFF;
  --aaru-white: #FFFFFF;
  --aaru-border: #D8D8D8;
  --aaru-border-width: 1.5px;
  --aaru-success: #2d9e6b;
  --aaru-error: #e03131;

  /* ── TYPOGRAPHIE ── */
  --aaru-font-head: 'Funnel Display', sans-serif;
  --aaru-font-body: 'Nunito', sans-serif;

  --aaru-h1: 48px;
  --aaru-h1-weight: 800;
  --aaru-h2: 32px;
  --aaru-h2-weight: 800;
  --aaru-h3: 22px;
  --aaru-h3-weight: 700;
  --aaru-body: 14px;
  --aaru-body-weight: 400;
  --aaru-label: 12px;
  --aaru-label-weight: 600;
  --aaru-caption: 11px;
  --aaru-caption-weight: 700;

  /* ── ESPACEMENTS ── */
  --aaru-space-section: 64px;
  --aaru-space-component: 32px;
  --aaru-space-inner: 16px;
  --aaru-space-small: 8px;

  /* ── COMPOSANTS ── */
  --aaru-radius-card: 12px;
  --aaru-radius-btn: var(--aaru-btn-m-radius);
  --aaru-radius-input: 8px;
  /* Charte : plus d'ombre portée. Jetons gardés (appelés ailleurs), valant none. */
  --aaru-shadow-card: none;
  --aaru-shadow-hover: none;

  /* ── LAYOUT ── */
  --aaru-max-width: 1440px;
  --aaru-padding-x: 40px;

  /* ── ÉCHELLE DE BOUTONS (S / M / L) ──
     Règle d'espacement de la charte, valable pour TOUT bouton du site :
       1. padding horizontal ≈ 2 x le padding vertical ;
       2. jamais de padding vertical supérieur à la moitié de l'horizontal ;
       3. gap texte / icône : 8px ;
       4. icône ≈ 90% de la taille du texte (0.9em).
     M est la taille par défaut. S sert aux actions secondaires et aux barres
     d'outils denses. L est réservée aux CTA de hero.
     Les <button> gardent le plancher tactile min-height:44px (voir plus bas),
     donc une taille S posée sur un <button> reste haute de 44px. */
  --aaru-btn-gap: 8px;
  --aaru-btn-weight: 800;
  --aaru-btn-icon-scale: 0.9em;

  /* S : secondaire */
  --aaru-btn-s-py: 9px;
  --aaru-btn-s-px: 16px;
  --aaru-btn-s-radius: 9px;
  --aaru-btn-s-font: 13px;

  /* M : défaut (hauteur ~44px) */
  --aaru-btn-m-py: 12px;
  --aaru-btn-m-px: 22px;
  --aaru-btn-m-radius: 11px;
  --aaru-btn-m-font: 15px;
  --aaru-btn-m-height: 44px;

  /* L : CTA hero */
  --aaru-btn-l-py: 15px;
  --aaru-btn-l-px: 28px;
  --aaru-btn-l-radius: 12px;
  --aaru-btn-l-font: 16px;
}

/* ── CLASSES UTILITAIRES ── */

/* Titres */
.aaru-h1 { font-family: var(--aaru-font-head); font-size: var(--aaru-h1); font-weight: var(--aaru-h1-weight); color: var(--aaru-black); letter-spacing: -1px; line-height: 1.05; }
.aaru-h2 { font-family: var(--aaru-font-head); font-size: var(--aaru-h2); font-weight: var(--aaru-h2-weight); color: var(--aaru-black); letter-spacing: -0.5px; line-height: 1.15; }
.aaru-h3 { font-family: var(--aaru-font-head); font-size: var(--aaru-h3); font-weight: var(--aaru-h3-weight); color: var(--aaru-black); line-height: 1.3; }

/* Textes */
.aaru-body { font-family: var(--aaru-font-body); font-size: var(--aaru-body); font-weight: var(--aaru-body-weight); color: var(--aaru-black); line-height: 1.7; }
.aaru-label { font-family: var(--aaru-font-body); font-size: var(--aaru-label); font-weight: var(--aaru-label-weight); color: var(--aaru-gray-text); }
.aaru-caption { font-family: var(--aaru-font-body); font-size: var(--aaru-caption); font-weight: var(--aaru-caption-weight); text-transform: uppercase; letter-spacing: 1px; color: var(--aaru-gray-text); }

/* Boutons : la base porte la taille M (défaut de la charte) */
.aaru-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--aaru-btn-gap); padding: var(--aaru-btn-m-py) var(--aaru-btn-m-px); min-height: var(--aaru-btn-m-height); border-radius: var(--aaru-btn-m-radius); font-family: var(--aaru-font-body); font-size: var(--aaru-btn-m-font); font-weight: var(--aaru-btn-weight); line-height: 1.2; cursor: pointer; border: none; text-decoration: none; transition: background 0.2s, box-shadow 0.2s; }
.aaru-btn-primary { background: var(--aaru-primary); color: #fff; }
.aaru-btn-primary:hover { background: var(--aaru-primary-dark); }
.aaru-btn-secondary { background: var(--aaru-white); color: var(--aaru-black); border: 1.5px solid var(--aaru-border); }
.aaru-btn-secondary:hover { background: var(--aaru-bg); }
.aaru-btn-dark { background: var(--aaru-black); color: #fff; }
.aaru-btn-dark:hover { background: #333; }

/* Modificateurs de taille. .aaru-btn-sm / .aaru-btn-lg restent des alias
   des anciennes classes pour ne pas casser le markup existant. */
.aaru-btn-s, .aaru-btn-sm { padding: var(--aaru-btn-s-py) var(--aaru-btn-s-px); border-radius: var(--aaru-btn-s-radius); font-size: var(--aaru-btn-s-font); font-weight: var(--aaru-btn-weight); }
.aaru-btn-m { padding: var(--aaru-btn-m-py) var(--aaru-btn-m-px); min-height: var(--aaru-btn-m-height); border-radius: var(--aaru-btn-m-radius); font-size: var(--aaru-btn-m-font); font-weight: var(--aaru-btn-weight); }
.aaru-btn-l, .aaru-btn-lg { padding: var(--aaru-btn-l-py) var(--aaru-btn-l-px); border-radius: var(--aaru-btn-l-radius); font-size: var(--aaru-btn-l-font); font-weight: var(--aaru-btn-weight); }

/* Gap et taille d'icône communs à toutes les familles de boutons du site.
   Les boutons purement iconiques (carrés/ronds, voir liste d'exceptions en fin
   de fichier) sont exclus : leur icône porte sa propre taille. */
.aaru-btn, [class*="aaru-btn"], .btn, .ac-btn, .ec-btn-dark, .aa-btn,
.bcv-cta-btn, .bcv-hero2-btn, .ap-cta-btn, .etb-btn, .aaru-ty-btn {
  gap: var(--aaru-btn-gap);
}
.aaru-btn > i, .aaru-btn > svg,
.btn > i, .btn > svg,
.ac-btn > i, .ac-btn > svg,
.ec-btn-dark > i, .ec-btn-dark > svg,
.aa-btn > i, .aa-btn > svg,
.bcv-cta-btn > i, .bcv-cta-btn > svg,
.ap-cta-btn > i, .ap-cta-btn > svg,
.etb-btn > i, .etb-btn > svg,
.aaru-ty-btn > i, .aaru-ty-btn > svg {
  font-size: var(--aaru-btn-icon-scale);
  width: var(--aaru-btn-icon-scale);
  height: var(--aaru-btn-icon-scale);
  flex-shrink: 0;
}

/* Cartes */
.aaru-card { background: var(--aaru-white); border-radius: var(--aaru-radius-card); border: 1.5px solid #D8D8D8; }
.aaru-card:hover { transform: none; box-shadow: none; }

/* Inputs */
.aaru-input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--aaru-border); border-radius: var(--aaru-radius-input); font-family: var(--aaru-font-body); font-size: 14px; color: var(--aaru-black); background: var(--aaru-bg); outline: none; transition: border-color 0.15s; }
.aaru-input:focus { border-color: var(--aaru-primary); background: #fff; }

/* Badge */
.aaru-badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-family: var(--aaru-font-body); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.aaru-badge-primary { background: var(--aaru-primary); color: #fff; }
.aaru-badge-light { background: var(--aaru-primary-light); color: #fff; }
.aaru-badge-dark { background: var(--aaru-black); color: #fff; }
.aaru-badge-gray { background: var(--aaru-bg); color: var(--aaru-gray-text); }

/* Séparateur */
.aaru-divider { height: 1px; background: var(--aaru-border); }

/* Conteneur */
.aaru-container { max-width: var(--aaru-max-width); margin: 0 auto; padding-left: var(--aaru-padding-x); padding-right: var(--aaru-padding-x); }

/* Section */
.aaru-section { padding-top: var(--aaru-space-section); padding-bottom: var(--aaru-space-section); }

/* ── CORRECTIFS GLOBAUX UI/UX ── */

/* Corps de texte minimum 14px */
body, p, li, td, .entry-content { font-size: 14px; line-height: 1.7; }

/* H1 minimum 32px */
h1, .h1 { font-size: clamp(32px, 5vw, 48px); font-family: var(--aaru-font-head); font-weight: 800; letter-spacing: -0.5px; }

/* H2 minimum 24px */
h2, .h2 { font-size: clamp(24px, 3.5vw, 36px); font-family: var(--aaru-font-head); font-weight: 800; }

/* H3 minimum 18px */
h3, .h3 { font-size: clamp(18px, 2.5vw, 24px); font-family: var(--aaru-font-head); font-weight: 700; }

/* Tous les boutons et liens — min-height 44px pour l'accessibilité tactile */
button, [type="button"], [type="submit"], [type="reset"], .wp-block-button__link {
  min-height: 44px;
  cursor: pointer;
}

/* ══ THEME AARU CORE ════════════════════════════════════════════
   Portee au conteneur de l'espace createur, jamais au site public. Les
   alias historiques (--aaru-primary, --aaru-blue) sont remappes ici :
   tout composant qui les lisait deja suit l'accent sans etre reecrit. */
[data-aaru-theme="core"] {
  /* La terracotta a ete abandonnee : le Core est bleu de bout en bout, comme
     le site public. Le bloc reste en place, explicite, parce que les
     composants lisent ces tokens et leurs alias historiques. */
  --brand: #00509E;            /* logo, wordmark, en-tete d'identite */
  --accent: #00509E;
  --accent-hover: #003D7A;
  --accent-active: #002A52;
  --accent-tint: #EDF4FF;
  --accent-ring: rgba(0, 80, 158, .35);
  /* Blanc sur #00509E : 7,0:1, largement au-dessus du 4,5:1 du petit texte. */
  --accent-btn: #00509E;
  --accent-btn-hover: #003D7A;

  --aaru-primary: var(--accent);
  --aaru-primary-dark: var(--accent-hover);
  --aaru-blue: var(--accent);
}
/* Identite : elle ne prend jamais l'accent. */
[data-aaru-theme="core"] .ac-brand-text,
[data-aaru-theme="core"] .ac-logo { color: var(--ink); }
[data-aaru-theme="core"] .ac-brand-img,
[data-aaru-theme="core"] .ac-logo-img { filter: none; }
/* Anneau de focus : la couleur suit le theme courant. */
[data-aaru-theme="core"] :focus-visible { outline-color: var(--accent); }
[data-aaru-theme="core"] .ac-nav-item:focus-visible,
[data-aaru-theme="core"] button:focus-visible { box-shadow: 0 0 0 3px var(--accent-ring); }

/* Focus visible amélioré */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* WooCommerce — alignement design system */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--accent-btn);
  color: #fff;
  border-radius: var(--aaru-btn-m-radius);
  font-family: 'Nunito', sans-serif;
  font-size: var(--aaru-btn-m-font);
  font-weight: var(--aaru-btn-weight);
  min-height: var(--aaru-btn-m-height);
  padding: var(--aaru-btn-m-py) var(--aaru-btn-m-px);
  transition: background 0.2s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--accent-btn-hover);
  color: #fff;
}

/* Scroll smooth globale */
html { scroll-behavior: smooth; }

/* ── CORRECTIONS CONTRASTE ACCESSIBILITÉ WCAG AA ─────────────── */

/* Accueil Elementor — titres #6EC1E4 sur fond blanc (2:1 → corrigé 6.94:1) */
.elementor-element-ce86f28 .elementor-heading-title,
.elementor-element-46d73bf .elementor-heading-title,
.elementor-element-6c7e8f7 .elementor-heading-title {
  color: var(--brand) !important;
}

/* Accueil Elementor — titres sur sections sombres #464646 → blanc (9.3:1) */
.elementor-element-a595f81 .elementor-heading-title,
.elementor-element-f3f9308 .elementor-heading-title,
.elementor-element-60daec3 .elementor-heading-title {
  color: #ffffff !important;
}

/* WooCommerce — compteur avis/étoiles (#C0C0C0 → accessible) */
.woocommerce .star-rating span,
.woocommerce .count,
.woocommerce-loop-product__rating .count {
  color: #6A6E83 !important;
}

/* WooCommerce — textes gris secondaires */
.woocommerce .woocommerce-loop-product__title ~ *,
.woocommerce .price del,
.woocommerce small,
.woocommerce .woocommerce-loop-category__title small {
  color: #6A6E83;
}

/* ──────────────────────────────────────────────────────────────
   Notifications (Boîte de réception, onglet Notifications)
   Liste simple posée directement sur le fond gris du panneau (#F6F6F6) :
   AUCUNE bulle, aucun contour, aucun fond par notification. Les lignes sont
   séparées entre elles par un seul filet gris légèrement plus foncé que le
   fond. Gabarit unique, système comme créateur : vignette ronde à gauche,
   mini-label d'origine dans la ligne de méta, bouton corbeille neutre à droite.
   Le rouge est réservé aux vraies alertes (.ac-notif-alert, ex. suspension) :
   une notification d'information (paiement, première vente) reste neutre.
   ────────────────────────────────────────────────────────────── */
/* Le conteneur ne porte QUE le positionnement du bouton corbeille et le filet
   de séparation : jamais de bordure complète ni d'ombre (cumulées avec celles
   de la carte, elles donnaient un double trait via le premium override). */
/* La ligne déborde de 12px de chaque côté : le surlignage de la sélection va
   jusqu'au bord de la colonne, et le padding interne compense pour que l'avatar
   ne colle pas au bord du fond. */
.ac-notif-item {
  position: relative; margin: 0 -12px;
  border: none; background: none; box-shadow: none; border-radius: 0;
}
/* Un seul filet, et uniquement ENTRE deux notifications. */
.ac-notif-item + .ac-notif-item { border-top: 1px solid #E2E2E2; }
.ac-notif-card {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: none; border-radius: 0;
  padding: 11px 12px;
  text-decoration: none; color: #0A0A0A;
}
a.ac-notif-card:hover { background: rgba(0, 0, 0, .028); }
/* Non-lu : signalé par la pastille bleue et un texte plus appuyé, pas par un fond. */
.ac-notif-card-unread .ac-notif-msg { font-weight: 800; }
.ac-notif-body { flex: 1; min-width: 0; }
.ac-notif-msg {
  font-family: var(--aaru-font-body); font-size: 14px; font-weight: 700;
  line-height: 1.3; color: #0A0A0A;
}
.ac-notif-sub {
  font-size: 12.5px; line-height: 1.3; color: var(--aaru-gray-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-notif-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 3px; font-size: 11.5px; color: #9A9DAF;
}
.ac-notif-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--aaru-primary); margin-left: 5px; vertical-align: middle;
}
.ac-notif-link {
  display: inline-block; margin-top: 3px;
  font-size: 12.5px; font-weight: 800; color: var(--aaru-primary);
}

/* Vignette d'origine : avatar du créateur, marque Aaru, ou pictogramme d'alerte. */
.ac-notif-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
/* Elementor impose `.elementor img { border-radius: 0 }` (même spécificité, chargé
   après) : on ré-affirme le rond pour les photos de profil des notifications. */
img.ac-notif-av { border-radius: 50% !important; }
/* Notification du site : pastille neutre aux initiales « AF » (Aaru Formation). */
.ac-notif-av-aaru {
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: #F2F2F2; border: 1.5px solid #E0E0E0; color: #1A1A1A;
  font-family: var(--aaru-font-head); font-weight: 800; font-size: 12.5px;
  letter-spacing: .5px; line-height: 1;
}
.ac-notif-av-alert {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: #FDECEC; border: 1.5px solid #F0C3BF; color: #B4231C; font-size: 17px;
}

/* Vraie alerte : signalée par la seule vignette rouge (.ac-notif-av-alert).
   Pas de contour ni d'aplat sur la ligne, comme toutes les autres. */

/* Mini-label d'origine. */
.ac-notif-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  border-radius: 50px; font-family: var(--aaru-font-body);
  font-size: 11px; font-weight: 800; line-height: 1.6; white-space: nowrap;
}
.ac-notif-tag i { font-size: 12px; }
.ac-notif-tag-aaru { background: var(--accent-tint); color: var(--accent); }
.ac-notif-tag-user { background: #F2F2F2; color: #5A5F72; }

/* Bouton corbeille : identique sur TOUTES les notifications, petit et neutre.
   Bouton iconique à gabarit fixe, donc exclu de l'échelle S/M/L (min-height
   annulée pour qu'il reste réellement compact). */
.ac-notif-del {
  position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
  width: 30px; height: 30px; min-height: 0 !important; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #F4F4F4; border: 1px solid #E5E5E5; color: #6A6A6A;
  font-size: 15px; line-height: 1; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.ac-notif-del:hover { background: #EDEDED; border-color: #DCDCDC; color: #B4231C; }

/* ── Vue deux panneaux (master-detail), comme la messagerie ──
   Gauche : la liste plate sur le gris. Droite : le détail de la notification
   sélectionnée, dans un panneau blanc. */
.ac-notif-split {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 20px; align-items: start;
}
.ac-notif-col-list { min-width: 0; }
.ac-notif-col-detail {
  min-width: 0; position: sticky; top: 16px;
  background: #fff; border: 1px solid #E5E5E5; border-radius: 12px;
  padding: 22px; min-height: 320px;
}
/* Ligne sélectionnée dans la liste. */
.ac-notif-item.is-selected .ac-notif-card { background: rgba(0, 0, 0, .045); }

/* État par défaut sur desktop : rien de sélectionné. */
.ac-notif-detail-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 276px; text-align: center;
  font-family: var(--aaru-font-body); font-size: 13.5px; color: var(--aaru-gray-text);
}
.ac-notif-detail-empty i { font-size: 30px; color: var(--aaru-border); }
.ac-notif-detail-empty p { margin: 0; }
/* display:flex ci-dessus l'emporterait sur la règle UA de [hidden]. */
.ac-notif-detail-empty[hidden] { display: none; }

.ac-notif-detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ac-notif-detail-title {
  margin: 0; font-family: var(--aaru-font-head); font-size: 18px; font-weight: 800;
  line-height: 1.25; color: #0A0A0A;
}
.ac-notif-detail-date { font-family: var(--aaru-font-body); font-size: 12.5px; color: #9A9DAF; }
.ac-notif-detail-text {
  margin: 12px 0 0; font-family: var(--aaru-font-body); font-size: 14.5px;
  line-height: 1.55; color: #0A0A0A;
}
.ac-notif-detail-sub {
  margin: 6px 0 0; font-family: var(--aaru-font-body); font-size: 13px;
  line-height: 1.45; color: var(--aaru-gray-text);
}
/* Vignette de l'élément annoncé (annonces de créateurs), posée au-dessus des
   actions. Cliquable, elle mène au même contenu que le bouton de redirection. */
.ac-notif-preview {
  display: block; width: 100%; max-width: 260px; margin-top: 16px;
  border-radius: 10px; overflow: hidden; background: #F2F2F2; line-height: 0;
}
.ac-notif-preview-img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; transition: transform .25s ease;
}
a.ac-notif-preview:hover .ac-notif-preview-img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .ac-notif-preview-img { transition: none; }
  a.ac-notif-preview:hover .ac-notif-preview-img { transform: none; }
}
.ac-notif-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
/* Le retour vers la liste ne sert que sur mobile. */
.ac-notif-back { display: none; }

@media (max-width: 560px) {
  .ac-notif-item { margin: 0 -10px; }
  .ac-notif-card { padding: 10px; gap: 9px; }
  .ac-notif-av, .ac-notif-av-alert { width: 30px; height: 30px; }
  .ac-notif-av-aaru { font-size: 13px; }
  .ac-notif-del { width: 28px; height: 28px; }
  .ac-notif-sub { white-space: normal; }
}

/* Mobile et tablette : une seule colonne. La liste d'abord ; ouvrir une
   notification bascule le panneau de détail en plein écran de l'onglet. */
@media (max-width: 900px) {
  .ac-notif-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ac-notif-col-detail { position: static; border: none; padding: 0; min-height: 0; background: none; }
  .ac-notif-detail-empty { display: none; }
  .ac-notif-split:not(.is-detail) .ac-notif-col-detail { display: none; }
  .ac-notif-split.is-detail .ac-notif-col-list { display: none; }
  .ac-notif-split.is-detail .ac-notif-col-detail {
    background: #fff; border: 1px solid #E5E5E5; border-radius: 12px; padding: 18px;
  }
  .ac-notif-back {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
    padding: 0; background: none; border: none; min-height: 0;
    font-family: var(--aaru-font-body); font-size: 13px; font-weight: 800;
    color: var(--aaru-primary); cursor: pointer;
  }
}

/* ── Section header standardisé (titre + filtres / sous-titre) ── */
.aaru-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.aaru-section-header h2 {
  font-family: 'Funnel Display', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #1A1A1A;
  margin: 0;
}
.aaru-section-filters {
  display: flex;
  gap: 20px;
  align-items: center;
}
.aaru-section-subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: #6A6E83;
  margin: 0 0 16px;
}
@media (max-width: 700px) {
  .aaru-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .aaru-section-header .aaru-section-filters {
    margin-top: 8px;
  }
}

/* ──────────────────────────────────────────────────────────────
   Neutralise l'ombre native Astra (box-shadow:0 1px 2px rgba(0,0,0,.05))
   appliquée à tous les <button>. Scopé aux boutons (éléments <button>,
   inputs bouton, classes *-btn) pour NE PAS casser les ombres volontaires
   sur d'autres éléments : cartes (.bcv-card, .ac-card-img), dropdown
   (.bcv-search-drop), toast/panel, CTA <a> (.bcv-hero2-btn:hover).
   ────────────────────────────────────────────────────────────── */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
[class*="aaru-btn"],
button[class*="ac-"],
button[class*="bcv-"],
button[class*="mn-"] {
  box-shadow: none !important;
}

/* ──────────────────────────────────────────────────────────────
   ÉCHELLE DE BOUTONS : exceptions assumées
   Ces contrôles ne suivent pas le padding S/M/L parce que ce ne sont pas
   des boutons de texte. Les déformer casserait leur gabarit :
     - iconiques carrés/ronds à dimensions fixes : .pan-ibtn (32x32),
       .bcv-fav-btn (32x32), .ah-burger, .ah-user (avatar) ;
     - onglets et filtres (soulignement, pas de fond) : .inbox-tab,
       .ec-subnav-btn, .pf-filter-btn, .ac-nav-item ;
     - pastilles pilules volontaires (radius 50px conservé, padding aligné) :
       .ac-btn-sm, .etb-btn, .aaru-mcard-rdv-actions .ec-btn-dark ;
     - header : .ah-login-btn garde l'échelle compacte de la barre.
   ────────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────────
   BARRE « ENREGISTRER LES MODIFICATIONS » (pages de réglages)
   Apparaît seulement quand un formulaire de réglages diffère de son état
   initial ; disparaît à l'annulation et après l'enregistrement (état de
   confirmation vert, cf. assets/js/aaru-save-bar.js).
   ────────────────────────────────────────────────────────────── */
.aaru-savebar {
  position: fixed; left: 50%; bottom: 20px; z-index: 100050;
  transform: translateX(-50%) translateY(140%); opacity: 0;
  pointer-events: none; transition: transform .24s ease, opacity .24s ease;
  max-width: min(680px, calc(100vw - 24px));
}
.aaru-savebar.is-on { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.aaru-savebar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: #FFFFFF; border: 1px solid #E5E5E5; border-radius: 14px;
  box-shadow:0 4px 12px rgba(11,11,12,.06); padding: 12px 14px 12px 18px;
}
.aaru-savebar-msg {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--aaru-font-body); font-size: 13.5px; font-weight: 700; color: #0A0A0A;
}
.aaru-savebar-msg .ti { font-size: 17px; color: #8A8A8A; }
.aaru-savebar.is-ok .aaru-savebar-msg { color: #147A3D; }
.aaru-savebar.is-ok .aaru-savebar-msg .ti { color: #147A3D; }
.aaru-savebar-actions { display: inline-flex; align-items: center; gap: 8px; }
/* Confirmation : les boutons s'effacent (le [hidden] natif perd face à .aaru-btn). */
.aaru-savebar [hidden] { display: none !important; }
/* Bouton d'enregistrement natif du formulaire : remplacé par la barre. */
.aaru-savebar-hidden { display: none !important; }

@media (max-width: 560px) {
  .aaru-savebar { left: 12px; right: 12px; bottom: 12px; max-width: none; transform: translateY(140%); }
  .aaru-savebar.is-on { transform: translateY(0); }
  .aaru-savebar-inner { gap: 10px; padding: 12px 14px; }
  .aaru-savebar-actions { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .aaru-savebar { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════
 * BARRE DE RECHERCHE UNIFIÉE — gabarit unique du site
 * Référence visuelle : barre de la page Prestations. Rendu via aaru_search_bar().
 * S'adapte à la largeur du conteneur ; options géoloc / bouton / dropdown.
 * ══════════════════════════════════════════════════════════════════ */
/* Pilule totalement arrondie, bordure fine noire, fond blanc, SANS ombre. */
/* Un SEUL élément peint la pilule : forme + bordure + fond. Champ/loupe transparents à l'intérieur → zéro coin blanc. */
.aaru-sb { position: relative; display: flex; align-items: stretch; width: 100%; background: #fff; border: 1.5px solid #0A0A0A; border-radius: 999px; box-shadow: none; box-sizing: border-box; transition: border-color .15s; }
.aaru-sb--center { margin-left: auto; margin-right: auto; }
.aaru-sb:focus-within { border-color: #0A0A0A; box-shadow: none; }
.aaru-sb-field { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; background: transparent !important; border: none !important; box-shadow: none !important; }
.aaru-sb-input { width: 100%; height: 37px !important; min-height: 37px !important; padding: 0 22px 0 48px !important; margin: 0 !important; border: none !important; border-radius: 999px !important; font-family: 'Nunito', sans-serif; font-size: 15px !important; line-height: normal !important; color: #0A0A0A !important; background: transparent !important; background-color: transparent !important; -webkit-appearance: none !important; appearance: none !important; outline: none !important; box-shadow: none !important; box-sizing: border-box; }
.aaru-sb-input::placeholder { color: #9A9A9A; }
.aaru-sb-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
/* Loupe fine à gauche, alignée verticalement */
.aaru-sb-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #0A0A0A; font-size: 17px; line-height: 1; display: inline-flex; pointer-events: none; z-index: 2; }
/* Sélecteur de ville / géoloc intégré (séparateur vertical), extrémité en demi-cercle */
.aaru-sb-geo { display: flex; align-items: center; flex-shrink: 0; border-left: 1.5px solid #0A0A0A; }
.aaru-sb-geo .aaru-city-dd { display: flex !important; }
.aaru-sb-geo .aaru-city-btn { height: 37px; border: none !important; border-radius: 0 999px 999px 0 !important; background: transparent !important; padding: 0 20px !important; font-weight: 700; }
.aaru-sb-geo .aaru-city-btn:hover { background: #FAFAFA !important; }
.aaru-sb-geo .aaru-city-drop { left: auto !important; right: 0 !important; }
/* Bouton intégré (submit), extrémité en demi-cercle */
.aaru-sb-btn { flex-shrink: 0; height: 37px; padding: 0 24px; border: none; border-radius: 0 999px 999px 0; background: #0A0A0A; color: #fff; font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .18s; }
.aaru-sb-btn:hover { background: var(--accent-btn); }
.aaru-sb-btn i { font-size: 18px; }
/* Dropdown de résultats (AJAX) */
.aaru-sb-drop { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1.5px solid #E5E5E5; border-radius: 16px; z-index: 9500; max-height: 380px; overflow-y: auto; text-align: left; box-shadow:0 4px 12px rgba(11,11,12,.06); }
.aaru-sb-drop.open { display: block; }
/* Responsive : empilement du sélecteur géoloc sous le champ (coins arrondis) */
@media (max-width: 768px) {
  .aaru-sb--has-geo { flex-wrap: wrap; border-radius: 27px; }
  .aaru-sb--has-geo .aaru-sb-field { flex: 1 1 100%; }
  .aaru-sb--has-geo .aaru-sb-geo { flex: 1 1 100%; border-left: none; border-top: 1.5px solid #0A0A0A; }
  .aaru-sb--has-geo .aaru-sb-geo .aaru-city-dd { width: 100%; }
  .aaru-sb--has-geo .aaru-sb-geo .aaru-city-btn { width: 100%; justify-content: flex-start; border-radius: 0 0 27px 27px !important; }
  .aaru-sb--has-geo .aaru-sb-input { border-radius: 27px 27px 0 0; }
}

/* ══ CARTES LEAFLET (feuille tierce assets/leaflet.css, non modifiée) ══════
   Contrôles et bulles flottent sur la carte : bordure fine + ombre très légère. */
.leaflet-bar, .leaflet-control-layers { box-shadow: 0 4px 12px rgba(11,11,12,.06); border: var(--aaru-border-width,1.5px) solid var(--aaru-border,#D8D8D8); }
.leaflet-popup-tip, .leaflet-tooltip { box-shadow: 0 4px 12px rgba(11,11,12,.06); }

/* ══ CHAMPS : l'ombre native d'Astra (0 1px 2px) est retiree ════════════
   Astra la pose en CSS genere (astra-theme-css-inline-css) sur les champs de
   formulaire. « body » l'emporte sans !important ; les contours de focus des
   formulaires Aaru (.form-input:focus…) restent plus specifiques. */
body input[type="text"], body input[type="number"], body input[type="email"], body input[type="url"],
body input[type="password"], body input[type="search"], body input[type="reset"], body input[type="tel"],
body input[type="date"], body select, body textarea { box-shadow: none; }
