/* Espace administrateur FixPro (/admin) : connexion, tableau de bord, listes. */
:root {
  --ad-blue: #0B63F0;
  --ad-blue-d: #0A4FD0;
  --ad-side-1: #0B55DB;
  --ad-side-2: #0A3BA6;
  --ad-ink: #0F1B33;
  --ad-ink-2: #4A5672;
  --ad-mute: #7A869F;
  --ad-line: #E6EAF1;
  --ad-bg: #F5F7FB;
  --ad-card: #FFFFFF;
  --ad-tint: #EAF2FF;
  --ad-green: #16A34A;
  --ad-red: #E5484D;
  --ad-radius: 14px;
  --ad-shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ad-ink); background: var(--ad-bg); }
a { color: var(--ad-blue); text-decoration: none; }
a:hover { color: var(--ad-blue-d); }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { display: block; flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* Connexion                                                          */
/* ------------------------------------------------------------------ */
.al-body { min-height: 100vh; background: linear-gradient(135deg, #F5F9FF 0%, #EAF2FD 100%); }
.al { min-height: 100vh; display: flex; position: relative; overflow-x: hidden; }

/* Panneau bleu : texte a gauche, photo de Conakry a droite, bord arrondi.
   La photo commence apres la colonne de texte : elle ne passe jamais dessous. */
.al::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(57% + clamp(40px, 5vw, 90px)); z-index: 0;
  background: linear-gradient(180deg, #2F7FF5 0%, #5FA2F7 60%, #8EC0F8 100%);
  border-radius: 0 50% 50% 0 / 0 62% 62% 0;
}
.al-hero {
  --al-pad: clamp(36px, 6.5vw, 104px);
  --al-col: clamp(340px, 29vw, 480px);
  position: relative; z-index: 1; flex: 0 0 57%; min-height: 100vh; color: #fff; overflow: hidden;
  background: linear-gradient(165deg, #0A3FC2 0%, #0B50DA 45%, #0F63EE 100%);
  border-radius: 0 50% 50% 0 / 0 62% 62% 0;
}
.al-hero-photo {
  position: absolute; top: 0; bottom: 0; right: 0;
  left: max(calc(var(--al-pad) + var(--al-col) - 70px), calc(100% - 40vh));
  background: url('../img/admin/conakry-hero.jpg') left center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 22%, #000 46%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 22%, #000 46%);
}
.al-hero-in { position: relative; z-index: 2; max-width: calc(var(--al-pad) + var(--al-col)); padding: clamp(40px, 9vh, 96px) 0 clamp(32px, 6vh, 64px) var(--al-pad); }
.al-logo { display: inline-flex; flex-direction: column; align-items: flex-end; }
.al-logo img { height: clamp(56px, 5vw, 84px); width: auto; display: block; }
.al-logo span { margin-top: -6px; margin-right: 12%; font-size: clamp(20px, 1.8vw, 30px); font-weight: 700; letter-spacing: .01em; }
.al-rule { display: block; width: 104px; height: 2px; background: rgba(255, 255, 255, .75); margin: clamp(18px, 3vh, 28px) 0 clamp(22px, 3.6vh, 34px); border-radius: 2px; }
.al-title { margin: 0; font-size: clamp(34px, 3.4vw, 56px); white-space: nowrap; line-height: 1.04; font-weight: 800; letter-spacing: -.02em; }
.al-title em { display: block; font-style: normal; color: #6CC3FF; }
.al-lead { margin: clamp(16px, 3vh, 26px) 0 0; max-width: 100%; font-size: clamp(15px, 1.3vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .95); }
.al-quote {
  position: relative; margin: clamp(18px, 3.4vh, 30px) 0 0; max-width: 400px; padding: 18px 22px 16px 74px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 16px; background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.al-quote-m { position: absolute; left: 20px; top: 8px; font-size: 64px; line-height: 1; font-weight: 800; font-family: Georgia, serif; color: #fff; }
.al-quote p { margin: 0; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.45; font-weight: 500; }
.al-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: clamp(14px, 1.1vw, 17px); color: rgba(255, 255, 255, .9); }
.al-points { list-style: none; margin: clamp(22px, 4vh, 40px) 0 0; padding: 0; display: flex; flex-direction: column; gap: clamp(14px, 2.6vh, 24px); }
.al-points li { display: flex; align-items: center; gap: 20px; }
.al-pt-ic { flex: none; width: 60px; height: 60px; border-radius: 14px; background: #1E78FF; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(0, 30, 120, .25); }
.al-points b { display: block; font-size: clamp(15px, 1.25vw, 19px); font-weight: 700; }
.al-points li span:last-child { font-size: clamp(13px, 1.05vw, 16px); color: rgba(255, 255, 255, .9); line-height: 1.45; }

/* Formulaire */
.al-side { flex: 1; min-width: 0; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 28px clamp(20px, 3.5vw, 56px) 32px; margin-left: -4%; }
.al-lang {
  position: relative; z-index: 2; align-self: flex-end; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 18px;
  background: #fff; border: 1px solid var(--ad-line); border-radius: 14px; color: #3E4C6D; font-size: 16px; font-weight: 500; box-shadow: var(--ad-shadow);
}
.al-flag { display: inline-flex; width: 28px; height: 22px; border-radius: 3px; overflow: hidden; }
.al-flag i { flex: 1; }
.al-flag i:nth-child(1) { background: #CE1126; } .al-flag i:nth-child(2) { background: #FCD116; } .al-flag i:nth-child(3) { background: #009460; }
.al-mtop { display: none; }
.al-card {
  position: relative; width: min(600px, 100%); margin: 26px 0 auto; background: #fff; border-radius: 24px;
  padding: clamp(28px, 4.5vh, 44px) clamp(24px, 4.4vw, 68px) clamp(22px, 3.6vh, 36px);
  box-shadow: 0 24px 60px rgba(20, 52, 120, .10); display: flex; flex-direction: column;
}
.al-shield .ic { width: 54px; height: 54px; }
.al-shield { align-self: center; width: 118px; height: 118px; border-radius: 50%; background: #E6F0FF; color: var(--ad-blue); display: flex; align-items: center; justify-content: center; }
.al-card h2 { margin: 22px 0 10px; text-align: center; font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.al-sub { margin: 0 auto clamp(20px, 3.6vh, 34px); max-width: 360px; text-align: center; font-size: 17px; line-height: 1.5; color: var(--ad-ink-2); }
.al-lbl { font-size: 17px; font-weight: 600; margin: 0 0 10px 2px; }
.al-field { position: relative; display: flex; align-items: center; height: 56px; border: 1px solid #DCE3EE; border-radius: 12px; background: #fff; margin-bottom: clamp(16px, 2.8vh, 26px); color: #5E6B88; transition: border-color .15s, box-shadow .15s; }
.al-field:focus-within { border-color: var(--ad-blue); box-shadow: 0 0 0 3px rgba(11, 99, 240, .14); }
.al-field > .ic { margin: 0 14px 0 18px; }
.al-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--ad-ink); }
.al-field input::placeholder { color: #8390AB; }
.al-field input:-webkit-autofill, .al-field input:-webkit-autofill:hover, .al-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 60px #fff inset; box-shadow: 0 0 0 60px #fff inset; -webkit-text-fill-color: var(--ad-ink); caret-color: var(--ad-ink);
}
.al-eye { width: 52px; height: 52px; margin-right: 4px; border: 0; background: transparent; color: #4B5876; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }
.al-eye:hover { background: #F2F6FC; }
.al-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 clamp(18px, 3.4vh, 32px); font-size: 16px; }
.al-check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; color: var(--ad-ink); }
.al-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.al-check span { width: 26px; height: 26px; border-radius: 6px; border: 2px solid #B8C3D6; display: inline-block; position: relative; flex: none; }
.al-check input:checked + span { background: var(--ad-blue); border-color: var(--ad-blue); }
.al-check input:checked + span::after { content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.al-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(11, 99, 240, .3); }
.al-btn { position: relative; height: 64px; border: 0; border-radius: 12px; background: var(--ad-blue); color: #fff; font-size: 21px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 16px; cursor: pointer; box-shadow: 0 12px 26px rgba(11, 99, 240, .28); transition: background .15s, transform .1s; }
.al-btn:hover { background: var(--ad-blue-d); }
.al-btn:active { transform: translateY(1px); }
.al-btn:focus-visible { outline: 3px solid rgba(11, 99, 240, .35); outline-offset: 3px; }
.al-spin { display: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: ad-spin .8s linear infinite; }
.al-btn.is-busy .ic { display: none; }
.al-btn.is-busy .al-spin { display: block; }
.al-btn.is-busy { pointer-events: none; opacity: .9; }
@keyframes ad-spin { to { transform: rotate(360deg); } }
.al-or { display: flex; align-items: center; gap: 18px; margin: clamp(18px, 3vh, 30px) 0 clamp(12px, 2vh, 20px); color: #4B5876; font-size: 15px; font-weight: 500; }
.al-or::before, .al-or::after { content: ""; flex: 1; height: 1px; background: #E2E8F0; }
.al-flash { margin: -8px 0 20px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; background: #FEECEC; color: #B42318; }
.al-flash-success { background: #E7F7EE; color: #166534; }
.al-flash-info { background: #E8F1FF; color: #1E40AF; }
.al-foot { text-align: center; color: #3E4C6D; font-size: 15px; }
.al-foot p { margin: 0; }
.al-links { margin-top: 8px !important; display: flex; gap: 12px; justify-content: center; color: #9AA5BC; flex-wrap: wrap; }
.al-links a { color: #5E6B88; }

@media (min-width: 961px) and (max-height: 820px) {
  .al-shield { width: 84px; height: 84px; }
  .al-shield .ic { width: 36px; height: 36px; }
  .al-card h2 { margin-top: 14px; }
  .al-sub { font-size: 16px; }
  .al-lbl { font-size: 15.5px; margin-bottom: 8px; }
  .al-field { height: 50px; }
  .al-btn { height: 54px; font-size: 19px; }
  .al-pt-ic { width: 48px; height: 48px; }
  .al-lang { height: 44px; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .al-hero { flex-basis: 54%; --al-col: 330px; }
  .al::before { width: calc(54% + 40px); }
}

/* Telephone / tablette : en-tete bleu avec la ville, carte en dessous. */
@media (max-width: 960px) {
  .al-body { background: #F4F8FE; }
  .al { display: block; }
  .al-hero, .al::before { display: none; }
  .al-side { margin: 0; padding: 0 0 28px; }
  .al-lang { position: absolute; top: 18px; right: 16px; height: 42px; padding: 0 14px; gap: 8px; font-size: 15px; border: 0; }
  .al-flag { width: 24px; height: 18px; }
  .al-mtop {
    display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; color: #fff;
    padding: 72px 20px 150px;
    background:
      linear-gradient(180deg, #4C93F3 0%, rgba(76, 147, 243, .55) 22%, rgba(76, 147, 243, 0) 55%) 0 bottom / 100% 150px no-repeat,
      url('../img/admin/conakry-skyline.jpg') 40% bottom / auto 150px no-repeat,
      linear-gradient(180deg, #1565E8 0%, #2C7BF0 45%, #6AA8F5 78%, #9CC8F7 100%);
  }
  .al-mtop .al-logo img { height: 62px; }
  .al-mtop .al-logo span { font-size: 22px; margin-right: 8%; }
  .al-mtop .al-rule { width: 110px; margin: 16px 0 18px; }
  .al-mquote { margin: 0; font-size: 19px; line-height: 1.38; font-weight: 600; max-width: 340px; text-shadow: 0 1px 6px rgba(0, 40, 120, .35); }
  .al-mcite { margin: 8px 0 0; font-size: 15px; text-shadow: 0 1px 6px rgba(0, 40, 120, .35); }
  .al-card { width: calc(100% - 24px); margin: -44px auto 0; padding: 26px 20px 22px; border-radius: 26px; }
  .al-shield { width: 84px; height: 84px; }
  .al-shield .ic { width: 36px; height: 36px; }
  .al-card h2 { font-size: 25px; margin: 14px 0 6px; }
  .al-sub { font-size: 15.5px; margin-bottom: 20px; }
  .al-lbl { font-size: 15.5px; margin-bottom: 8px; }
  .al-field { height: 54px; margin-bottom: 16px; }
  .al-field input { font-size: 16px; }
  .al-row { font-size: 15px; margin-bottom: 20px; }
  .al-row a { font-size: 14.5px; }
  .al-btn { height: 56px; font-size: 18px; }
  .al-or { margin: 18px 0 12px; }
  .al-foot { font-size: 13.5px; }
}
@media (max-width: 380px) {
  .al-row { font-size: 14px; }
  .al-row a { font-size: 13.5px; }
}

/* ------------------------------------------------------------------ */
/* Structure : menu lateral blanc + contenu (style « clair et epure ») */
/* ------------------------------------------------------------------ */
.ad-body { background: var(--ad-bg); }
.ad { display: flex; min-height: 100vh; }
/* Le fond du menu occupe toute la hauteur de la page ; le contenu du menu reste visible au defilement. */
.ad-side { flex: 0 0 248px; width: 248px; background: #fff; border-right: 1px solid var(--ad-line); color: var(--ad-ink); }
.ad-side-in { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 14px; overflow-y: auto; }
.ad-logo { display: inline-flex; flex-direction: column; align-items: flex-end; align-self: flex-start; margin: 0 0 18px 10px; }
.ad-logo img { height: 40px; width: auto; display: block; }
.ad-logo span { margin: -4px 12px 0 0; font-size: 13px; font-weight: 700; color: var(--ad-blue); }
.ad-nav { display: flex; flex-direction: column; flex: 1; }
.ad-nav-h { margin: 16px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #98A2B8; }
.ad-nav-h:first-child { margin-top: 4px; }
.ad-nav-i { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; margin-bottom: 2px; border-radius: 10px; color: #3B4762; font-size: 14.5px; font-weight: 500; }
.ad-nav-i:hover { color: var(--ad-ink); background: #F3F6FB; }
.ad-nav-i.is-on { background: var(--ad-tint); color: var(--ad-blue); font-weight: 650; }
.ad-nav-ic { width: 22px; display: flex; align-items: center; justify-content: center; }
.ad-nav-l { flex: 1; }
.ad-badge { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: #EF4444; color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ad-verse { margin: 18px 6px 12px; font-size: 12px; line-height: 1.5; color: var(--ad-mute); }
.ad-verse span { display: block; margin-top: 2px; font-weight: 600; color: #98A2B8; }
.ad-side-me { display: flex; align-items: center; gap: 10px; padding: 12px 6px 2px; border-top: 1px solid var(--ad-line); }
.ad-side-me-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ad-side-me-tx b { font-size: 14px; }
.ad-side-me-tx small { font-size: 12px; color: var(--ad-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-ini { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ad-tint); color: var(--ad-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.ad-out-f { margin: 0; }
.ad-out { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ad-mute); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ad-out:hover { background: #FDECEC; color: #D92D3A; }
.ad-scrim { position: fixed; inset: 0; background: rgba(15, 27, 51, .45); z-index: 60; }

.ad-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ad-top { display: flex; align-items: center; gap: 12px; padding: 16px 32px 12px; }
.ad-burger, .ad-mlogo { display: none; }
.ad-search { flex: 0 1 440px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; background: #fff; border: 1px solid var(--ad-line); border-radius: 11px; color: var(--ad-mute); }
.ad-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--ad-ink); }
.ad-search input::placeholder { color: #8A94AA; }
.ad-search:focus-within { border-color: var(--ad-blue); box-shadow: 0 0 0 3px rgba(11, 99, 240, .12); }
.ad-bell { position: relative; margin-left: auto; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--ad-ink-2); background: #fff; border: 1px solid var(--ad-line); border-radius: 11px; }
.ad-bell:hover { color: var(--ad-ink); border-color: #CBD5E4; }
.ad-bell-n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #EF4444; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ad-bg); }
.ad-me { display: flex; align-items: center; gap: 10px; }
.ad-me b { display: block; font-size: 14px; font-weight: 650; }
.ad-me small { display: block; font-size: 12px; color: var(--ad-mute); }
.ad-me-top > .ic { color: var(--ad-mute); }
.ad-content { padding: 4px 32px 40px; flex: 1; }
.ad-tab { display: none; }

.ad-flashes { margin: 0 0 16px; }
.ad-flash { margin: 0 0 8px; padding: 12px 16px; border-radius: 12px; background: #E7F7EE; color: #166534; font-size: 14px; }
.ad-flash-error { background: #FEECEC; color: #B42318; }
.ad-flash-info { background: #E8F1FF; color: #1E40AF; }

/* ------------------------------------------------------------------ */
/* Tableau de bord                                                    */
/* ------------------------------------------------------------------ */

.ad-hello-act { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ad-seg { display: flex; padding: 3px; background: #fff; border: 1px solid var(--ad-line); border-radius: 11px; }
.ad-seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ad-ink-2); cursor: pointer; white-space: nowrap; }
.ad-seg button:hover { color: var(--ad-ink); background: #F3F6FB; }
.ad-seg button[aria-checked="true"] { background: var(--ad-blue); color: #fff; }
.ad-btn { height: 42px; padding: 0 16px; border: 0; border-radius: 11px; background: var(--ad-blue); color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.ad-btn:hover { background: var(--ad-blue-d); color: #fff; }
.ad-btn-ghost { background: #fff; color: var(--ad-ink); border: 1px solid #D5DDEA; }
.ad-btn-ghost:hover { background: #F4F7FC; color: var(--ad-ink); }

.ad-card { background: var(--ad-card); border-radius: var(--ad-radius); box-shadow: var(--ad-shadow); border: 1px solid var(--ad-line); }
.ad-card h2 { margin: 0; font-size: 16px; font-weight: 700; }
.ad-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ad-card-h a { font-size: 13px; font-weight: 600; white-space: nowrap; }
.ad-card-s { margin: 2px 0 0; font-size: 13px; color: var(--ad-mute); }

.ad-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.ad-kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; color: var(--ad-ink); min-width: 0; }
.ad-kpi:hover { color: var(--ad-ink); border-color: #CFDBEE; box-shadow: 0 8px 24px rgba(15, 27, 51, .07); }
.ad-kpi-h { display: flex; align-items: center; gap: 10px; color: var(--ad-ink-2); }
.ad-kpi-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--ad-tint); color: var(--ad-blue); display: flex; align-items: center; justify-content: center; }
.ad-kpi-ic .ic { width: 20px; height: 20px; }
.ad-tone-blue { background: #EAF2FF; color: #0B63F0; }
.ad-tone-violet { background: #F1EBFF; color: #6D3FE0; }
.ad-tone-green { background: #E6F7EE; color: #15803D; }
.ad-tone-amber { background: #FFF3DF; color: #B45309; }
.ad-kpi-l { font-size: 14px; font-weight: 500; }
.ad-kpi-v { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.ad-kpi-v b { font-size: 28px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.ad-kpi-v small { font-size: 13px; font-weight: 600; color: var(--ad-mute); }
.ad-kpi-s { font-size: 13px; color: var(--ad-mute); }
.gr { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.gr.good { color: var(--ad-green); }
.gr.bad { color: var(--ad-red); }

.ad-grid { display: grid; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.ad-grid-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ad-grid-11 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ad-chart { padding: 20px; min-width: 0; }
.ad-legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; font-size: 12.5px; color: var(--ad-ink-2); }
.ad-legend li { display: flex; align-items: center; gap: 7px; }
.ad-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ad-bars { display: flex; gap: 10px; height: 240px; margin-top: 20px; }
.ad-axis { position: relative; height: calc(100% - 26px); min-width: 40px; font-size: 11.5px; color: var(--ad-mute); }
.ad-axis span { position: absolute; right: 0; transform: translateY(50%); white-space: nowrap; }
.ad-plot { position: relative; flex: 1; display: flex; gap: 6px; padding-bottom: 26px; }
.ad-gridbox { position: absolute; left: 0; right: 0; top: 0; bottom: 26px; pointer-events: none; }
.ad-grid-l { position: absolute; left: 0; right: 0; height: 1px; background: #EEF1F6; }
.ad-month { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.ad-month:hover .ad-b:not(.is-zero) { filter: brightness(1.08); }
.ad-stack { height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.ad-b { position: relative; width: min(44px, 46%); border-radius: 5px 5px 0 0; min-height: 0; }
.ad-stack .ad-b + .ad-b { width: min(24px, 30%); }
.ad-stack .ad-b:first-child:nth-last-child(2) { width: min(24px, 30%); }
.ad-b.is-zero { background: #EEF1F6; border-radius: 1px; }
.ad-b em { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -4px); font-style: normal; font-size: 11.5px; font-weight: 650; color: var(--ad-ink); white-space: nowrap; }
.ad-month-l { position: absolute; bottom: -24px; left: -6px; right: -6px; text-align: center; font-size: 11.5px; color: var(--ad-mute); white-space: nowrap; }

.ad-subs { padding: 20px; }
.ad-subs-l { list-style: none; margin: 14px 0 0; padding: 0; }
.ad-subs-l li + li { border-top: 1px solid #EEF1F6; }
.ad-subs-l a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--ad-ink); font-size: 14px; }
.ad-subs-l a:hover { color: var(--ad-blue); }
.ad-subs-l span { flex: 1; min-width: 0; }
.ad-subs-l small { display: block; font-size: 12px; color: var(--ad-mute); }
.ad-subs-l .is-sub a { padding-left: 20px; color: var(--ad-ink-2); font-size: 13px; }
.ad-sdot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ad-sdot-ok, .ad-split .ok { background: #16A34A; }
.ad-sdot-info, .ad-split .info { background: #0EA5E9; }
.ad-sdot-bad { background: #DC2626; }
.ad-split { display: flex; gap: 2px; height: 8px; margin-top: 14px; border-radius: 4px; overflow: hidden; }

.ad-table-card { padding: 20px 0 6px; min-width: 0; }
.ad-table-card .ad-card-h { padding: 0 20px 14px; }
.ad-table-wrap { overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ad-table thead th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ad-mute); padding: 10px 14px; background: #F6F8FB; border-top: 1px solid #EEF1F6; border-bottom: 1px solid #EEF1F6; white-space: nowrap; }
.ad-table thead th:first-child, .ad-table td:first-child { padding-left: 20px; }
.ad-table thead th:last-child, .ad-table td:last-child { padding-right: 20px; }
.ad-table td { padding: 12px 14px; border-bottom: 1px solid #EEF1F6; }
.ad-table td { white-space: nowrap; }
.l-short { display: none; }
.ad-table tr:last-child td { border-bottom: 0; }
.ad-td-mute { color: var(--ad-mute); }
.ad-pill { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ad-pill-run { background: #E3EEFF; color: #1D5FD1; }
.ad-pill-ok { background: #E3F6EA; color: #15803D; }
.ad-pill-wait { background: #FFF4E0; color: #9A5B00; }
.ad-pill-ko { background: #FDE8E8; color: #B42318; }

.ad-trades-card { padding: 20px; }
.ad-trades { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.ad-trades li { display: grid; grid-template-columns: minmax(0, 118px) minmax(0, 1fr) 28px; gap: 10px; align-items: center; font-size: 13.5px; }
.ad-tr-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-tr-b { height: 8px; border-radius: 4px; background: #EEF1F6; overflow: hidden; }
.ad-tr-b i { display: block; height: 100%; border-radius: 4px; background: var(--ad-blue); }
.ad-trades b { text-align: right; font-weight: 650; }
.ad-donut-row { display: flex; align-items: center; gap: 22px; margin-top: 16px; }
.ad-donut { position: relative; width: 160px; flex: none; }
.ad-donut svg { width: 100%; height: auto; display: block; }
.ad-donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; color: var(--ad-ink-2); }
.ad-donut-c b { font-size: 22px; color: var(--ad-ink); font-weight: 750; }
.ad-donut-l { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ad-donut-l li { display: flex; align-items: center; gap: 10px; }
.ad-donut-l i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ad-donut-l span { flex: 1; }
.ad-donut-l b { font-weight: 600; }

.ad-feed { padding: 20px 20px 8px; min-width: 0; }
.ad-feed ul { list-style: none; margin: 10px 0 0; padding: 0; }
.ad-feed li + li { border-top: 1px solid #EEF1F6; }
.ad-feed li a { display: flex; align-items: center; gap: 12px; padding: 10px 6px; margin: 0 -6px; border-radius: 10px; color: var(--ad-ink); }
.ad-feed-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ad-feed-tx b { font-size: 14px; font-weight: 650; }
.ad-feed-tx small { font-size: 12.5px; color: var(--ad-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-feed-t { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--ad-mute); white-space: nowrap; }
.ad-dot { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ad-blue); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.av { border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

.ad-modal { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100% - 32px)); box-shadow: 0 30px 80px rgba(15, 27, 51, .3); }
.ad-modal::backdrop { background: rgba(15, 27, 51, .45); }
.ad-modal form { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.ad-modal h2 { margin: 0; font-size: 20px; }
.ad-modal p { margin: 0 0 10px; color: var(--ad-ink-2); font-size: 14.5px; }
.ad-modal label { font-weight: 600; font-size: 14px; margin-top: 8px; }
.ad-modal input, .ad-modal select, .ad-modal textarea { width: 100%; border: 1px solid #D5DDEA; border-radius: 10px; padding: 11px 13px; font-size: 16px; background: #fff; }
.ad-modal-b { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }

@media (max-width: 1280px) {
  .ad-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-me-top .ad-me-tx { display: none; }
}
@media (max-width: 640px) {
  .ad-month-l .l-full { display: none; }
  .ad-month-l .l-short { display: inline; }
}
@media (max-width: 1180px) {
  .ad-grid-21 { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ */
/* Telephone et tablette : tiroir blanc, barre du bas                 */
/* ------------------------------------------------------------------ */
@media (max-width: 1023px) {
  .ad-side { position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; width: min(82vw, 300px); border-right: 0; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 10px 0 40px rgba(15, 27, 51, .2); }
  .ad-side-in { height: 100%; padding-top: 26px; }
  .ad-drawer .ad-side { transform: none; }

  .ad-top { position: sticky; top: 0; z-index: 20; background: rgba(245, 247, 251, .96); backdrop-filter: blur(8px); padding: 10px 14px 8px; gap: 8px; }
  .ad-burger { display: flex; width: 42px; height: 42px; border: 0; background: transparent; align-items: center; justify-content: center; color: var(--ad-ink); border-radius: 10px; }
  .ad-mlogo { display: flex; flex-direction: column; align-items: flex-end; margin-right: auto; }
  .ad-mlogo img { height: 30px; width: auto; }
  .ad-mlogo span { margin: -3px 8px 0 0; font-size: 10px; font-weight: 700; color: var(--ad-blue); }
  .ad-search { display: none; }
  .ad-bell { margin-left: 0; }
  .ad-content { padding: 4px 16px 100px; }

  .ad-tab {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    background: #fff; border-top: 1px solid var(--ad-line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
  }
  .ad-tab a, .ad-tab button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 50px; justify-content: center; border: 0; background: transparent; color: #7A869F; font-size: 11px; font-weight: 600; cursor: pointer; }
  .ad-tab .is-on { color: var(--ad-blue); }
  .ad-hello-act { flex-direction: column; align-items: stretch; gap: 10px; }
  .ad-seg button { flex: 1; padding: 8px 4px; }
  .ad-kpis { gap: 10px; margin-bottom: 12px; }
  .ad-kpi { padding: 14px; }
  .ad-kpi-l { font-size: 13px; }
  .ad-kpi-v { flex-direction: column; align-items: flex-start; gap: 0; margin-top: 8px; }
  .ad-kpi-v b { font-size: 21px; }
  .ad-kpi-s { font-size: 12px; }
  .ad-grid { gap: 12px; margin-bottom: 12px; }
  .ad-grid-11 { grid-template-columns: minmax(0, 1fr); }
  .ad-chart, .ad-subs, .ad-trades-card { padding: 16px; }
  .ad-feed { padding: 16px 16px 6px; }
  .ad-table-card { padding-top: 16px; }
  .ad-table-card .ad-card-h { padding: 0 16px 10px; }
  .ad-bars { height: 200px; }
  .ad-donut-row { flex-direction: column; }
  .ad-donut-l { align-self: stretch; }
}

/* ------------------------------------------------------------------ */
/* Ecrans de liste                                                    */
/* ------------------------------------------------------------------ */

.ad-back { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ad-ink); border-radius: 10px; }
@media (min-width: 1024px) { .ad-btn.ad-cta { display: none; } }
@media (max-width: 1023px) { .ad-ph-cta { display: none; } }
.ad-tool { display: flex; gap: 12px; margin-bottom: 14px; max-width: 760px; }
.ad-tool-s { flex: 1; display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 16px; background: #fff; border: 1px solid var(--ad-line); border-radius: 14px; color: #6B7792; }
.ad-tool-s:focus-within { border-color: var(--ad-blue); }
.ad-tool-s input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15.5px; color: var(--ad-ink); }
.ad-tool-f { width: 50px; height: 50px; flex: none; border: 1px solid var(--ad-line); background: #fff; border-radius: 14px; color: var(--ad-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ad-chips { display: flex; gap: 10px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ad-chips a { flex: none; height: 44px; padding: 0 20px; border-radius: 12px; background: #fff; border: 1px solid var(--ad-line); color: var(--ad-ink-2); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; }
.ad-chips a.is-on { background: var(--ad-blue); border-color: var(--ad-blue); color: #fff; }
.ad-list { list-style: none; margin: 0 0 20px; padding: 6px 18px; background: #fff; border-radius: var(--ad-radius); box-shadow: var(--ad-shadow); border: 1px solid #EDF1F7; }
.ad-list > li { position: relative; }
.ad-list > li + li { border-top: 1px solid #EEF2F8; }
.ad-row { display: flex; align-items: center; gap: 16px; padding: 14px 4px; color: var(--ad-ink); }
a.ad-row:hover { color: var(--ad-ink); background: #FAFCFF; }
.ad-row > .ic:last-child { color: #8A95AE; }
.ad-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ad-row-main b { font-size: 16px; font-weight: 700; }
.ad-row-main > span { font-size: 14.5px; color: var(--ad-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-row-msg { display: flex; align-items: center; gap: 6px; }
.ad-wrap { white-space: normal !important; }
.ad-row-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--ad-tint); color: #1565E8; display: flex; align-items: center; justify-content: center; }
.ad-row-name { color: var(--ad-ink); }
.ad-row-name:hover { color: var(--ad-blue); }
.ad-tag { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.ad-tag-ok { background: #DCF7E7; color: #15803D; }
.ad-tag-ko { background: #FDE2E4; color: #D92D3A; }
.ad-tag-run { background: #FDEBC8; color: #B45309; }
.ad-tag-wait { background: #DCEBFF; color: #1D5FD1; }
.ad-plan { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; background: #EEF2F8; color: #475569; }
.ad-plan-pro { background: #DCEBFF; color: #1D5FD1; }
.ad-plan-premium { background: #F1E6FF; color: #7E22CE; }
.ad-plan-trial { background: #FEF3C7; color: #B45309; }
.ad-amount { color: var(--ad-ink); font-size: 15px; }
.ad-cta { position: sticky; bottom: 20px; width: min(420px, 100%); height: 54px; margin: 0 auto; display: flex; font-size: 16.5px; box-shadow: 0 10px 24px rgba(11, 99, 240, .28); }

.ad-set { list-style: none; margin: 0; padding: 4px 16px; }
.ad-set li + li { border-top: 1px solid #EEF2F8; }
.ad-set a { display: flex; align-items: center; gap: 16px; min-height: 56px; color: var(--ad-ink); font-size: 16px; }
.ad-set a span:nth-child(2) { flex: 1; }
.ad-set a > .ic { color: #8A95AE; }
.ad-doc { padding: 22px 24px; font-size: 15.5px; line-height: 1.6; max-width: 760px; }
.ad-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; margin: 0; }
.ad-dl dt { font-weight: 600; }
.ad-dl dd { margin: 0; color: var(--ad-ink-2); }
.ad-svc { list-style: none; margin: 0; padding: 0; }
.ad-svc li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #EEF2F8; }
.ad-svc b { font-weight: 600; color: var(--ad-ink-2); }

@media (max-width: 1023px) {
  .ad-back { display: flex; }
  .ad-list { padding: 0 12px; border-radius: 16px; }
  .ad-row { gap: 12px; padding: 12px 0; }
  .ad-row-main b { font-size: 15.5px; }
  .ad-row-main > span { font-size: 13.5px; }
  .ad-tag { height: 28px; padding: 0 12px; font-size: 13px; }
  .ad-sub .ad-top { display: none; }
  .ad-sub .ad-content { padding-top: 14px; }
  .ad-chips { gap: 8px; }
  .ad-chips a { height: 40px; padding: 0 14px; font-size: 14px; }
  .ad-cta { bottom: 88px; width: 100%; }
}

/* ------------------------------------------------------------------ */
/* Chargement, etats vides / erreur, interactions                     */
/* ------------------------------------------------------------------ */
.ad-progress { position: fixed; z-index: 200; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, #0B63F0, #6CC3FF); opacity: 0; transition: opacity .2s; }
.ad-progress.is-on { opacity: 1; animation: ad-prog 2.4s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes ad-prog { 0% { width: 0; } 60% { width: 70%; } 100% { width: 92%; } }
.ad-skip { position: absolute; left: -999px; top: 8px; z-index: 210; background: #fff; padding: 10px 14px; border-radius: 10px; }
.ad-skip:focus { left: 12px; }

.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, #EDF1F7 25%, #F6F8FC 50%, #EDF1F7 75%); background-size: 200% 100%; animation: ad-shimmer 1.3s ease-in-out infinite; }
@keyframes ad-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk, .ad-progress.is-on, .ad-in { animation: none !important; } }
.sk-col { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sk-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.sk-gap { margin: 14px 0; }
.ad-kpi.ad-sk-card { align-items: stretch; gap: 10px; }
.sk-t { height: 13px; width: 55%; }
.sk-v { height: 24px; width: 40%; }
.sk-s { height: 11px; width: 70%; }
.sk-row { height: 44px; margin: 10px 0; }
.sk-line { height: 14px; }
.sk-av { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.sk-person { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.sk-chart { height: 240px; margin-top: 20px; display: flex; align-items: flex-end; gap: 12px; padding: 0 0 26px 38px; }
.sk-chart .sk { flex: 1; border-radius: 6px 6px 0 0; }
.sk-donut { display: flex; align-items: center; gap: 22px; margin-top: 16px; }
.sk-circle { width: 160px; height: 160px; border-radius: 50%; flex: none; }
.ad-sk-card { display: flex; align-items: center; gap: 18px; }
.ad-in { animation: ad-in .35s ease backwards; }
@keyframes ad-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ad-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 28px 16px; color: var(--ad-mute); }
.ad-state .ic { color: #9FB2D1; width: 30px; height: 30px; }
.ad-state p { margin: 0; font-size: 15px; }
.ad-empty-li { list-style: none; }
.ad-error { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 18px; border-radius: 14px; background: #FEF2F2; color: #B42318; border: 1px solid #FBD5D5; }
.ad-error p { margin: 0; flex: 1; min-width: 200px; font-weight: 500; }
.ad-error .ad-btn { height: 42px; }

a.ad-card, .ad-row, .ad-feed li a, .ad-nav-i, .ad-chips a, .ad-btn, .ad-set a { transition: background .15s, box-shadow .15s, transform .12s, color .15s, border-color .15s; }
a.ad-card:hover { transform: translateY(-2px); }
a.ad-card:active, .ad-btn:active { transform: translateY(1px); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, .ad-tr-link:focus-visible { outline: 3px solid rgba(11, 99, 240, .35); outline-offset: 2px; }
.ad-feed li a:hover { background: #F7FAFF; }
.ad-tr-link { cursor: pointer; }
.ad-tr-link:hover td { background: #F7FAFF; }
.ad-table td a { color: var(--ad-ink); font-weight: 600; }

/* En-tete : date, menu du profil */
.ad-top { position: sticky; top: 0; z-index: 30; background: rgba(245, 247, 251, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ad-date { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--ad-ink-2); font-size: 14.5px; white-space: nowrap; }
.ad-date + .ad-bell { margin-left: 0; }
.ad-me-wrap { position: relative; }
button.ad-me { border: 0; background: transparent; padding: 4px 6px; border-radius: 14px; cursor: pointer; text-align: left; color: var(--ad-ink); }
button.ad-me:hover { background: #fff; }
.ad-me-tx { display: flex; flex-direction: column; }
.ad-me-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--ad-line); border-radius: 14px; box-shadow: 0 18px 44px rgba(11, 27, 74, .16); }
.ad-me-menu a, .ad-me-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ad-ink); font-size: 15px; border: 0; background: none; cursor: pointer; }
.ad-me-menu a:hover, .ad-me-menu button:hover { background: #F2F6FC; color: var(--ad-ink); }
.ad-me-menu form { margin: 4px 0 0; border-top: 1px solid #EEF2F8; padding-top: 4px; }
.ad-me-out { color: #D92D3A !important; }
.ad-content { max-width: 1680px; width: 100%; box-sizing: border-box; }

/* Graphique : onglets */
.ad-chart-h { flex-wrap: wrap; }
.ad-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.ad-tabs button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ad-line); background: #fff; color: var(--ad-ink-2); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.ad-tabs button:hover { border-color: #C9D6EA; }
.ad-tabs button[aria-selected="true"] { background: var(--ad-blue); border-color: var(--ad-blue); color: #fff; }
.ad-chart-body { min-height: 236px; }
.ad-chart-body .ad-legend { display: flex; justify-content: center; margin: 12px 0 0; flex-wrap: wrap; }
.ad-bars.is-dense .ad-b { width: min(10px, 70%); border-radius: 2px 2px 0 0; }
.ad-bars.is-dense .ad-stack { gap: 1px; }
.ad-bars.is-dense .ad-plot { gap: 2px; }
.ad-month-l { white-space: nowrap; }

.ad-mcards { display: none; }

/* Statistiques */

/* Listes : tri, pagination, aide */
.ad-tool { max-width: 900px; }
.ad-sort { position: relative; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 12px; background: #fff; border: 1px solid var(--ad-line); border-radius: 14px; color: var(--ad-ink-2); }
.ad-sort select { border: 0; background: transparent; font-size: 14.5px; color: var(--ad-ink); max-width: 180px; cursor: pointer; }
.ad-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -6px 0 20px; color: var(--ad-mute); font-size: 14px; }
.ad-pager-b { display: inline-flex; align-items: center; gap: 10px; }
.ad-pager-b a, .ad-pager-b > span { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--ad-line); color: var(--ad-ink); }
.ad-pager-b > span { opacity: .4; }
.ad-pager-b b { color: var(--ad-ink); font-weight: 600; }
.ad-hint { margin: -4px 0 14px; font-size: 13.5px; color: var(--ad-mute); line-height: 1.5; }

/* Pages detail */

.ad-dh-back { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 500; margin-bottom: 8px; }
.ad-dh-act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ad-dh-act form { margin: 0; }
.ad-btn-danger { background: #E5484D; }
.ad-btn-danger:hover { background: #C9363B; }
.ad-pill-lg { height: 36px; min-width: 0; padding: 0 16px; font-size: 15px; }
.ad-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ad-detail-main, .ad-detail-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ad-box { padding: 20px 22px; }
.ad-box h2 { margin-bottom: 14px; }
.ad-profile { display: flex; gap: 20px; align-items: flex-start; }
.ad-profile > div { flex: 1; min-width: 0; }
.ad-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.ad-dl dd { overflow-wrap: anywhere; }
.ad-person { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ad-person b { font-size: 16px; }
.ad-person a { display: inline-flex; align-items: center; gap: 6px; }
.ad-person span { color: var(--ad-mute); }
.ad-mini-list { list-style: none; margin: 0; padding: 0; }
.ad-mini-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 0; border-bottom: 1px solid #EEF2F8; }
.ad-mini-list li:last-child { border-bottom: 0; }
.ad-mini-list li > span { color: var(--ad-mute); font-size: 14px; }
.ad-mini-list li > .ad-tag { color: inherit; }
.ad-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid #E3EBF7; }
.ad-timeline li { position: relative; padding: 0 0 16px 8px; }
.ad-timeline li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ad-blue); border: 3px solid #E3EEFF; }
.ad-timeline b { display: block; }
.ad-timeline span { font-size: 13.5px; color: var(--ad-mute); }
.ad-timeline p { margin: 4px 0 0; font-size: 14.5px; }
.ad-conv-who { display: flex; gap: 16px; margin: -8px 0 14px; }
.ad-thread { display: flex; flex-direction: column; gap: 10px; }
.ad-bubble { max-width: min(560px, 85%); padding: 10px 14px; border-radius: 14px; background: #F2F6FC; }
.ad-bubble b { font-size: 13px; }
.ad-bubble p { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ad-bubble small { font-size: 12px; color: var(--ad-mute); }
.ad-bubble-tech { align-self: flex-end; background: #E3EEFF; }
.ad-bubble-ai { background: #F3EEFF; }

@media (max-width: 1180px) {
  .ad-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .ad-date { display: none; }
  .ad-me-wrap { order: 3; }
  .ad-me-top { display: flex !important; padding: 0; }
  .ad-me-top .ad-me-tx, .ad-me-top > .ic { display: none; }
  .ad-bell { margin-left: 0; order: 2; }
  .ad-tabs { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .ad-tabs button { flex: none; }
  .ad-chart-body { min-height: 0; }
  .ad-table-card .ad-table-wrap { display: none; }
  .ad-mcards { display: block; list-style: none; margin: 0; padding: 0; }
  .ad-mcards li + li { border-top: 1px solid #EEF2F8; }
  .ad-mcards a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; color: var(--ad-ink); }
  .ad-mcards a > span:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .ad-mcards small { color: var(--ad-mute); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ad-mcards-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
  .ad-box .ad-table-wrap { display: none; }
  .ad-tool { flex-wrap: wrap; }
  .ad-tool-s { flex: 1 1 0; min-width: 0; }
  .ad-sort { order: 3; flex: 1 1 100%; height: 46px; padding: 0 12px; }
  .ad-sort select { flex: 1; max-width: none; min-width: 0; }
  .ad-profile { flex-direction: column; }
  .ad-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ad-dl dd { margin-bottom: 10px; }
  .sk-circle { width: 120px; height: 120px; }
}
@media (max-width: 380px) {
  .ad-kpis { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ */
/* Listes, style « clair et epure » : chiffres-filtres, panneau, tableau */
/* ------------------------------------------------------------------ */

.ad-ph-t { flex: 1; min-width: 0; }
.ad-ph-t h1 { margin: 0; font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.ad-ph-sub { margin: 4px 0 0; font-size: 14.5px; color: var(--ad-ink-2); }
.ad-ph-cta { flex: none; }

.ad-stabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ad-stab { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--ad-line); border-radius: var(--ad-radius); color: var(--ad-ink-2); font-size: 13.5px; font-weight: 500; transition: border-color .15s, box-shadow .15s, background .15s; }
.ad-stab:hover { color: var(--ad-ink); border-color: #CFDBEE; }
.ad-stab b { font-size: 24px; font-weight: 750; color: var(--ad-ink); letter-spacing: -.02em; line-height: 1; }
.ad-stab-h { display: flex; align-items: center; gap: 10px; }
.ad-stab .ad-kpi-ic { width: 30px; height: 30px; border-radius: 9px; }
.ad-stab.is-on { border-color: var(--ad-blue); box-shadow: 0 0 0 3px rgba(11, 99, 240, .1); color: var(--ad-blue); }
.ad-tone-red { background: #FDECEC; color: #D92D3A; }

.ad-panel { padding: 0; overflow: hidden; margin-bottom: 16px; }
.ad-panel .ad-tool { display: flex; align-items: center; gap: 10px; max-width: none; margin: 0; padding: 14px 16px; border-bottom: 1px solid #EEF1F6; }
.ad-panel .ad-tool-s { flex: 1 1 auto; max-width: 460px; height: 40px; padding: 0 12px; gap: 10px; border-radius: 10px; background: #F7F9FC; color: var(--ad-mute); }
.ad-panel .ad-tool-s:focus-within { background: #fff; }
.ad-panel .ad-tool-s input { font-size: 14px; }
.ad-tool-x { display: flex; color: var(--ad-mute); transform: rotate(45deg); }
.ad-tool-x:hover { color: var(--ad-ink); }
.ad-panel .ad-sort { margin-left: auto; height: 40px; padding: 0 10px 0 12px; gap: 6px; border-radius: 10px; font-size: 13px; }
.ad-sort-l { color: var(--ad-mute); }
.ad-panel .ad-sort select { appearance: none; -webkit-appearance: none; font-size: 13.5px; font-weight: 600; padding-right: 2px; }
.ad-panel .ad-tool-f { width: auto; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; background: var(--ad-blue); border-color: var(--ad-blue); color: #fff; }
.ad-panel .ad-tool-f:hover { background: var(--ad-blue-d); }
.ad-panel .ad-sort + .ad-tool-f { margin-left: 0; }
.ad-panel .ad-tool-s + .ad-tool-f { margin-left: auto; }

.ad-panel .ad-list { margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.ad-panel .ad-list > li + li { border-top: 1px solid #EEF1F6; }
.ad-panel .ad-row { display: grid; grid-template-columns: var(--cols, minmax(0, 1fr) auto 18px); align-items: center; gap: 14px; padding: 11px 16px; color: var(--ad-ink); }
.ad-panel a.ad-row:hover { background: #F8FAFD; color: var(--ad-ink); }
.ad-panel .ad-row > .ic:last-child { color: #A3ADC2; }
.ad-c-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ad-panel .ad-row-main { gap: 1px; }
.ad-panel .ad-row-main b { font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-panel .ad-row-main > span { font-size: 13px; }
.ad-panel .ad-row-ic { width: 40px; height: 40px; border-radius: 11px; }
.ad-c { min-width: 0; font-size: 14px; color: var(--ad-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.ad-c .ic { color: var(--ad-mute); }
.ad-c-num { font-weight: 650; color: var(--ad-ink); }
.ad-c-strong { font-weight: 650; color: var(--ad-ink); }
.ad-c-mute { color: var(--ad-mute); font-size: 13.5px; }
.ad-c-end { justify-content: flex-end; gap: 8px; }
.ad-c-time { flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12.5px; color: var(--ad-mute); }
.ad-c-time small { font-size: 12.5px; }
.ad-panel .ad-tag, .ad-panel .ad-plan { height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.ad-tag-ok { background: #E3F6EA; color: #15803D; }
.ad-tag-ko { background: #FDE8E8; color: #B42318; }
.ad-tag-run { background: #E3EEFF; color: #1D5FD1; }
.ad-tag-wait { background: #FFF4E0; color: #9A5B00; }
.ad-list-h { display: grid; grid-template-columns: var(--cols); gap: 14px; padding: 9px 16px; background: #F6F8FB; font-size: 12px; font-weight: 600; color: var(--ad-mute); }
.ad-list-h span:last-of-type:not(:first-child) { text-align: right; }
.ad-list-h span:nth-last-child(2) { text-align: right; }
.ad-panel .ad-list > li.ad-list-h + li { border-top: 1px solid #EEF1F6; }
.is-unread .ad-row-main b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--ad-blue); vertical-align: middle; }
.ad-new { font-size: 11px; font-weight: 700; color: var(--ad-blue); }
.m-only { display: none !important; }

.ad-cols-tech { --cols: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1fr) 80px 96px 18px; }
.ad-cols-client { --cols: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.2fr) 90px 18px; }
.ad-cols-mission { --cols: minmax(0, 1.6fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 120px 120px 18px; }
.ad-cols-sub { --cols: minmax(0, 2fr) 130px 120px 120px 120px 90px 18px; }
.ad-cols-pay { --cols: minmax(0, 1.8fr) minmax(0, 1.4fr) 130px 130px 110px 18px; }
.ad-cols-msg { --cols: minmax(0, 1fr) auto 18px; }
.ad-cols-notif { --cols: minmax(0, 1fr) auto; }

.ad-panel .ad-pager { margin: 0; padding: 12px 16px; border-top: 1px solid #EEF1F6; font-size: 13px; }
.ad-panel .ad-pager-b a, .ad-panel .ad-pager-b > span { width: 34px; height: 34px; border-radius: 9px; }
.ad-panel .ad-state { padding: 40px 16px; }
.ad-panel-h { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 16px 8px; font-size: 13px; font-weight: 700; color: var(--ad-ink-2); text-transform: uppercase; letter-spacing: .05em; }
.ad-panel-h span { font-size: 12px; color: var(--ad-mute); font-weight: 600; }

.ad-zones { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ad-zones a { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--ad-line); border-radius: 12px; color: var(--ad-ink); }
.ad-zones a:hover { border-color: #CFDBEE; background: #F8FAFD; color: var(--ad-ink); }
.ad-zones .ad-row-ic { width: 38px; height: 38px; border-radius: 10px; }
.ad-zones > .ic, .ad-zones a > .ic { color: #A3ADC2; }
.ad-zone-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ad-zone-t b { font-size: 14.5px; }
.ad-zone-t small { font-size: 12.5px; color: var(--ad-mute); }
.ad-zone-t .ad-tr-b { margin-top: 6px; height: 6px; }
.ad-zones .ad-empty-li { grid-column: 1 / -1; }

.ad-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ad-plan-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ad-ink-2); }
.ad-plan-card .ad-plan { align-self: flex-start; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; margin-bottom: 6px; }
.ad-plan-card p { margin: 0; }
.ad-plan-card b { color: var(--ad-ink); }

.ad-set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ad-set-card { padding: 18px 8px 8px; }
.ad-set-card h2 { margin: 0 12px 6px; font-size: 13px; font-weight: 700; color: var(--ad-mute); text-transform: uppercase; letter-spacing: .06em; }
.ad-set-card .ad-set { padding: 0; }
.ad-set-card .ad-set a { gap: 14px; min-height: 0; padding: 12px; border-radius: 10px; font-size: 14.5px; }
.ad-set-card .ad-set a:hover { background: #F8FAFD; }
.ad-set-card .ad-set li + li { border-top: 0; }
.ad-set-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ad-set-tx b { font-weight: 600; }
.ad-set-tx small { font-size: 12.5px; color: var(--ad-mute); }
.ad-set-card .ad-kpi-ic { width: 36px; height: 36px; }

@media (max-width: 1180px) {
  .ad-cols-sub { --cols: minmax(0, 2fr) 120px 110px 110px 90px 18px; }
  .ad-cols-sub .ad-list-h span:nth-child(5), .ad-cols-sub .ad-row > .ad-c:nth-child(5) { display: none; }
  .ad-cols-mission { --cols: minmax(0, 1.6fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 120px 18px; }
  .ad-cols-mission .ad-list-h span:nth-child(4), .ad-cols-mission .ad-row > .ad-c:nth-child(4) { display: none; }
}
@media (max-width: 1023px) {
  .ad-ph-t { text-align: center; }
  .ad-ph-t h1 { font-size: 20px; }
  .ad-ph-sub { font-size: 13px; }
  .ad-stabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
  .ad-stab { padding: 12px; font-size: 12.5px; gap: 8px; }
  .ad-stab b { font-size: 20px; }
  .ad-stabs:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-stabs:has(> :nth-child(3):last-child) .ad-stab-h { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ad-panel .ad-tool { flex-wrap: wrap; padding: 12px; }
  .ad-panel .ad-tool-s { max-width: none; flex: 1 1 0; min-width: 0; }
  .ad-panel .ad-sort { order: 3; flex: 1 1 100%; margin-left: 0; }
  .ad-panel .ad-sort select { flex: 1; max-width: none; }
  .ad-panel .ad-tool-f { padding: 0 12px; }
  .ad-list-h, .d-only { display: none !important; }
  .m-only { display: block !important; }
  .ad-c-end .m-only { display: inline-flex !important; }
  .ad-panel .ad-row { grid-template-columns: minmax(0, 1fr) auto 16px; gap: 10px; padding: 12px; }
  .ad-panel .ad-row-main > span { white-space: nowrap; }
  .ad-c-end { flex-direction: column; align-items: flex-end; gap: 6px; }
  .ad-cols-notif .ad-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ad-zones { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 10px; }
  .ad-plans { grid-template-columns: minmax(0, 1fr); }
  .ad-set-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* Fiches : chiffres cles */
.ad-dstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ad-dstat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-width: 0; }
.ad-dstat > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ad-dstat small { font-size: 12.5px; color: var(--ad-mute); }
.ad-dstat b { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-box h2 { font-size: 15px; }
.ad-profile-col { flex-direction: column; }
.ad-profile-col .ad-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.ad-profile-col .ad-dl dd { margin-bottom: 10px; }
.ad-dl dt { font-size: 13.5px; color: var(--ad-mute); font-weight: 500; }
.ad-dl dd { font-size: 14.5px; color: var(--ad-ink); }
@media (max-width: 1023px) {
  .ad-dstats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
  .ad-dstat { padding: 12px; gap: 10px; }
  .ad-dstat b { font-size: 14.5px; }
}

/* ------------------------------------------------------------------ */
/* Animations (desactivees si l'appareil demande moins de mouvement)  */
/* ------------------------------------------------------------------ */
.ad-kpi-ic { width: 38px; height: 38px; }
.ad-kpi-ic .ic { width: 22px; height: 22px; }
@keyframes ad-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ad-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ad-growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ad-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ad-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .ad-content > * { animation: ad-rise .55s cubic-bezier(.2, .7, .2, 1) backwards; }
  .ad-content > :nth-child(2) { animation-delay: .06s; }
  .ad-content > :nth-child(3) { animation-delay: .12s; }
  .ad-content > :nth-child(4) { animation-delay: .18s; }
  .ad-content > :nth-child(5) { animation-delay: .24s; }
  .ad-content > :nth-child(n+6) { animation-delay: .3s; }
  .ad-dash > * { animation: ad-rise .55s cubic-bezier(.2, .7, .2, 1) backwards; }
  .ad-dash > :nth-child(3) { animation-delay: .1s; }
  .ad-dash > :nth-child(4) { animation-delay: .2s; }
  .ad-dash > :nth-child(5) { animation-delay: .3s; }
  .ad-kpi.ad-in:nth-child(2) { animation-delay: .07s; }
  .ad-kpi.ad-in:nth-child(3) { animation-delay: .14s; }
  .ad-kpi.ad-in:nth-child(4) { animation-delay: .21s; }
  .ad-kpi .ad-kpi-ic { animation: ad-pop .5s .15s cubic-bezier(.2, .7, .2, 1) backwards; }
  .ad-b:not(.is-zero) { transform-origin: bottom; animation: ad-grow .75s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 50ms + .1s); }
  .ad-b em { animation: ad-fade .4s backwards; animation-delay: calc(var(--i, 0) * 50ms + .7s); }
  .ad-trades li { animation: ad-rise .45s backwards; animation-delay: calc(var(--i, 0) * 60ms); }
  .ad-tr-b i, .ad-split i { transform-origin: left; animation: ad-growx .9s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 60ms + .15s); }
  .ad-table-wrap { animation: ad-rise .45s .1s cubic-bezier(.2, .7, .2, 1) backwards; }
  .ad-subs-l li, .ad-feed li { animation: ad-rise .4s backwards; }
  .ad-subs-l li:nth-child(2), .ad-feed li:nth-child(2) { animation-delay: .05s; }
  .ad-subs-l li:nth-child(3), .ad-feed li:nth-child(3) { animation-delay: .1s; }
  .ad-subs-l li:nth-child(4), .ad-feed li:nth-child(4) { animation-delay: .15s; }
  .ad-subs-l li:nth-child(5), .ad-feed li:nth-child(5) { animation-delay: .2s; }
  .ad-panel .ad-list > li, .ad-zones > li, .ad-stabs > a, .ad-dstats > div { animation: ad-rise .4s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 35ms + .1s); }
  .ad-nav-i { transition: background .15s, color .15s, transform .15s; }
  .ad-nav-i:hover { transform: translateX(3px); }
  .ad-nav-i.is-on .ad-nav-ic { animation: ad-pop .45s cubic-bezier(.2, .7, .2, 1) backwards; }
  .ad-kpi, .ad-stab, .ad-zones a, .ad-dstat { transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s, border-color .2s; }
  .ad-kpi:hover, .ad-stab:hover, .ad-zones a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 27, 51, .08); }
  .ad-btn { transition: background .15s, transform .12s, box-shadow .2s; }
  .ad-btn:hover { box-shadow: 0 8px 18px rgba(11, 99, 240, .22); }
  .ad-btn-ghost:hover { box-shadow: none; }
  .ad-seg button { transition: background .2s, color .2s; }
  .ad-dot, .ad-badge, .ad-bell-n { animation: ad-pop .5s .4s cubic-bezier(.2, .7, .2, 1) backwards; }
}
.ad-td-who { display: inline-flex; align-items: center; gap: 10px; }
.ad-th-r, .ad-td-r { text-align: right !important; }
.ad-td-r b { font-weight: 650; }
.ad-mcards-r b { font-size: 14px; }

/* Finances : paiements et abonnements */
.ad-ph-btn { flex: none; }
.ad-sub-h { margin: 22px 0 0; font-size: 13px; font-weight: 700; color: var(--ad-mute); text-transform: uppercase; letter-spacing: .05em; }
.ad-trades.is-money li { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) auto; }
.ad-trades.is-money b { white-space: nowrap; }
.ad-trades b small { font-size: 11px; font-weight: 600; color: var(--ad-mute); }
.ad-chart .ad-bars { height: 260px; }
.ad-btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.ad-due { list-style: none; margin: 14px 0 0; padding: 0; }
.ad-due li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.ad-due li + li { border-top: 1px solid #EEF1F6; }
.ad-due form { margin: 0; }
.ad-due-d { flex: none; width: 48px; height: 48px; border-radius: 12px; background: #F3F6FB; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ad-due-d b { font-size: 17px; }
.ad-due-d small { font-size: 10.5px; color: var(--ad-mute); }
.ad-due-d.is-soon { background: #FFF4E0; color: #9A5B00; }
.ad-due-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ad-due-t a { color: var(--ad-ink); font-weight: 650; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-due-t small { font-size: 12.5px; color: var(--ad-mute); }
@media (prefers-reduced-motion: no-preference) {
  .ad-due li { animation: ad-rise .4s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 50ms + .1s); }
}
@media (max-width: 1023px) {
  .ad-ph-btn { padding: 0 12px; height: 38px; font-size: 13px; }
  .ad-chart .ad-bars { height: 200px; }
}

/* Statistiques */
.ad-grid-111 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-chip-g { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12.5px; font-weight: 650; }
.ad-chip-g .ic { width: 14px; height: 14px; }
.ad-chip-g i { font-style: normal; font-weight: 500; color: var(--ad-mute); margin-left: 2px; }
.ad-chip-g.is-up { color: #15803D; }
.ad-chip-g.is-down { color: #B42318; }
.ad-chip-g.is-flat { color: var(--ad-mute); font-weight: 500; }
.ad-rings { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.ad-ring { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto; align-items: center; gap: 16px; position: relative; }
.ad-ring svg { width: 96px; height: 96px; display: block; }
.ad-ring-c { position: absolute; left: 0; top: 0; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; gap: 1px; }
.ad-ring-c b { font-size: 22px; font-weight: 750; }
.ad-ring-c small { font-size: 12px; font-weight: 700; color: var(--ad-mute); margin-top: 4px; }
.ad-ring-t { display: flex; flex-direction: column; }
.ad-ring-t b { font-size: 14.5px; }
.ad-ring-t small { font-size: 12.5px; color: var(--ad-mute); }
@keyframes ad-ring { from { stroke-dasharray: 0 999; } }
@media (prefers-reduced-motion: no-preference) {
  .ad-ring-v { animation: ad-ring 1.1s .2s cubic-bezier(.2, .7, .2, 1) backwards; }
}
@media (max-width: 1180px) { .ad-grid-111 { grid-template-columns: minmax(0, 1fr); } }

/* Annonces */
.ad-ann { align-items: start; }
.ad-compose { padding: 20px; display: flex; flex-direction: column; }
.ad-compose h2 { margin-bottom: 14px; }
.ad-aud { border: 0; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ad-aud legend { padding: 0; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--ad-ink-2); }
.ad-aud-c { position: relative; cursor: pointer; }
.ad-aud-c input { position: absolute; opacity: 0; pointer-events: none; }
.ad-aud-b { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border: 1px solid var(--ad-line); border-radius: 12px; transition: border-color .15s, box-shadow .15s, background .15s; }
.ad-aud-b .ad-kpi-ic { margin-bottom: 6px; }
.ad-aud-b b { font-size: 14.5px; }
.ad-aud-b small { font-size: 12.5px; color: var(--ad-mute); }
.ad-aud-c:hover .ad-aud-b { border-color: #CFDBEE; }
.ad-aud-c input:checked + .ad-aud-b { border-color: var(--ad-blue); background: #F7FAFF; box-shadow: 0 0 0 3px rgba(11, 99, 240, .1); }
.ad-aud-c input:focus-visible + .ad-aud-b { outline: 3px solid rgba(11, 99, 240, .35); outline-offset: 2px; }
.ad-filters { margin-top: 8px; padding: 14px; border-radius: 12px; background: #F7F9FC; }
.ad-filters + .ad-filters { margin-top: 8px; }
.ad-f-l { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 16px 0 8px; font-size: 13.5px; font-weight: 600; color: var(--ad-ink-2); }
.ad-filters .ad-f-l:first-child { margin-top: 0; }
.ad-f-l small { font-weight: 500; color: var(--ad-mute); font-size: 12px; }
.ad-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-chk { cursor: pointer; }
.ad-chk input { position: absolute; opacity: 0; pointer-events: none; }
.ad-chk span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ad-line); background: #fff; font-size: 13px; font-weight: 500; color: var(--ad-ink-2); transition: all .15s; }
.ad-chk span .ic { display: none; }
.ad-chk input:checked + span { background: var(--ad-blue); border-color: var(--ad-blue); color: #fff; }
.ad-chk input:checked + span .ic { display: block; }
.ad-chk input:focus-visible + span { outline: 3px solid rgba(11, 99, 240, .35); outline-offset: 2px; }
.ad-input { width: 100%; border: 1px solid #D5DDEA; border-radius: 10px; padding: 10px 12px; font-size: 15px; background: #fff; color: var(--ad-ink); }
.ad-input:focus { outline: 0; border-color: var(--ad-blue); box-shadow: 0 0 0 3px rgba(11, 99, 240, .12); }
textarea.ad-input { resize: vertical; min-height: 120px; line-height: 1.5; }
.ad-compose-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid #EEF1F6; }
.ad-reach { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ad-ink-2); }
.ad-preview { padding: 20px; position: sticky; top: 84px; }
.ad-phone { margin: 16px 0; padding: 18px 14px; border-radius: 18px; background: linear-gradient(160deg, #0A3FC2, #2F8BFF); }
.ad-notif { display: flex; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 24px rgba(0, 20, 80, .25); }
.ad-notif-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; background: #EAF2FF; display: flex; align-items: center; justify-content: center; }
.ad-notif-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ad-notif-t small { font-size: 11px; color: var(--ad-mute); }
.ad-notif-t b { font-size: 13.5px; overflow-wrap: anywhere; }
.ad-notif-t > span { color: var(--ad-ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ad-reach-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.ad-reach-big b { font-size: 34px; font-weight: 750; letter-spacing: -.02em; color: var(--ad-blue); }
.ad-reach-big > span { font-size: 15px; font-weight: 600; }
.ad-reach-big small { flex-basis: 100%; font-size: 12.5px; color: var(--ad-mute); }
.ad-ann-aud { display: flex !important; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--ad-mute); white-space: normal !important; }
.ad-ann-hist .ad-row-main > .ad-row-msg { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (prefers-reduced-motion: no-preference) {
  .ad-notif { animation: ad-rise .5s .2s cubic-bezier(.2, .7, .2, 1) backwards; }
  .ad-filters:not([hidden]) { animation: ad-rise .3s cubic-bezier(.2, .7, .2, 1) backwards; }
}
@media (max-width: 1023px) {
  .ad-aud { grid-template-columns: minmax(0, 1fr); }
  .ad-aud-b { flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: 10px; }
  .ad-aud-b .ad-kpi-ic { margin: 0; }
  .ad-aud-b small { flex-basis: 100%; padding-left: 48px; margin-top: -6px; }
  .ad-preview { position: static; }
  .ad-compose-f .ad-btn { width: 100%; }
}
.ad-td-sub { display: block; font-size: 12px; color: var(--ad-mute); }

/* Affiliation */
.ad-cols-aff { --cols: minmax(0, 1.8fr) 130px 120px 120px 130px minmax(0, 1.3fr) 0; }
.ad-cols-com { --cols: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 130px 100px 0; }
.ad-code { font: 650 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; padding: 5px 8px; border-radius: 7px; background: #F3F6FB; color: var(--ad-ink); }
.ad-rate { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.ad-rate input { width: 58px; height: 32px; padding: 0 6px; border: 1px solid var(--ad-line); border-radius: 8px; font-size: 13.5px; text-align: right; }
.ad-rate input:focus { outline: 0; border-color: var(--ad-blue); }
.ad-rate span { font-size: 13px; color: var(--ad-mute); }
.ad-rate button { width: 30px; height: 30px; border: 1px solid var(--ad-line); border-radius: 8px; background: #fff; color: var(--ad-blue); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ad-rate button:hover { background: var(--ad-tint); }
.ad-c-sub { font-weight: 500; color: var(--ad-mute); font-size: 12.5px; }
.ad-aff-act { flex-wrap: wrap; }
.ad-aff-act form { margin: 0; }
.ad-row.is-off { opacity: .6; }
.ad-row-name { color: var(--ad-ink); }
@media (max-width: 1023px) {
  .ad-aff-act { flex-direction: column; align-items: flex-end; }
}

/* ------------------------------------------------------------------ */
/* Animations captivantes : bandeau d'accueil, courbes, lumiere       */
/* ------------------------------------------------------------------ */
.ad-hero { position: relative; overflow: hidden; isolation: isolate; margin-bottom: 18px; padding: 26px 28px; border-radius: 20px; color: #fff;
  background: linear-gradient(120deg, #0A3FC2 0%, #0B63F0 38%, #2F8BFF 62%, #0A47D6 100%); background-size: 220% 220%; box-shadow: 0 18px 40px rgba(11, 99, 240, .22); }
.ad-hero-in { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; }
.ad-hero-t { min-width: 0; flex: 1 1 380px; }
.ad-hero-k { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.ad-hero-k [data-clock]::first-letter { text-transform: uppercase; }
.ad-live { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 650; font-size: 12px; letter-spacing: .02em; }
.ad-live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; }
.ad-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4ADE80; }
.ad-hero h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.ad-hero-msg { position: relative; height: 26px; margin-top: 8px; overflow: hidden; }
.ad-hero-msg p { position: absolute; inset: 0; margin: 0; font-size: 15.5px; line-height: 26px; color: rgba(255, 255, 255, .92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(100%); }
.ad-hero-msg p.is-on { opacity: 1; transform: none; }
.ad-hero-msg p.is-out { opacity: 0; transform: translateY(-100%); }
.ad-hero-msg b { color: #fff; font-weight: 700; }
.ad-hero-msg i { opacity: .8; }
.ad-hero-orb { position: absolute; z-index: 0; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.ad-hero-orb.o1 { width: 340px; height: 340px; right: -90px; top: -150px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 70%); }
.ad-hero-orb.o2 { width: 220px; height: 220px; right: 22%; bottom: -130px; background: radial-gradient(circle at 50% 50%, rgba(108, 195, 255, .45), rgba(108, 195, 255, 0) 70%); }
.ad-hero-orb.o3 { width: 160px; height: 160px; left: -50px; top: -60px; background: radial-gradient(circle, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 70%); }
.ad-hero-dots { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 35%, #000 100%); }
.ad-seg-glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ad-seg-glass button { color: rgba(255, 255, 255, .9); }
.ad-seg-glass button:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ad-seg-glass button[aria-checked="true"] { background: #fff; color: #0B3FC2; }
.ad-btn-white { background: #fff; color: #0B3FC2; }
.ad-btn-white:hover { background: #F1F6FF; color: #0B3FC2; }

/* Mini-courbes dans les cartes chiffres */
.ad-kpi { position: relative; overflow: hidden; }
.ad-spark { display: block; width: calc(100% + 40px); height: 38px; margin: 8px -20px -18px; }

/* Lumiere qui suit la souris */
.ad-card:not(.ad-preview) { position: relative; }
.ad-card:not(.ad-preview)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(11, 99, 240, .09), transparent 70%); }
.ad-card:not(.ad-preview):hover::after { opacity: 1; }
.ad-kpi { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s; will-change: transform; }

/* Barre la plus haute : reflet qui passe */
.ad-b.is-max { overflow: hidden; }
.ad-b.is-max::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); }

/* Bouton principal : reflet au survol */
.ad-btn:not(.ad-btn-ghost):not(.ad-cta) { position: relative; overflow: hidden; }
.ad-btn:not(.ad-btn-ghost):not(.ad-cta)::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); opacity: 0; }

/* Menu : indicateur de la page active */
.ad-nav-i { position: relative; }
.ad-nav-i.is-on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #2F8BFF, #0B63F0); }

@keyframes ad-hero-bg { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes ad-float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.08); } }
@keyframes ad-float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(50px, -24px); } }
@keyframes ad-float3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 26px); } }
@keyframes ad-dots { from { background-position: 0 0; } to { background-position: 22px 22px; } }
@keyframes ad-ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes ad-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ad-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes ad-sweep { from { left: -60%; opacity: 1; } to { left: 130%; opacity: 1; } }
@keyframes ad-bounce { 0% { transform: scaleY(0); } 70% { transform: scaleY(1.06); } 100% { transform: scaleY(1); } }
@keyframes ad-msg-in { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@keyframes ad-hero-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ad-nav-pill { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: no-preference) {
  .ad-hero { animation: ad-hero-in .7s cubic-bezier(.2, .7, .2, 1) backwards, ad-hero-bg 16s ease-in-out infinite; }
  .ad-hero-orb.o1 { animation: ad-float1 14s ease-in-out infinite; }
  .ad-hero-orb.o2 { animation: ad-float2 11s ease-in-out infinite; }
  .ad-hero-orb.o3 { animation: ad-float3 13s ease-in-out infinite; }
  .ad-hero-dots { animation: ad-dots 6s linear infinite; }
  .ad-live i::after { animation: ad-ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
  .ad-hero-msg p { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .ad-hero h1 { animation: ad-rise .6s .15s cubic-bezier(.2, .7, .2, 1) backwards; }
  .ad-spark-l { stroke-dasharray: 1; animation: ad-draw 1.4s .35s cubic-bezier(.4, 0, .2, 1) backwards; }
  .ad-spark-a { animation: ad-fade 1s .9s ease backwards; }
  .ad-b:not(.is-zero) { animation-name: ad-bounce; animation-duration: .9s; animation-timing-function: cubic-bezier(.2, .9, .3, 1.2); }
  .ad-b.is-max::after { animation: ad-shine 3.6s 1.4s ease-in-out infinite; }
  .ad-btn:not(.ad-btn-ghost):not(.ad-cta):hover::after { animation: ad-sweep .7s ease; }
  .ad-nav-i.is-on::before { transform-origin: center; animation: ad-nav-pill .45s .1s cubic-bezier(.2, .7, .2, 1) backwards; }

  /* Transition douce d'une page a l'autre (navigateurs recents) */
  @view-transition { navigation: auto; }
  .ad-side { view-transition-name: ad-side; }
  .ad-top { view-transition-name: ad-top; }
  ::view-transition-old(root) { animation: .22s ease both ad-vt-out; }
  ::view-transition-new(root) { animation: .38s cubic-bezier(.2, .7, .2, 1) both ad-vt-in; }
}
@keyframes ad-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes ad-vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1023px) {
  .ad-hero { padding: 20px 18px; border-radius: 18px; margin-bottom: 14px; }
  .ad-hero h1 { font-size: 23px; }
  .ad-hero-msg { height: 44px; }
  .ad-hero-msg p { white-space: normal; line-height: 22px; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ad-hero .ad-hello-act { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .ad-hero .ad-seg button { flex: 1; padding: 8px 4px; }
  .ad-hero .ad-btn { justify-content: center; }
  .ad-nav-i.is-on::before { left: -12px; }
}

/* ------------------------------------------------------------------ */
/* En-tetes animes des autres pages (meme esprit que le tableau de bord) */
/* ------------------------------------------------------------------ */
.ad-hero-sm { padding: 22px 24px; margin-bottom: 16px; border-radius: 18px; }
.ad-phero .ad-hero-in { align-items: center; flex-wrap: nowrap; gap: 16px; }
.ad-phero .ad-ph-t { flex: 1; min-width: 0; text-align: left; }
.ad-phero h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.ad-phero .ad-ph-sub { margin: 4px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, .88); }
.ad-phero .ad-back { color: #fff; }
.ad-hero-badge { flex: none; width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ad-hero-badge .ic { width: 26px; height: 26px; }
.ad-hero-ic { position: absolute; z-index: 1; right: 6%; top: 50%; margin-top: -75px; color: #fff; opacity: .1; pointer-events: none; }
.ad-hero-ic .ic { width: 150px; height: 150px; }
.ad-phero-act { flex: none; display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.ad-phero-act:empty { display: none; }
.ad-phero-act form { margin: 0; }
.ad-phero .ad-btn:not(.ad-btn-danger):not(.ad-btn-ghost) { background: #fff; color: #0B3FC2; }
.ad-phero .ad-btn:not(.ad-btn-danger):not(.ad-btn-ghost):hover { background: #F1F6FF; }
.ad-phero .ad-btn-ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
.ad-phero .ad-btn-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.ad-phero .ad-pill-lg { background: #fff; }
.ad-dhero .ad-dh-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.ad-dhero .ad-dh-back:hover { color: #fff; }
@keyframes ad-ic-float { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes ad-badge-in { 0% { transform: scale(.4) rotate(-20deg); opacity: 0; } 70% { transform: scale(1.1) rotate(4deg); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ad-hero-ic { animation: ad-ic-float 7s ease-in-out infinite; }
  .ad-hero-badge { animation: ad-badge-in .7s .1s cubic-bezier(.2, .7, .2, 1) backwards; }
  .ad-phero h1 { animation: ad-rise .6s .12s cubic-bezier(.2, .7, .2, 1) backwards; }
  .ad-phero .ad-ph-sub { animation: ad-rise .6s .22s cubic-bezier(.2, .7, .2, 1) backwards; }
  .ad-phero-act { animation: ad-rise .6s .3s cubic-bezier(.2, .7, .2, 1) backwards; }
}
@media (max-width: 1023px) {
  .ad-hero-sm { padding: 16px 14px; border-radius: 16px; margin-bottom: 12px; }
  .ad-phero .ad-hero-in { gap: 10px; }
  .ad-phero h1 { font-size: 20px; }
  .ad-phero .ad-ph-sub { font-size: 13px; }
  .ad-hero-badge { width: 42px; height: 42px; border-radius: 12px; }
  .ad-hero-badge .ic { width: 22px; height: 22px; }
  .ad-phero .ad-back { display: flex; width: 36px; height: 36px; margin-left: -6px; }
  .ad-phero .ad-ph-t { text-align: left; }
  .ad-phero .ad-ph-cta { display: none; }
  .ad-hero-ic { right: -20px; }
  .ad-hero-ic .ic { width: 120px; height: 120px; }
  .ad-dhero .ad-hero-in { flex-wrap: wrap; }
  .ad-dhero .ad-phero-act { width: 100%; flex-wrap: wrap; }
  .ad-phero-act .ad-ph-btn { padding: 0 10px; }
}
@media (max-width: 1023px) {
  .ad-phero:has(.ad-seg) .ad-hero-in { flex-wrap: wrap; }
  .ad-phero:has(.ad-seg) .ad-phero-act { width: 100%; }
  .ad-phero .ad-phero-act .ad-seg { width: 100%; }
  .ad-phero .ad-phero-act .ad-seg button { flex: 1; padding: 8px 4px; }
}
@media (max-width: 1023px) {
  .ad-phero .ad-btn-t { display: none; }
  .ad-phero-act .ad-ph-btn { width: 40px; padding: 0; }
}
.ad-phero-act .ad-ph-btn[download] { gap: 6px; }
@media (max-width: 1023px) { .ad-chip-g i { display: none; } .ad-chip-g { white-space: nowrap; } }

/* Icones de metiers en couleur */
.ad-trade-tile { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.ad-trade-tile .ic-trade { width: 24px; height: 24px; }
.tt-plomb { background: #E0EFFF; } .tt-elec { background: #FEF3C7; } .tt-froid { background: #E0F2FE; }
.tt-peint { background: #FCE7F3; } .tt-macon { background: #FFEDD5; } .tt-menuis { background: #FDF0E1; } .tt-autre { background: #EAF2FF; }
.ad-c .ic-trade { flex: none; color: initial; }
@media (prefers-reduced-motion: no-preference) {
  .ad-panel a.ad-row:hover .ad-trade-tile { transform: scale(1.08) rotate(-4deg); }
  .ad-trade-tile { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
}

/* Tableaux : chaque colonne cadree sous son titre (alignement a gauche) */
@media (min-width: 1024px) {
  .ad-panel .ad-list-h span, .ad-list-h span:nth-last-child(2), .ad-list-h span:last-of-type:not(:first-child) { text-align: left; }
  .ad-panel .ad-row .ad-c-end { justify-content: flex-start; }
  .ad-panel .ad-row, .ad-list-h { column-gap: 20px; }
  .ad-cols-mission { --cols: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.3fr) 130px 118px 18px; }
  .ad-cols-tech { --cols: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr) 90px 100px 18px; }
  .ad-panel .ad-row { min-height: 64px; }
  .ad-c-mute { white-space: nowrap; }
}

/* Haut du menu : logo et badge « Espace securise » */
.ad-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 4px 8px 16px; border-bottom: 1px solid var(--ad-line); }
.ad-brand .ad-logo { margin: 0 0 0 2px; }
.ad-logo-img { position: relative; display: block; }
.ad-logo-img img { height: 42px; width: auto; display: block; }
.ad-logo-img::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%); background-size: 250% 100%; background-position: 130% 0;
  -webkit-mask: url('../img/logo-full.png') center / contain no-repeat; mask: url('../img/logo-full.png') center / contain no-repeat; }
.ad-logo-g { margin: -5px 12px 0 0; font-size: 13px; font-weight: 700; color: var(--ad-blue); letter-spacing: .02em; }
.ad-secure { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; background: #ECFDF3; color: #15803D; font-size: 11.5px; font-weight: 650; }
.ad-secure:hover { background: #DCFCE7; color: #166534; }
.ad-secure .ic { width: 14px; height: 14px; }
.ad-secure i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; margin-left: 2px; }
.ad-secure i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22C55E; }
@keyframes ad-logo-shine { 0%, 70% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes ad-logo-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ad-logo-img::after { animation: ad-logo-shine 5.5s 1s ease-in-out infinite; }
  .ad-brand .ad-logo { animation: ad-logo-in .6s cubic-bezier(.2, .7, .2, 1) backwards; }
  .ad-secure { animation: ad-rise .5s .25s cubic-bezier(.2, .7, .2, 1) backwards; }
  .ad-secure i::after { animation: ad-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
  .ad-logo:hover .ad-logo-img img { transform: scale(1.03); }
  .ad-logo-img img { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
}
.ad-logo .ad-logo-img { margin: 0; }

/* Securite : bandeau, page Securite, carte du compte */
.ad-hero-sec { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.ad-sec-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-sec-chip:hover { color: #fff; background: rgba(255, 255, 255, .24); }
.ad-sec-chip .ic { width: 14px; height: 14px; flex: none; }
.ad-sec-chip.is-warn { background: #FEF3C7; border-color: #FDE68A; color: #92400E; }
.ad-sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; align-items: start; }
.ad-sec-now { display: flex; flex-direction: column; gap: 12px; }
.ad-sec-now h2 { margin: 0; }
.ad-sec-shield { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: #ECFDF3; color: #16A34A; }
.ad-sec-dev { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.ad-sec-dev b { font-size: 15px; }
.ad-sec-dev span { font-size: 13px; color: var(--ad-mute); }
.ad-sec-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ad-ink-2); }
.ad-sec-rules li { display: flex; gap: 8px; align-items: flex-start; }
.ad-sec-rules .ic { color: #16A34A; flex: none; margin-top: 2px; }
.ad-sec-now form { margin: 4px 0 0; }
.ad-sec-now .ad-btn { width: 100%; }
.ad-sec-ic.is-ok { background: #ECFDF3; color: #16A34A; }
.ad-sec-ic.is-bad { background: #FEF2F2; color: #DC2626; }
.ad-sec-ic.is-info { background: #EAF2FF; color: #0B63F0; }
.ad-me-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px; margin-bottom: 16px; }
.ad-ini-lg { width: 64px; height: 64px; font-size: 22px; }
.ad-me-card-t { display: flex; flex-direction: column; gap: 4px; min-width: 200px; flex: 1; }
.ad-me-card-t b { font-size: 18px; }
.ad-me-card-t > span:not(.ad-tag) { color: var(--ad-mute); font-size: 13.5px; }
.ad-me-card-t .ad-tag { align-self: flex-start; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; }
.ad-me-card-s { display: flex; gap: 10px; flex-wrap: wrap; }
.ad-me-stat { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--ad-line); border-radius: 12px; color: var(--ad-ink); }
a.ad-me-stat:hover { border-color: #BBF7D0; background: #F7FEF9; color: var(--ad-ink); }
.ad-me-stat > span:last-child { display: flex; flex-direction: column; }
.ad-me-stat small { font-size: 12px; color: var(--ad-mute); }
.ad-me-stat b { font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .ad-hero-sec { animation: ad-rise .6s .35s cubic-bezier(.2, .7, .2, 1) backwards; }
  .ad-sec-shield { animation: ad-badge-in .7s .1s cubic-bezier(.2, .7, .2, 1) backwards; }
}
@media (max-width: 1023px) {
  .ad-sec-grid { grid-template-columns: minmax(0, 1fr); }
  .ad-me-card-s { width: 100%; }
  .ad-me-stat { flex: 1 1 100%; }
}
.ad-panel .ad-trade-tile .ic-trade, .ad-trade-tile svg.ic-trade { width: 28px !important; height: 28px !important; }
.ad-panel .ad-trade-tile { width: 44px; height: 44px; }

/* Journal des connexions : titres complets sur telephone */
@media (max-width: 760px) {
  .ad-sec-log .ad-row-main b,
  .ad-sec-log .ad-row-main span { white-space: normal; overflow: visible; text-overflow: clip; }
}

/* Mots de passe oublies */
.ad-pw-gen { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; margin-bottom: 18px; border: 1px solid #BBF7D0; background: linear-gradient(135deg, #F0FDF4, #fff); }
.ad-pw-gen-b { flex: 1; min-width: 0; }
.ad-pw-gen h2 { margin: 0 0 4px; font-size: 17px; }
.ad-pw-gen p { margin: 0 0 12px; color: var(--ad-muted, #64748B); font-size: 13.5px; }
.ad-pw-link { display: flex; gap: 8px; }
.ad-pw-link .ad-input { flex: 1; min-width: 0; font-size: 13px; }
.ad-pw-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ad-pw-wa { background: #16A34A; }
.ad-pw-wa:hover { background: #15803D; }
.ad-panel .ad-row.ad-pw-row { --cols: minmax(0, 1fr) auto auto auto; gap: 16px; }
.ad-pw-when { font-size: 13px; color: var(--ad-muted, #64748B); text-align: right; }
.ad-pw-when small { display: block; font-size: 12px; }
@media (max-width: 760px) {
  .ad-panel .ad-row.ad-pw-row { --cols: minmax(0, 1fr) auto; row-gap: 8px; }
  .ad-pw-when { grid-column: 1; text-align: left; }
  .ad-pw-row form { grid-column: 1 / -1; } .ad-pw-row form .ad-btn { width: 100%; justify-content: center; }
  .ad-pw-link { flex-direction: column; }
}
