/* Extrait de templates/_accueil.html : fichier mis en cache par le navigateur. */
  :root {
    --ac-blue: #1163F4; --ac-blue-dark: #0B4FD4; --ac-ink: #0B1220;
    --ac-slate: #64748B; --ac-line: #E7ECF3; --ac-bg: #F5F8FC;
    --ac-yellow: #F7B718; --ac-green: #16A34A;
  }
  .ac-root { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--ac-bg); color: var(--ac-ink); }
  .ac-root a { text-decoration: none; color: inherit; }
  .ac-root button { font: inherit; }

  /* ---- En-tete mobile : bandeau bleu FixPro (maquette validee le 2026-10-12) ---- */
  .ac-mheader { display: flex; align-items: center; gap: 8px; padding: calc(6px + env(safe-area-inset-top)) 12px 6px 16px; background: #0062FE; min-height: 48px; color: #fff; }
  .ac-mheader-left { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
  .ac-burger {
    width: 40px; height: 40px; margin-left: -8px; border-radius: 12px; background: transparent;
    border: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0; cursor: pointer;
  }
  .ac-burger:active { background: rgba(255,255,255,.14); }
  .ac-burger svg { width: 26px; height: 26px; }
  .ac-mheader-brand { flex: 0 0 auto; display: flex; align-items: center; }
  .ac-mheader-brand img { height: clamp(22px, 6.3vw, 28px); width: auto; max-width: 29vw; object-fit: contain; display: block; }
  .ac-mheader-right { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
  .ac-loc-wrap { position: relative; min-width: 0; }
  .ac-mheader .ac-mloc {
    display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 6px 0 8px; max-width: 100%;
    font: 600 11px/1 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #fff; cursor: pointer;
    background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  }
  .ac-mloc svg { width: 20px; height: 20px; color: #fff; flex-shrink: 0; }
  .ac-mheader .ac-mloc svg circle { fill: #0062FE; }
  .ac-mloc span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ac-mloc svg:last-child { width: 16px; height: 16px; color: #fff; transition: transform .15s; }
  .ac-mloc[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }

  .ac-loc-panel {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
    width: min(78vw, 260px); max-height: 340px;
    background: #fff; border: 1px solid var(--ac-line); border-radius: 16px;
    box-shadow: 0 16px 36px rgba(11,18,32,.16);
    display: flex; flex-direction: column; overflow: hidden;
  }
  .ac-loc-panel[hidden] {
    display: none;
  }
  .ac-loc-panel-head {
    display: flex; align-items: center; gap: 7px; padding: 13px 14px 10px;
    font-size: 13.5px; font-weight: 800; color: var(--ac-ink); flex-shrink: 0;
  }
  .ac-loc-panel-head svg { width: 16px; height: 16px; color: var(--ac-blue); flex-shrink: 0; }
  /* Position actuelle (GPS) en tete du panneau */
  .ac-loc-panel .ac-loc-gps { display: flex; align-items: center; gap: 8px; width: calc(100% - 16px); margin: 0 8px 8px; padding: 10px 12px;
    border: 0; border-radius: 12px; background: #EAF1FE; color: var(--ac-blue); font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; text-align: left; }
  .ac-loc-panel .ac-loc-gps svg { width: 17px; height: 17px; flex-shrink: 0; }
  .ac-loc-panel .ac-loc-gps[disabled] { opacity: .7; }
  /* Recherche de position en cours : la cible tourne */
  .ac-locate-btn.is-busy svg { animation: acLocSpin 1s linear infinite; }
  @keyframes acLocSpin { to { transform: rotate(360deg); } }
  .ac-loc-search {
    display: flex; align-items: center; gap: 7px; margin: 0 14px 10px; padding: 9px 11px;
    background: var(--ac-bg); border: 1px solid var(--ac-line); border-radius: 10px; flex-shrink: 0;
  }
  .ac-loc-search svg { width: 15px; height: 15px; color: var(--ac-slate); flex-shrink: 0; }
  .ac-loc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 13px; color: var(--ac-ink); font-family: inherit; }
  .ac-loc-search input::placeholder { color: var(--ac-slate); }
  .ac-loc-list { list-style: none; margin: 0; padding: 0 6px 8px; overflow-y: auto; flex: 1 1 auto; }
  .ac-loc-item {
    width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 8px; border-radius: 9px;
    background: none; border: 0; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--ac-ink);
    cursor: pointer; font-family: inherit;
  }
  .ac-loc-item:active { background: var(--ac-bg); }
  .ac-loc-item-pin { width: 15px; height: 15px; color: var(--ac-slate); flex-shrink: 0; }
  .ac-loc-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .ac-loc-item-check { width: 15px; height: 15px; color: var(--ac-blue); flex-shrink: 0; visibility: hidden; }
  .ac-loc-item.active { color: var(--ac-blue); background: var(--ac-bg); }
  .ac-loc-item.active .ac-loc-item-pin { color: var(--ac-blue); }
  .ac-loc-item.active .ac-loc-item-check { visibility: visible; }
  .ac-loc-empty { margin: 4px 14px 14px; font-size: 12.5px; color: var(--ac-slate); text-align: center; }
  .ac-mavatar { position: relative; width: 36px; height: 36px; flex-shrink: 0; display: block; }
  .ac-mavatar-in {
    width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: #EAF1FE; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(5,25,70,.25);
  }
  .ac-mavatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ac-mavatar-in span { font-size: 15px; font-weight: 800; color: var(--ac-blue); }
  .ac-mavatar-dot { position: absolute; right: -1px; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #00BE4C; border: 1.5px solid #fff; }

  /* ---- Barre de recherche (mobile en flux) ---- */
  .ac-search-row { padding: 9px 12px 12px; background: #fff; display: flex; align-items: center; gap: 8px; }
  .ac-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--ac-bg); border: 1px solid var(--ac-line); border-radius: 12px; padding: 11px 14px; }
  .ac-search svg { width: 18px; height: 18px; color: var(--ac-slate); flex-shrink: 0; }
  .ac-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; color: var(--ac-ink); }
  .ac-search input::placeholder { color: #4A5062; }
  .ac-locate-btn {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
    background: #fff; border: 1px solid var(--ac-line);
    display: flex; align-items: center; justify-content: center; color: var(--ac-blue);
  }
  .ac-locate-btn svg { width: 19px; height: 19px; }

  /* ---- Categories (defilement horizontal) ---- */
  .ac-cats-wrap { background: #fff; padding: 4px 12px 14px; }
  .ac-cats { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ac-cats::-webkit-scrollbar { display: none; }
  .ac-cat { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 76px; height: 68px; border-radius: 14px; border: 1px solid var(--ac-line); background: #fff; }
  .ac-cat svg { width: 20px; height: 20px; }
  .ac-cat span { font-size: 11px; font-weight: 600; color: var(--ac-ink); text-align: center; line-height: 1.15; }
  .ac-cat.active { background: var(--ac-blue); border-color: var(--ac-blue); }
  .ac-cat.active svg, .ac-cat.active span { color: #fff; }

  /* ---- Contenu general ---- */
  .ac-wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
  .ac-section { padding: 22px 0; }
  .ac-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
  .ac-section-head h2 { font-size: 18px; font-weight: 800; margin: 0; }
  .ac-near { margin: 3px 0 0; font-size: 12.5px; color: var(--ac-slate); }
  .ac-near b { color: var(--ac-ink); font-weight: 700; }
  .ac-section-head a { font-size: 13px; font-weight: 700; color: var(--ac-blue); display: flex; align-items: center; gap: 3px; white-space: nowrap; }
  .ac-section-head a svg { width: 14px; height: 14px; }

  /* ---- Hero ---- */
  /* Carte Hero : une seule image (ville + technicien) couvre toute la carte,
     un degrade blanc->transparent se fond dessus pour faire ressortir le
     texte a gauche sans jamais creer de bloc de couleur separe. */
  /* Palette et typographie imposees pour cette carte (maquette du
     2026-09-20) : bleu #0066FF, texte principal #0B1F4B, texte
     secondaire #6B7280, fond clair #E6F1FF, police Poppins. */
  .ac-hero { margin: 14px 16px 0; border-radius: 20px; overflow: hidden; position: relative; height: clamp(180px, 48vw, 220px); background: #fff; color: #0B1F4B; font-family: 'Poppins', 'Inter', sans-serif; }
  .ac-hero-photo { position: absolute; inset: 0; z-index: 0; }
  .ac-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; display: block; }
  .ac-hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #fff 0%, #fff 34%, rgba(230,241,255,.88) 48%, rgba(230,241,255,.3) 66%, rgba(230,241,255,0) 78%); }
  .ac-hero-tag { position: absolute; z-index: 2; top: 8px; right: 8px; font-family: 'Segoe UI', sans-serif; font-style: italic; font-weight: 600; color: #0047CC; font-size: 8.5px; line-height: 1.15; text-align: right; text-shadow: 0 1px 2px rgba(255,255,255,.6); }
  .ac-hero-body { position: relative; z-index: 2; padding: 14px 6px 14px 14px; min-width: 0; max-width: 62%; overflow-wrap: break-word; }
  .ac-hero-body h1 { font-size: 14.5px; font-weight: 700; line-height: 1.2; margin: 0 0 5px; color: #0B1F4B; }
  .ac-hero-body h1 em { font-style: normal; color: #0066FF; }
  .ac-hero-sub { font-weight: 400; font-size: 9px; line-height: 1.35; color: #6B7280; margin: 0 0 8px; max-width: none; }
  .ac-hero-trust { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
  .ac-hero-trust span { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 9px; color: #0B1F4B; }
  .ac-hero-trust svg { width: 11px; height: 11px; flex-shrink: 0; color: #0066FF; }
  a.ac-hero-btn { display: inline-flex; align-items: center; gap: 5px; background: #0066FF; color: #fff; font-weight: 600; font-size: 9.5px; line-height: 1.15; padding: 7px 11px; border-radius: 14px; white-space: normal; }
  .ac-hero-btn svg { width: 11px; height: 11px; flex-shrink: 0; }

  /* ---- Carrousel de l'accueil : les cartes defilent toutes seules ---- */
  .ac-slider { touch-action: pan-y; height: clamp(206px, 54vw, 232px); }
  .ac-slider .ac-hero-body { padding-bottom: 22px; }
  .ac-track { display: flex; height: 100%; will-change: transform; transition: transform .7s cubic-bezier(.65,0,.35,1); }
  .ac-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
  .ac-h1 { font-size: 14.5px; font-weight: 700; line-height: 1.2; margin: 0 0 5px; color: #0B1F4B; }
  .ac-h1 em { font-style: normal; color: #0066FF; }
  .ac-s { display: flex; align-items: center; }
  .ac-s-body { position: relative; z-index: 2; padding: 14px 6px 22px 14px; max-width: 58%; min-width: 0; }
  .ac-s-kick { display: inline-block; margin-bottom: 5px; padding: 2px 8px; border-radius: 999px; background: rgba(0,102,255,.1); color: #0057D9; font-size: 8.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
  .ac-s-body h2 { font-size: 14.5px; font-weight: 700; line-height: 1.2; margin: 0 0 5px; color: #0B1F4B; }
  .ac-s-body h2 em { font-style: normal; color: #0066FF; }
  .ac-s-body p { font-size: 9.5px; line-height: 1.4; color: #4B5563; margin: 0 0 9px; }
  .ac-s-art { position: absolute; z-index: 1; right: 0; top: 0; bottom: 0; width: 40%; display: flex; align-items: center; justify-content: center; }
  .ac-s-cats { background: linear-gradient(120deg, #F3F8FF 0%, #E3EEFF 100%); }
  .ac-s-phone { width: 46%; height: 100%; object-fit: cover; object-position: 40% 20%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
  .ac-s-chat { background: linear-gradient(120deg, #F2FBF6 0%, #DDF3E7 100%); }
  .ac-s-chat .ac-s-kick { background: rgba(22,163,74,.12); color: #15803D; }
  .ac-s-bubbles { flex-direction: column; align-items: stretch; gap: 6px; padding: 0 10px 14px 0; }
  .ac-s-bubbles .b { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 6px 9px; border-radius: 12px; font-size: 9px; font-weight: 500; line-height: 1.25; box-shadow: 0 3px 8px rgba(11,31,75,.08); }
  .ac-s-bubbles .b svg { width: 10px; height: 10px; flex: none; }
  .ac-s-bubbles .in { align-self: flex-start; background: #fff; color: #0B1F4B; border-bottom-left-radius: 4px; }
  .ac-s-bubbles .out { align-self: flex-end; background: #2563EB; color: #fff; border-bottom-right-radius: 4px; }
  .ac-s-trust { background: linear-gradient(120deg, #FFFBEF 0%, #FFF0C7 100%); }
  .ac-s-trust .ac-s-kick { background: rgba(217,119,6,.14); color: #B45309; }
  .ac-s-card { flex-direction: column; gap: 3px; inset: 0 12px 0 auto; height: fit-content; margin: auto 0; width: 32%; padding: 10px 6px; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgba(180,83,9,.15); text-align: center; }
  .ac-s-card .av { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #E4EEFC; }
  .ac-s-card .av img { width: 100%; height: 100%; object-fit: cover; }
  .ac-s-card b { font-size: 9.5px; color: #0B1F4B; }
  .ac-s-card .st { color: #F59E0B; font-size: 11px; letter-spacing: 1px; }
  .ac-s-card .ok { display: inline-flex; align-items: center; gap: 3px; font-size: 8px; font-weight: 600; color: #15803D; }
  .ac-s-card .ok svg { width: 9px; height: 9px; }
  .ac-s-week { background: radial-gradient(120% 140% at 85% 50%, #FFF3C4 0%, #FFE08A 45%, #F8B820 100%); }
  .ac-s-week .ac-s-kick { display: inline-flex; align-items: center; gap: 4px; background: #3B2600; color: #FFD45C; }
  .ac-s-week .ac-s-kick svg { width: 10px; height: 10px; }
  .ac-s-week .ac-s-body h2 { color: #2A1A00; font-size: 16px; }
  .ac-s-week .ac-s-body p { color: #5B3A00; }
  .ac-s-week .st { display: inline-flex; align-items: center; gap: 2px; color: #5B3A00; }
  .ac-s-week .st svg { width: 10px; height: 10px; color: #D97706; }
  .ac-s-week .ac-hero-btn { background: #3B2600; color: #FFD45C; }
  .ac-s-wk { width: 42%; }
  .ac-s-wk .ph { position: relative; width: clamp(104px, 30vw, 126px); aspect-ratio: 1; border-radius: 50%; padding: 4px;
    background: conic-gradient(#FFF3C4, #F59E0B, #FFF3C4, #D97706, #FFF3C4); box-shadow: 0 10px 24px rgba(146, 64, 14, .3); }
  .ac-s-wk .ph img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; display: block; background: #fff; }
  .ac-s-wk .tr { position: absolute; right: -2px; bottom: 4px; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #D99100;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
  .ac-s-wk .tr svg { width: 18px; height: 18px; }
  .ac-s-geo { background: linear-gradient(120deg, #EEF6FF 0%, #D9E9FF 100%); }
  .ac-s-radar { width: 42%; }
  .ac-s-radar .rw { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 2px solid rgba(37,99,235,.28); transform: translate(-50%, -50%); }
  .ac-s-radar .r1 { width: 46px; height: 46px; } .ac-s-radar .r2 { width: 92px; height: 92px; } .ac-s-radar .r3 { width: 138px; height: 138px; border-style: dashed; }
  .ac-s-radar .me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -58%); width: 34px; height: 34px; color: #fff; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #2563EB; box-shadow: 0 0 0 5px rgba(37,99,235,.2), 0 6px 14px rgba(37,99,235,.4); }
  .ac-s-radar .me svg { width: 18px; height: 18px; }
  .ac-s-radar .tk { position: absolute; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(11,31,75,.25); background: #E4EEFC; }
  .ac-s-radar .tk img { width: 100%; height: 100%; object-fit: cover; }
  .ac-s-radar .t1 { left: 14%; top: 18%; } .ac-s-radar .t2 { right: 8%; top: 30%; } .ac-s-radar .t3 { left: 30%; bottom: 14%; }
  .ac-s-radar .km { position: absolute; right: 4%; bottom: 18%; padding: 3px 7px; border-radius: 999px; background: #fff; color: #1D4ED8; font-size: 9px; font-weight: 800; box-shadow: 0 3px 8px rgba(11,31,75,.15); }
  .ac-s-notif { background: linear-gradient(120deg, #F1F5FF 0%, #E0E7FF 100%); }
  .ac-s-nt { width: 44%; }
  .ac-s-nt .bell { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; background: #4F46E5; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(79,70,229,.35); }
  .ac-s-nt .bell svg { width: 19px; height: 19px; }
  .ac-s-nt .bell i { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #EF4444; border: 2px solid #fff; color: #fff; font-style: normal; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  .ac-s-nt .nt { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 6px; padding: 6px 7px; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px rgba(30,27,75,.14); text-align: left; }
  .ac-s-nt .n1 { top: 36%; right: 6%; } .ac-s-nt .n2 { top: 66%; left: 8%; right: 0; }
  .ac-s-nt .ic { flex: none; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: #E0E7FF; display: flex; align-items: center; justify-content: center; }
  .ac-s-nt .ic img { width: 100%; height: 100%; object-fit: cover; }
  .ac-s-nt .ic.ok { background: #16A34A; color: #fff; } .ac-s-nt .ic.ok svg { width: 13px; height: 13px; }
  .ac-s-nt .tx { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .ac-s-nt .tx b { font-size: 9.5px; font-weight: 800; color: #0B1220; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ac-s-nt .tx small { font-size: 8.5px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ac-s-pro { background: linear-gradient(120deg, #0B47B8 0%, #0F63F0 100%); }
  .ac-s-pro .ac-s-kick { background: rgba(255,255,255,.18); color: #fff; }
  .ac-s-pro .ac-s-body h2, .ac-s-pro .ac-s-body p { color: #fff; }
  .ac-s-pro .ac-s-body h2 em { color: #FDE68A; }
  .ac-s-pro .ac-hero-btn { background: #fff; color: #0B47B8; }
  .ac-s-tools svg { width: 46%; max-width: 92px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); }
  .ac-dots { position: absolute; z-index: 5; left: 0; right: 0; bottom: 7px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
  .ac-dots button { pointer-events: auto; position: relative; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(11,31,75,.22); overflow: hidden; cursor: pointer; transition: width .35s ease, background .35s ease; }
  .ac-dots button::before { content: ""; position: absolute; inset: -8px -3px; }
  .ac-dots button.on { width: 22px; background: rgba(0,102,255,.25); }
  .ac-dots button i { position: absolute; inset: 0; width: 0; background: #0066FF; border-radius: inherit; }
  .ac-dots button.on i { animation: var(--ac-run, acDot 4s linear forwards); }
  @keyframes acDot { to { width: 100%; } }
  @media (prefers-reduced-motion: no-preference) {
    .ac-slide.is-on .ac-hero-body, .ac-slide.is-on .ac-s-body { animation: acTxt .7s cubic-bezier(.2,.8,.2,1) .15s backwards; }
    .ac-slide.is-on .ac-s-art { animation: acArt .9s cubic-bezier(.2,.8,.2,1) .1s backwards; }
    .ac-s-radar .rw, .dh-s-radar .rw { animation: acRadar 2.4s ease-out infinite; }
    .ac-s-radar .r2, .dh-s-radar .r2 { animation-delay: .4s; } .ac-s-radar .r3, .dh-s-radar .r3 { animation-delay: .8s; }
    .ac-slide.is-on .ac-s-bubbles .b { animation: acBub .5s cubic-bezier(.3,1.5,.5,1) backwards; }
    .ac-slide.is-on .ac-s-bubbles .b:nth-child(1) { animation-delay: .4s; }
    .ac-slide.is-on .ac-s-bubbles .b:nth-child(2) { animation-delay: 1.1s; }
    .ac-slide.is-on .ac-s-bubbles .b:nth-child(3) { animation-delay: 1.8s; }
    .ac-s-tools svg, .ac-s-card { animation: acFloat 3s ease-in-out infinite; }
    .ac-slide.is-on .ac-s-nt .nt, .dh-slide.is-on .dh-s-nt .nt { animation: acNotif .55s cubic-bezier(.3,1.4,.5,1) .5s backwards; }
    .ac-slide.is-on .ac-s-nt .n2, .dh-slide.is-on .dh-s-nt .n2 { animation-delay: 1.2s; }
    .ac-s-nt .bell, .dh-s-nt .bell { animation: acRing 2.4s ease-in-out infinite; transform-origin: 50% 0; }
    @keyframes acNotif { from { opacity: 0; translate: 0 -14px; } }
    @keyframes acRing { 0%, 70%, 100% { rotate: 0deg; } 76% { rotate: 14deg; } 84% { rotate: -12deg; } 92% { rotate: 6deg; } }
    @keyframes acRadar { 0% { opacity: .2; } 40% { opacity: 1; } 100% { opacity: .2; } }
  @keyframes acTxt { from { opacity: 0; transform: translateY(12px); } }
    @keyframes acArt { from { opacity: 0; transform: translateX(24px) scale(.94); } }
    @keyframes acBub { from { opacity: 0; transform: translateY(8px) scale(.85); } }
    @keyframes acFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
  }
  @media (prefers-reduced-motion: reduce) { .ac-track { transition-duration: .01s; } }

  /* ---- Cartes technicien ---- */
  .ac-techs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ac-tech-card { position: relative; background: #fff; border: 1px solid var(--ac-line); border-radius: 16px; padding: 14px; }
  /* Zone 1 (badge + favori) : en flux normal, hauteur reservee constante que le badge soit present ou non,
     pour que la zone 2 (photo) demarre toujours au meme endroit et ne recouvre jamais le badge. */
  .ac-tech-head { display: flex; align-items: center; min-height: 30px; margin-bottom: 4px; }
  .ac-tech-fav { flex: none; margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(11,18,32,.12); display: flex; align-items: center; justify-content: center; color: var(--ac-slate); border: 0; cursor: pointer; }
  .ac-tech-fav svg { width: 15px; height: 15px; }
  /* Zone 2 : conteneur photo fixe et independant, jamais positionne en absolute -> ne peut pas remonter
     derriere la zone 1. */
  /* Photo centree juste sous le badge, avec un fin contour : carte resserree et bien cadree. */
  .ac-tech-avatar { display: block; width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: var(--ac-bg); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--ac-line); }
  .ac-tech-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
  /* Nom complet sur 2 lignes au plus, coupe entre les mots (jamais une colonne elargie par un nom long). */
  /* Cartes de meme hauteur dans chaque rangee, « Voir le profil » toujours en bas, au meme niveau. */
  .ac-tech-card { min-width: 0; display: flex; flex-direction: column; }
  .ac-tech-card > a:not(.ac-tech-btn) { display: block; }
  .ac-tech-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  a.ac-tech-btn { margin-top: auto; }
  .ac-tech-card h3 { font-size: 14px; font-weight: 700; line-height: 1.25; margin: 0; text-align: center; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .ac-tech-card .job { font-size: 12px; color: var(--ac-slate); margin: 1px 0 8px; text-align: center; }
  .ac-tech-meta { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--ac-ink); margin-bottom: 3px; }
  .ac-tech-meta svg { width: 13px; height: 13px; color: var(--ac-yellow); flex-shrink: 0; }
  .ac-tech-meta.loc svg { color: var(--ac-blue); }
  .ac-tech-avail { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; color: var(--ac-slate); margin-bottom: 10px; }
  .ac-tech-avail .d { width: 7px; height: 7px; border-radius: 50%; background: var(--ac-green); flex-shrink: 0; }
  .ac-tech-avail.off .d { background: #CBD5E1; }
  a.ac-tech-btn { display: block; width: 100%; text-align: center; padding: 9px; border-radius: 10px; background: var(--ac-bg); border: 1px solid var(--ac-line); font-size: 12.5px; font-weight: 700; color: var(--ac-blue); }
  .ac-empty { grid-column: 1/-1; text-align: center; color: var(--ac-slate); font-size: 13.5px; padding: 20px; background: #fff; border: 1px dashed var(--ac-line); border-radius: 14px; }

  /* ---- Sections Premium / Pro (accueil client) ---- */
  .tier-sec { margin: 0 0 16px; padding: 12px; border-radius: 16px; border: 1px solid #E5E7EB; }
  .tier-sec-premium { background: #F6F1FF; border-color: #DCCBFB; }
  .tier-sec-pro { background: #EEF4FF; border-color: #C9DBFB; }
  .tier-sec-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
  .tier-sec-head h2 { margin: 0; font-size: 17px; font-weight: 800; color: #0B1F4B; }
  /* Ordinateur : le badge Premium / Pro a sa propre ligne au-dessus du nom
     (il ne recouvre plus jamais un nom long). */
  .dh-tech-card .tier-badge { position: static !important; grid-column: 2; justify-self: start; margin: 0 0 5px; }
  .tier-sec-premium .ac-tech-card, .tier-sec-premium .dh-tech-card { border-color: #DCCBFB; }
  .tier-sec-pro .ac-tech-card, .tier-sec-pro .dh-tech-card { border-color: #C9DBFB; }

  /* ---- Pourquoi choisir FixPro ? (mesures relevees sur la maquette, base
     390px : carte 174px, cercle icone 57px, rayon 10px). Chaque carte est un
     conteneur : tout (icone, marges, textes) s'echelonne en cqw pour garder
     EXACTEMENT les memes proportions sur tous les ecrans. Les valeurs px
     precedant chaque cqw servent de repli aux navigateurs sans cqw. ---- */
  .ac-why { padding: 8px 0 0; }
  .ac-why h2 { font-size: 18px; font-weight: 800; line-height: 1.25; margin: 0 0 8px; color: var(--ac-ink); }
  .ac-why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 10px; margin-bottom: 20px; }
  .why-card { container-type: inline-size; position: relative; aspect-ratio: 458 / 213; background: #fff; border-radius: 10px; box-shadow: 0 1px 7px rgba(20,70,160,.07); }
  .why-card-in { position: absolute; inset: 0; display: flex; align-items: center; gap: 11px; gap: 6.3cqw; padding: 0 2px 0 10px; padding: 0 1cqw 0 5.7cqw; }
  .why-card-ic { flex: 0 0 auto; width: 57px; height: 57px; width: 32.8cqw; height: 32.8cqw; display: block; }
  .why-card-tx { min-width: 0; white-space: nowrap; }
  .why-card-tx strong { display: block; font-size: 10.7px; font-size: 6.15cqw; font-weight: 700; line-height: 1.22; color: var(--ac-ink); }
  .why-card-tx span { display: block; margin-top: 2px; margin-top: 1.2cqw; font-size: 9.2px; font-size: 5.3cqw; line-height: 1.3; letter-spacing: -0.012em; color: var(--ac-slate); }

  /* ---- Bandeau urgence (maquette : 359 x 83px, rayon 10px, bouton pilule 73 x 29px).
     Le conteneur .ac-mobile-urgent echelonne tout en cqw (comme les cartes) :
     memes proportions et memes retours a la ligne de 320 a 430px. ---- */
  .ac-mobile-urgent { container-type: inline-size; margin-bottom: 40px; }
  .ac-urgent { display: flex; align-items: center; gap: 12px; gap: 3.3cqw; background: #0566F8; color: #fff; border-radius: 10px; padding: 10px 15px 10px 14px; padding: 2.8cqw 4.2cqw 2.8cqw 3.9cqw; min-height: 83px; min-height: 23.1cqw; margin: 0; }
  .ac-urgent .ic { width: 38px; height: 38px; width: 10.6cqw; height: 10.6cqw; flex-shrink: 0; display: block; }
  .ac-urgent-txt { flex: 1; min-width: 0; }
  .ac-urgent-txt strong { display: block; font-size: 12.5px; font-size: clamp(9.5px, 3.48cqw, 15px); font-weight: 700; line-height: 1.2; }
  .ac-urgent-txt span { display: block; margin-top: 2px; font-size: 11px; font-size: clamp(8.5px, 3.06cqw, 13px); line-height: 1.25; opacity: .95; }
  a.ac-urgent-btn { flex-shrink: 0; background: #fff; color: #0566F8; font-weight: 700; font-size: 12.5px; font-size: clamp(9.5px, 3.48cqw, 15px); height: 29px; height: 8.1cqw; padding: 0 14px; padding: 0 3.9cqw; border-radius: 999px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
  .ac-urgent-btn svg { width: 13px; height: 13px; width: 3.6cqw; height: 3.6cqw; }

  /* ---- Navigation basse (mobile) ---- */
  .ac-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; background: #fff; border-top: 1px solid var(--ac-line); padding: 8px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(11,18,32,.05); }
  .ac-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; color: #232B3A; font-size: 11px; font-weight: 700; line-height: 1.2; }
  .ac-tab svg { width: 26px; height: 26px; display: block; flex: none; }
  .ac-tab.active { color: var(--ac-blue); }
  body.ac-has-tabbar { padding-bottom: 62px; }

  .ac-toast {
    position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%) translateY(20px);
    background: var(--ac-ink); color: #fff; padding: 11px 18px; border-radius: 10px;
    font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; z-index: 999;
    transition: opacity .2s, transform .2s; max-width: 86vw; text-align: center;
  }
  .ac-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* ============================= TABLETTE (768-1023px) =============================
     Palier intermediaire : on garde l'agencement mobile (deja fluide),
     on profite juste de la largeur supplementaire pour aerer et passer
     certaines grilles a 3 colonnes. */
  @media (min-width: 768px) and (max-width: 1023px) {
    .ac-wrap { padding: 0 28px; }
    .ac-cats-wrap { padding: 8px 28px 16px; }
    .ac-hero { margin: 14px 28px 0; }
    .ac-techs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .ac-why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  }

  /* A partir de 1024px, l'accueil mobile/tablette laisse place a la
     nouvelle page bureau (.dh-desktop plus bas) : elle est entierement
     independante, aucune regle ci-dessus n'est reutilisee pour elle. */
  @media (min-width: 1024px) {
    .ac-mobile-only { display: none; }
    body.ac-has-tabbar { padding-bottom: 0; }
  }
