/* ============================================================
   Annuaire Tahitien — v1.1 Dark Pro
   Accent : kaki doré (#8a8300 éclairci pour le fond sombre)
   ============================================================ */
/* Box-sizing global : aucun champ ne peut dépasser son conteneur */
.ann-wrap, .ann-wrap *, .ann-wrap *::before, .ann-wrap *::after,
.ann-lightbox, .ann-lightbox *, .ann-lightbox *::before, .ann-lightbox *::after {
  box-sizing: border-box;
}
.ann-wrap {
  min-width: 0;
  --ann-bg:        #0f0f0f;   /* fond page (capture) */
  --ann-surface:   #242526;   /* fond carte (capture) */
  --ann-surface-2: #3a3b3c;   /* survol / champs */
  --ann-border:    #3a3b3c;
  --ann-border-hi: #4e4f50;
  --ann-text:      #e4e6eb;
  --ann-muted:     #b0b3b8;
  --ann-accent:    #c59d26;   /* doré "J'aime" (capture) */
  --ann-accent-2:  #a58318;
  --ann-accent-dk: #8a8300;
  max-width: 960px; margin: 0 auto; font-family: inherit;
  color: var(--ann-text);
}
.ann-icon { vertical-align: -4px; flex-shrink: 0; }

/* ---------- Notices ---------- */
.ann-notice {
  background: var(--ann-surface); border: 1px solid var(--ann-border);
  color: var(--ann-text); border-radius: 12px; padding: 15px 20px;
  margin: 14px 0; font-size: 15px; line-height: 1.5;
}
.ann-notice a { color: var(--ann-accent); font-weight: 600; text-decoration: none; }
.ann-notice a:hover { text-decoration: underline; }
.ann-notice-warn { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-left: 3px solid var(--ann-accent); }
.ann-notice-success { border-left: 3px solid #6fbf5e; background: #1a2416; color: #cfe8c8; }
.ann-notice-error { border-left: 3px solid #d95c5c; background: #291717; color: #ecc9c9; }

/* ---------- Formulaire ---------- */
.ann-form {
  background: var(--ann-surface);
  border: 1px solid var(--ann-border); border-radius: 18px;
  padding: 32px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  container-type: inline-size;
  container-name: ann-form;
}
.ann-form-section { margin-bottom: 30px; }
.ann-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ann-accent); margin: 0 0 18px;
  padding-bottom: 10px; border-bottom: 1px solid var(--ann-border);
}
.ann-field { margin-bottom: 18px; }
.ann-field label {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 13.5px; margin-bottom: 7px; color: var(--ann-muted);
}
.ann-field input[type="text"],
.ann-field input[type="tel"],
.ann-field input[type="email"],
.ann-field input[type="url"] {
  width: 100%; padding: 12px 15px; border: 1px solid var(--ann-border);
  border-radius: 10px; font-size: 15px; box-sizing: border-box;
  background: var(--ann-surface-2); color: var(--ann-text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.ann-field input::placeholder { color: #7d8085; }
.ann-field input:focus {
  outline: none; border-color: var(--ann-accent);
  background: #313233;
  box-shadow: 0 0 0 3px rgba(214, 203, 69, .18);
}
.ann-field small { color: var(--ann-muted); font-size: 12.5px; }
.ann-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .ann-grid-2 { grid-template-columns: 1fr; } }

/* Radios type d'activité */
.ann-radio-group {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
}
.ann-radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.ann-radio-card { position: relative; cursor: pointer; }
.ann-radio-inner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 10px; border: 1px solid var(--ann-border); border-radius: 14px;
  background: var(--ann-surface-2); color: var(--ann-muted);
  font-weight: 600; font-size: 14px; text-align: center;
  transition: all .2s;
}
.ann-radio-card:hover .ann-radio-inner {
  border-color: var(--ann-border-hi); color: var(--ann-text); transform: translateY(-2px);
}
.ann-radio-card input:checked + .ann-radio-inner {
  border-color: var(--ann-accent);
  background: linear-gradient(150deg, var(--ann-accent-2), var(--ann-accent-dk));
  color: #14140c;
  box-shadow: 0 8px 24px rgba(168, 158, 31, .35);
}
.ann-radio-card input:focus-visible + .ann-radio-inner {
  outline: 3px solid rgba(214, 203, 69, .45); outline-offset: 2px;
}

/* Photo */
.ann-photo-field input[type="file"] { font-size: 14px; color: var(--ann-muted); }
.ann-photo-field input[type="file"]::file-selector-button {
  background: var(--ann-surface-2); color: var(--ann-text);
  border: 1px solid var(--ann-border-hi); border-radius: 8px;
  padding: 8px 14px; margin-right: 12px; cursor: pointer; font-weight: 600;
  transition: border-color .2s, color .2s;
}
.ann-photo-field input[type="file"]::file-selector-button:hover {
  border-color: var(--ann-accent); color: var(--ann-accent);
}
.ann-photo-preview { margin-top: 12px; }
.ann-photo-preview img {
  width: 92px; height: 92px; object-fit: cover; border-radius: 50%;
  border: 2px solid var(--ann-accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}

/* Bouton principal */
.ann-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(150deg, var(--ann-accent), var(--ann-accent-2));
  color: #14140c; border: none; border-radius: 12px;
  padding: 14px 30px; font-size: 15.5px; font-weight: 800; letter-spacing: .02em;
  cursor: pointer; transition: filter .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(168, 158, 31, .3);
}
.ann-btn:hover { filter: brightness(1.08); box-shadow: 0 10px 30px rgba(168, 158, 31, .4); }
.ann-btn:active { transform: scale(.98); }
.ann-btn:disabled { opacity: .55; cursor: wait; }
.ann-moderation-note { color: var(--ann-muted); font-size: 13px; margin-top: 12px; }

/* ---------- Barre de recherche ---------- */
.ann-search-wrap { margin: 14px auto; }
.ann-search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--ann-surface); border: 1px solid var(--ann-border);
  border-radius: 999px; padding: 12px 22px; color: var(--ann-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  transition: border-color .2s, box-shadow .2s;
}
.ann-search-bar:focus-within {
  border-color: var(--ann-accent);
  box-shadow: 0 0 0 4px rgba(214, 203, 69, .15), 0 6px 20px rgba(0, 0, 0, .35);
}
.ann-search-bar input {
  flex: 1; border: none; outline: none; font-size: 16px;
  background: transparent; color: var(--ann-text);
}
.ann-search-bar input::placeholder { color: #7d8085; }
.ann-search-bar input::-webkit-search-cancel-button { filter: invert(.8); }

/* ---------- Liste ---------- */
.ann-type-group { margin-bottom: 40px; }
.ann-type-heading {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ann-accent); margin: 0 0 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--ann-border);
}
.ann-count {
  background: var(--ann-surface-2); border: 1px solid var(--ann-border-hi);
  color: var(--ann-accent); border-radius: 999px;
  font-size: 12.5px; padding: 2px 11px; font-weight: 700; letter-spacing: 0;
}
.ann-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px;
}
.ann-card {
  position: relative;
  background: var(--ann-surface);
  border: 1px solid var(--ann-border); border-radius: 16px; padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ann-card:hover {
  transform: translateY(-4px);
  border-color: var(--ann-border-hi);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(214, 203, 69, .12);
}
.ann-badge {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ann-surface-2); border: 1px solid var(--ann-border-hi);
  color: var(--ann-accent); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 10px;
}
.ann-card-header { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; padding-right: 30px; }
.ann-avatar img, .ann-avatar {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
}
.ann-avatar {
  overflow: hidden; border: 2px solid var(--ann-accent); flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}
.ann-avatar-empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--ann-surface-2); color: var(--ann-accent);
}
.ann-card-title { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--ann-text); line-height: 1.25; }
.ann-card-contact {
  display: flex; align-items: center; gap: 6px;
  margin: 0; font-size: 13.5px; color: var(--ann-muted);
}
.ann-card-position {
  display: flex; align-items: flex-start; gap: 9px;
  color: var(--ann-muted); font-size: 13.5px; line-height: 1.45;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--ann-border);
  margin-bottom: 14px;
}
.ann-card-position .ann-icon { color: var(--ann-accent); margin-top: 1px; }

/* Boutons d'action */
.ann-card-actions { display: flex; gap: 8px; }
.ann-action {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 8px; border-radius: 10px; font-size: 13px; font-weight: 700;
  text-decoration: none; color: var(--ann-text);
  background: var(--ann-surface-2); border: 1px solid var(--ann-border-hi);
  transition: all .18s;
}
.ann-action:hover { border-color: var(--ann-accent); color: var(--ann-accent); transform: translateY(-1px); }
.ann-action .ann-icon { color: var(--ann-accent); }
.ann-action-primary {
  background: linear-gradient(150deg, var(--ann-accent), var(--ann-accent-2));
  border-color: transparent; color: #14140c;
}
.ann-action-primary .ann-icon { color: #14140c; }
.ann-action-primary:hover { color: #14140c; filter: brightness(1.08); }

@media (max-width: 420px) {
  .ann-action span { display: none; }         /* icônes seules sur très petit écran */
  .ann-action { padding: 11px 8px; }
}


/* ============================================================
   v1.2 — Bascule Blocs / Liste
   ============================================================ */
.ann-view-toggle {
  display: inline-flex; gap: 4px; margin: 0 0 22px;
  background: var(--ann-surface); border: 1px solid var(--ann-border);
  border-radius: 10px; padding: 4px;
}
.ann-view-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: none; border-radius: 8px;
  color: var(--ann-muted); font-size: 13.5px; font-weight: 700;
  padding: 8px 16px; cursor: pointer; transition: all .18s;
}
.ann-view-btn:hover { color: var(--ann-text); background: var(--ann-surface-2); }
.ann-view-btn.is-active { background: var(--ann-accent); color: #141414; }
.ann-view-btn.is-active .ann-icon { color: #141414; }

/* Vue liste (rangées horizontales) */
.ann-view-list .ann-cards { display: flex; flex-direction: column; gap: 10px; }
.ann-view-list .ann-card {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
}
.ann-view-list .ann-card:hover { transform: none; }
.ann-view-list .ann-card-header {
  margin: 0; padding-right: 0; flex: 1; min-width: 220px;
}
.ann-view-list .ann-avatar, .ann-view-list .ann-avatar img { width: 46px; height: 46px; }
.ann-view-list .ann-card-header { order: 1; }
.ann-view-list .ann-card-position { order: 2; }
.ann-view-list .ann-badge { position: static; order: 3; margin: 0 4px; flex-shrink: 0; }
.ann-view-list .ann-card-actions { order: 4; }
.ann-view-list .ann-card-position {
  margin: 0; flex: 1.2; background: transparent; border: none; padding: 0;
}
.ann-view-list .ann-card-actions { flex: 0 0 auto; }
.ann-view-list .ann-action span { display: none; }
.ann-view-list .ann-action { flex: 0 0 auto; padding: 10px 12px; }
@media (max-width: 700px) {
  .ann-view-list .ann-card { flex-wrap: wrap; }
  .ann-view-list .ann-card-position { flex-basis: 100%; }
}

/* ============================================================
   v1.2 — Lightbox
   ============================================================ */
.ann-card { cursor: pointer; }
.ann-card:focus-visible {
  outline: 2px solid var(--ann-accent); outline-offset: 2px;
}
body.ann-lb-open { overflow: hidden; }
.ann-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ann-lightbox[hidden] { display: none; }
.ann-lb-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(3px);
}
.ann-lb-panel {
  position: relative; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  background: var(--ann-surface, #242526); color: var(--ann-text, #e4e6eb);
  border: 1px solid var(--ann-border-hi, #4e4f50); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .7);
  animation: annLbIn .22s ease;
  scrollbar-width: none;      /* Firefox : scrollbar masquée, défilement conservé */
  -ms-overflow-style: none;   /* anciens Edge/IE */
}
.ann-lb-panel::-webkit-scrollbar { display: none; } /* Chrome/Safari */
@keyframes annLbIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.ann-lb-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ann-surface-2, #3a3b3c); border: none;
  color: var(--ann-text, #e4e6eb); cursor: pointer; transition: all .18s;
}
.ann-lb-close:hover { background: #c59d26; color: #141414; }
.ann-lb-header {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 30px 24px 18px; text-align: center;
  border-bottom: 1px solid var(--ann-border, #3a3b3c);
}
.ann-lb-avatar, .ann-lb-avatar img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
}
.ann-lb-avatar {
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--ann-surface-2, #3a3b3c); color: #c59d26;
  border: 3px solid #c59d26; box-shadow: 0 8px 26px rgba(0, 0, 0, .55);
}
.ann-lb-header .ann-badge { position: static; }
.ann-lb-title { margin: 4px 0 0; font-size: 21px; font-weight: 800; color: var(--ann-text, #e4e6eb); }
.ann-lb-contact { margin: 0; font-size: 14px; color: var(--ann-muted, #b0b3b8); }
.ann-lb-body { padding: 20px 24px 26px; }
.ann-lb-rows { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 18px; }
.ann-lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px; text-decoration: none;
  background: var(--ann-surface-2, #3a3b3c); color: var(--ann-text, #e4e6eb);
  font-size: 14.5px; font-weight: 600; transition: all .18s;
  word-break: break-word;
}
.ann-lb-row:hover { background: #454647; color: #c59d26; }
.ann-lb-row .ann-icon { color: #c59d26; }
.ann-lb-maps { width: 100%; box-sizing: border-box; }

/* ============================================================
   v1.3 — Correctif responsive (badge qui chevauchait le titre)
   ============================================================ */
.ann-card-title { overflow-wrap: anywhere; }
.ann-card-position span { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .ann-cards { grid-template-columns: 1fr; }
  .ann-card { padding: 16px; }
  /* Le badge quitte le coin et se place au-dessus du titre */
  .ann-badge { position: static; display: inline-flex; margin-bottom: 10px; }
  .ann-card-header { padding-right: 0; margin-top: 0; }
  .ann-card-actions { flex-wrap: wrap; }
  .ann-action { min-width: 90px; }
  .ann-lb-panel { max-width: 100%; border-radius: 14px; }
  .ann-lb-header { padding: 26px 18px 16px; }
  .ann-lb-body { padding: 16px 18px 22px; }
}

/* ============================================================
   v1.3 — Horaires (formulaire)
   ============================================================ */
.ann-horaires-hint { color: var(--ann-muted); font-size: 13px; margin: -6px 0 14px; }
.ann-horaires { display: flex; flex-direction: column; gap: 8px; }
.ann-horaire-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  background: var(--ann-surface-2); border: 1px solid var(--ann-border);
  border-radius: 10px; padding: 9px 14px;
  min-width: 0; overflow: hidden;
}
.ann-horaire-day {
  display: flex; align-items: center; gap: 9px;
  width: 116px; flex-shrink: 0; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--ann-text);
}
.ann-horaire-day input[type="checkbox"] {
  width: 17px; height: 17px; accent-color: var(--ann-accent); cursor: pointer;
}
.ann-horaire-times {
  display: flex; align-items: center; gap: 8px;
  flex: 1 1 210px; min-width: 0;       /* < 210px dispo : passe à la ligne dans le bloc */
}
.ann-horaire-times input[type="time"] {
  background: var(--ann-surface); color: var(--ann-text);
  border: 1px solid var(--ann-border-hi); border-radius: 8px;
  padding: 7px 9px; font-size: 14px;
  color-scheme: dark;
  flex: 1; width: 100%; min-width: 0; max-width: 130px;
  box-sizing: border-box;
  -webkit-appearance: none; appearance: none;   /* iOS : largeur maîtrisée */
}
.ann-horaire-times input[type="time"]:focus {
  outline: none; border-color: var(--ann-accent);
  box-shadow: 0 0 0 3px rgba(197, 157, 38, .18);
}
.ann-horaire-times input[type="time"]:disabled { opacity: .35; }
.ann-horaire-sep { color: var(--ann-muted); }
.ann-horaire-ferme { color: var(--ann-muted); font-size: 12.5px; font-style: italic; }
.ann-horaire-row:has(.ann-horaire-check:checked) { border-color: var(--ann-border-hi); }
.ann-horaire-row:has(.ann-horaire-check:checked) .ann-horaire-ferme { display: none; }
.ann-horaire-row:not(:has(.ann-horaire-check:checked)) .ann-horaire-times { opacity: .35; }
@media (max-width: 560px) {
  /* Jour + "Fermé" sur la 1re ligne, heures pleine largeur dessous */
  .ann-horaire-row {
    flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px;
  }
  .ann-horaire-day { width: auto; flex: 1; }
  .ann-horaire-ferme { margin-left: auto; }
  .ann-horaire-times {
    flex-basis: 100%; width: 100%;
  }
  .ann-horaire-times input[type="time"] {
    max-width: none;                   /* les 2 champs se partagent la largeur */
    text-align: center;
  }
  .ann-horaire-sep { flex-shrink: 0; }
  /* Masquer les heures des jours fermés pour alléger l'écran */
  .ann-horaire-row:not(:has(.ann-horaire-check:checked)) .ann-horaire-times { display: none; }
}

/* ============================================================
   v1.3 — Horaires (lightbox)
   ============================================================ */
.ann-lb-horaires {
  background: var(--ann-surface-2); border: 1px solid var(--ann-border);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 18px;
}
.ann-lb-horaires h4 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ann-accent);
}
.ann-lb-horaires ul { list-style: none; margin: 0; padding: 0; }
.ann-lb-horaires li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 8px; border-radius: 7px; font-size: 13.5px;
}
.ann-lb-horaires li.is-today {
  background: rgba(197, 157, 38, .12);
}
.ann-lb-horaires li.is-today .ann-lb-h-day { color: var(--ann-accent); font-weight: 800; }
.ann-lb-h-day { color: var(--ann-text); font-weight: 600; }
.ann-lb-h-val { color: var(--ann-text); font-variant-numeric: tabular-nums; }
.ann-lb-h-val.is-closed { color: var(--ann-muted); font-style: italic; }

/* ============================================================
   v1.3.1 — Responsive global téléphone & tablette
   ============================================================ */
/* Sécurité anti-débordement horizontal sur tout le plugin */
.ann-form, .ann-card, .ann-lb-panel { overflow-x: clip; }
.ann-wrap img { max-width: 100%; height: auto; }

/* Tablette (561–900px) : formulaire et cartes un peu plus compacts */
@media (max-width: 900px) {
  .ann-form { padding: 26px 22px; }
  .ann-cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
  .ann-radio-group { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

/* Téléphone */
@media (max-width: 560px) {
  .ann-form { padding: 18px 14px; border-radius: 14px; }
  .ann-section-title { font-size: 12px; }
  .ann-radio-group { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ann-radio-inner { padding: 14px 8px; font-size: 13px; }
  .ann-view-toggle { display: flex; width: 100%; }
  .ann-view-btn { flex: 1; justify-content: center; }
  .ann-search-bar { padding: 10px 16px; }
  /* iOS zoome si la police d'un champ < 16px : on garde 16px partout */
  .ann-field input[type="text"],
  .ann-field input[type="tel"],
  .ann-field input[type="email"],
  .ann-field input[type="url"],
  .ann-horaire-times input[type="time"],
  .ann-search-bar input { font-size: 16px; }
}

/* Très petits écrans */
@media (max-width: 360px) {
  .ann-radio-group { grid-template-columns: 1fr; }
  .ann-horaire-day { font-size: 13px; }
}

/* ============================================================
   v1.3.2 — Adaptation à la largeur RÉELLE du formulaire
   (colonne Themify étroite sur desktop incluse)
   ============================================================ */
@container ann-form (max-width: 580px) {
  /* Horaires : jour + "Fermé" en 1re ligne, heures pleine largeur dessous */
  .ann-horaire-day { width: auto; flex: 1; }
  .ann-horaire-ferme { margin-left: auto; flex-shrink: 0; }
  .ann-horaire-times { flex-basis: 100%; width: 100%; }
  .ann-horaire-times input[type="time"] { max-width: none; text-align: center; }
  .ann-horaire-sep { flex-shrink: 0; }
  .ann-horaire-row:not(:has(.ann-horaire-check:checked)) .ann-horaire-times { display: none; }

  /* Le reste du formulaire suit la même logique */
  .ann-grid-2 { grid-template-columns: 1fr; }
  .ann-radio-group { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ann-radio-inner { padding: 14px 8px; font-size: 13px; }
  .ann-btn { width: 100%; justify-content: center; }
}

@container ann-form (max-width: 340px) {
  .ann-radio-group { grid-template-columns: 1fr; }
  .ann-horaire-day { font-size: 13px; }
}

/* ============================================================
   v1.5 — Pastilles de statut Ouvert / Fermé
   ============================================================ */
/* Statut minimaliste type Google Maps : texte coloré + détail en gris */
.ann-status {
  display: inline-flex; align-items: baseline; flex-wrap: wrap;
  font-size: 13.5px; line-height: 1.35; margin-top: 6px;
}
.ann-status-state  { font-weight: 700; }
.ann-status-sep    { color: var(--ann-muted); margin: 0 6px; }
.ann-status-detail { color: var(--ann-muted); font-weight: 500; }
.ann-status--open    .ann-status-state { color: #34a853; }  /* vert Google */
.ann-status--closed  .ann-status-state { color: #ea4335; }  /* rouge Google */
.ann-status--opening .ann-status-state { color: #f9ab00; }  /* jaune orangé */
.ann-status--closing .ann-status-state { color: #f9ab00; }
.ann-view-list .ann-status { margin-top: 2px; }
.ann-lb-header .ann-status { margin-top: 2px; justify-content: center; }
.ann-lb-header .ann-status-detail, .ann-lb-header .ann-status-sep { display: inline; }

/* ============================================================
   v1.5 — Validation frontend
   ============================================================ */
.ann-valid-head h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ann-accent); margin: 0 0 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--ann-border);
}
.ann-valid-card { cursor: default; }
.ann-valid-card:hover { transform: none; }
.ann-valid-infos { list-style: none; margin: 0 0 16px; padding: 0; }
.ann-valid-infos li {
  display: flex; align-items: flex-start; gap: 9px;
  color: var(--ann-text); font-size: 13.5px; padding: 4px 0;
  overflow-wrap: anywhere;
}
.ann-valid-infos li .ann-icon { color: var(--ann-accent); margin-top: 2px; }
.ann-valid-infos a { color: var(--ann-accent); text-decoration: none; }
.ann-valid-infos a:hover { text-decoration: underline; }
.ann-valid-meta { color: var(--ann-muted); font-size: 12.5px; border-top: 1px dashed var(--ann-border); margin-top: 6px; padding-top: 8px; }
.ann-action-refuse { color: #e08585; }
.ann-action-refuse .ann-icon { color: #e08585; }
.ann-action-refuse:hover { border-color: #e08585; color: #e08585; }
.ann-valid-card.is-busy { opacity: .55; pointer-events: none; }
.ann-valid-card.is-approved { border-color: #7ed685; opacity: 0; transform: scale(.96); transition: all .35s; }
.ann-valid-card.is-refused  { border-color: #e08585; opacity: 0; transform: scale(.96); transition: all .35s; }

/* ============================================================
   v1.5 — Carte interactive
   ============================================================ */
.ann-map {
  width: 100%; height: 520px; border-radius: 16px;
  border: 1px solid var(--ann-border-hi);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  background: var(--ann-surface);
}
@media (max-width: 640px) { .ann-map { height: 420px; border-radius: 12px; } }

/* Contenu des info-bulles Google Maps */
.ann-iw { font-family: inherit; color: #222; max-width: 240px; padding: 2px 4px; }
.ann-iw-type {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #8a8300; background: rgba(197, 157, 38, .14);
  border-radius: 999px; padding: 2px 8px; margin-bottom: 5px;
}
.ann-iw-title { font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.ann-iw-line { font-size: 12.5px; color: #555; margin-bottom: 2px; }
.ann-iw-actions { display: flex; gap: 10px; margin-top: 8px; }
.ann-iw-actions a {
  font-size: 12.5px; font-weight: 700; color: #8a8300; text-decoration: none;
}
.ann-iw-actions a:hover { text-decoration: underline; }

/* ============================================================
   v1.6 — Bouton vCard (lightbox)
   ============================================================ */
.ann-lb-vcard {
  width: 100%; margin-top: 10px; cursor: pointer;
  border-style: dashed;
}
.ann-lb-vcard:hover { border-style: solid; }


/* ============================================================
   v1.7 — Bouton "Modifier ma fiche" (lightbox)
   ============================================================ */
.ann-lb-edit {
  width: 100%; margin-top: 10px;
  background: transparent;
  border: 1px solid var(--ann-border-hi);
  color: var(--ann-accent);
  text-decoration: none;
}
.ann-lb-edit:hover { background: rgba(197, 157, 38, .08); border-color: var(--ann-accent); }
.ann-lb-edit .ann-icon { color: var(--ann-accent); }

/* ============================================================
   v1.8 — Case "+ 2ᵉ plage" et 2e créneau
   ============================================================ */
.ann-horaire-coupure {
  display: none; /* visible seulement si jour ouvert */
  align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--ann-muted);
  cursor: pointer; user-select: none;
  padding: 4px 10px; border-radius: 8px;
  background: var(--ann-surface); border: 1px dashed var(--ann-border-hi);
  white-space: nowrap;
}
.ann-horaire-coupure input {
  width: 15px; height: 15px; accent-color: var(--ann-accent); cursor: pointer;
}
.ann-horaire-coupure:hover { color: var(--ann-text); border-color: var(--ann-accent); }
.ann-horaire-row:has(.ann-horaire-check:checked) .ann-horaire-coupure { display: inline-flex; }
.ann-horaire-row:has(.ann-horaire-coupure-check:checked) .ann-horaire-coupure {
  color: var(--ann-accent); border-color: var(--ann-accent); border-style: solid;
  background: rgba(197, 157, 38, .08);
}

.ann-horaire-times2 { display: none; }
.ann-horaire-row:has(.ann-horaire-coupure-check:checked) .ann-horaire-times2 { display: flex; }

/* Dans les colonnes étroites, la 2e plage passe sous la première */
@container ann-form (max-width: 580px) {
  .ann-horaire-coupure { order: 5; }
  .ann-horaire-times2 { flex-basis: 100%; order: 6; }
}

/* ============================================================
   v1.8.1 — Badge Ouvert/Fermé (remplace le type d'activité)
   ============================================================ */
.ann-badge--open,
.ann-badge--closed,
.ann-badge--opening,
.ann-badge--closing {
  border: none; letter-spacing: .04em;
}
.ann-badge--open    { background: #34a853; color: #0a1f0d; }
.ann-badge--closed  { background: #ea4335; color: #fff;    }
.ann-badge--opening { background: #f9ab00; color: #241a00; }
.ann-badge--closing { background: #f9ab00; color: #241a00; }
.ann-badge--open .ann-icon,
.ann-badge--closed .ann-icon,
.ann-badge--opening .ann-icon,
.ann-badge--closing .ann-icon { display: none; }


/* ============================================================
   v1.9 — Corrections lightbox
   ============================================================ */
/* Bouton de fermeture parfaitement rond */
.ann-lb-close {
  padding: 0; line-height: 0;
  flex: 0 0 auto;
  min-width: 38px; max-width: 38px;
  min-height: 38px; max-height: 38px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}
/* Les libellés des boutons restent toujours visibles dans la lightbox */
.ann-lb-panel .ann-action span { display: inline !important; }

/* ============================================================
   v1.9 — Vue Blocs : défilement horizontal par catégorie
   ============================================================ */
#ann-liste:not(.ann-view-list) .ann-cards {
  display: flex; flex-wrap: nowrap; align-items: stretch;
  overflow-x: auto; overscroll-behavior-x: contain;
  gap: 16px;
  scroll-snap-type: x proximity;
  padding: 4px 4px 14px;
  scrollbar-width: none;      /* Firefox : scrollbar masquée, défilement conservé */
  -ms-overflow-style: none;   /* anciens Edge/IE */
}
#ann-liste:not(.ann-view-list) .ann-cards::-webkit-scrollbar { display: none; } /* Chrome/Safari */
#ann-liste:not(.ann-view-list) .ann-cards > .ann-card {
  flex: 0 0 290px; scroll-snap-align: start;
}
@media (max-width: 560px) {
  #ann-liste:not(.ann-view-list) .ann-cards > .ann-card { flex-basis: 260px; }
}

/* ============================================================
   v2.0 — Cadran horaires [annuaire_horloge] — tronc commun
   ============================================================ */
.ann-ring-wrap { max-width: 340px; text-align: center; }
.ann-ring { position: relative; }
.ann-ring svg { width: 100%; height: auto; display: block; overflow: visible; }

.ann-ring-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; pointer-events: none;
}
.ann-ring-name {
  font-size: 15px; font-weight: 800; color: var(--ann-text);
  line-height: 1.2; overflow-wrap: anywhere;
}
.ann-ring-state { font-size: 12px; font-weight: 700; color: var(--ann-muted); letter-spacing: .01em; }
.ann-ring-state.ann-st--open    { color: var(--ann-ring-col-open, #34a853); }
.ann-ring-state.ann-st--closed  { color: var(--ann-ring-col-closed, #ea4335); }
.ann-ring-state.ann-st--opening,
.ann-ring-state.ann-st--closing { color: var(--ann-ring-col-warn, #f9ab00); }
.ann-ring-plages { font-size: 11px; color: var(--ann-muted); font-variant-numeric: tabular-nums; }

.ann-ring-caption { color: var(--ann-muted); font-size: 12px; margin-top: 10px; }
.ann-ring-leg1 { color: var(--ann-ring-c1, var(--ann-accent)); font-weight: 700; }
.ann-ring-leg2 { color: var(--ann-ring-c2, #34a853); font-weight: 700; }

/* La fiche actuellement "lue" par le cadran (survol ou zone de scroll) */
#ann-liste .ann-card.is-ring-active {
  border-color: var(--ann-ring-c1, var(--ann-accent));
  box-shadow: 0 0 0 1px var(--ann-ring-c1, var(--ann-accent)), 0 8px 24px rgba(197, 157, 38, .18);
}

/* ================================================================
   FORME 1 — CERCLE (Apple Watch)
   ================================================================ */
.ann-ring-shape-circle .ann-ring-center { position: absolute; inset: 0; padding: 26%; }

.ann-ring-ticks line { stroke: var(--ann-border-hi); stroke-width: 2; stroke-linecap: round; }
.ann-ring-hour { fill: var(--ann-muted); font-size: 9px; font-weight: 700; }

.ann-ring-track { fill: none; stroke: var(--ann-ring-track, #fff); stroke-opacity: .08; stroke-width: var(--ann-ring-thick, 12); }
.ann-ring-arc {
  fill: none; stroke-width: var(--ann-ring-thick, 12); stroke-linecap: round;
  transform-origin: 100px 100px;
  transition: stroke-dasharray .65s cubic-bezier(.4, 0, .2, 1),
              transform .65s cubic-bezier(.4, 0, .2, 1),
              opacity .4s ease;
  opacity: 0;
}
.ann-ring-a1, .ann-ring-a1w { stroke: var(--ann-ring-c1, #c59d26); filter: drop-shadow(0 0 6px var(--ann-ring-c1, #c59d26)); }
.ann-ring-a2, .ann-ring-a2w { stroke: var(--ann-ring-c2, #34a853); filter: drop-shadow(0 0 6px var(--ann-ring-c2, #34a853)); }

.ann-ring-now { transform-origin: 100px 100px; transition: transform 1s linear; }
.ann-ring-now circle {
  fill: #fff; stroke: var(--ann-bg); stroke-width: 2;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .7));
  animation: annPulse 2.4s ease-in-out infinite;
}
@keyframes annPulse {
  0%, 100% { r: 4; }
  50%      { r: 5; }
}

/* Aucun halo/effet décoratif ici volontairement — cadran fidèle au style Apple Watch */

/* ================================================================
   FORME 2 — DEMI-CERCLE (jauge façon compteur)
   ================================================================ */
.ann-ring-shape-half .ann-ring-wrap { max-width: 320px; }
.ann-gauge { position: relative; }
.ann-gauge-svg { overflow: visible; }

.ann-gauge-track { fill: none; stroke: var(--ann-ring-track, #fff); stroke-opacity: .08; stroke-width: var(--ann-ring-thick, 12); stroke-linecap: round; }
.ann-gauge-arc {
  fill: none; stroke-width: var(--ann-ring-thick, 12); stroke-linecap: round;
  transition: d .65s cubic-bezier(.4, 0, .2, 1), opacity .4s ease;
  opacity: 0;
}
#ann-gauge-a1 { stroke: var(--ann-ring-c1, #c59d26); filter: drop-shadow(0 0 7px var(--ann-ring-c1, #c59d26)); }
#ann-gauge-a2 { stroke: var(--ann-ring-c2, #34a853); filter: drop-shadow(0 0 7px var(--ann-ring-c2, #34a853)); }

.ann-gauge-tick { stroke: var(--ann-border-hi); stroke-width: 1.5; }
.ann-gauge-tick.is-major { stroke: var(--ann-muted); stroke-width: 2.2; }

.ann-gauge-needle {
  stroke: #fff; stroke-width: 3; stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .8));
  transition: x2 .8s cubic-bezier(.4, 0, .2, 1), y2 .8s cubic-bezier(.4, 0, .2, 1);
}
.ann-gauge-knob {
  fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9));
  transition: cx .8s cubic-bezier(.4, 0, .2, 1), cy .8s cubic-bezier(.4, 0, .2, 1);
}
.ann-gauge-pivot { fill: var(--ann-surface-2, #26261a); stroke: var(--ann-border-hi); stroke-width: 2; }

.ann-gauge-labels {
  display: flex; justify-content: space-between;
  margin-top: -6px; padding: 0 2px;
  font-size: 10px; font-weight: 700; color: var(--ann-muted);
}
.ann-gauge-center { margin-top: 4px; }

/* ================================================================
   FORME 3 — BARRE HORIZONTALE (timeline néon)
   ================================================================ */
.ann-ring-shape-bar .ann-ring-wrap { max-width: 420px; }
.ann-linebar {
  position: relative; padding: 18px 16px 10px;
  background: linear-gradient(165deg, var(--ann-surface, #1e1e15), var(--ann-bg, #0f0f0f));
  border: 1px solid var(--ann-border, #3a3b3c); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.ann-linebar-track { position: relative; }
.ann-linebar-lane {
  position: relative; height: 18px; border-radius: 999px; margin-bottom: 10px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.ann-linebar-seg {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0;
  border-radius: 999px; opacity: 0;
  transition: left .6s cubic-bezier(.4, 0, .2, 1), width .6s cubic-bezier(.4, 0, .2, 1), opacity .3s ease;
}
.ann-linebar-seg1 { background: linear-gradient(90deg, var(--ann-ring-c1, #c59d26), color-mix(in srgb, var(--ann-ring-c1, #c59d26) 60%, #fff)); box-shadow: 0 0 12px var(--ann-ring-c1, #c59d26); }
.ann-linebar-seg2 { background: linear-gradient(90deg, var(--ann-ring-c2, #34a853), color-mix(in srgb, var(--ann-ring-c2, #34a853) 60%, #fff)); box-shadow: 0 0 12px var(--ann-ring-c2, #34a853); }

.ann-linebar-now {
  position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px;
  background: #fff; border-radius: 2px;
  box-shadow: 0 0 8px #fff, 0 0 16px rgba(255, 255, 255, .6);
  transition: left 1s linear; z-index: 2;
  animation: annPulseOpacity 2.4s ease-in-out infinite;
}
@keyframes annPulseOpacity { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.ann-linebar-ticks {
  display: flex; justify-content: space-between; margin-top: 4px;
  font-size: 9.5px; font-weight: 700; color: var(--ann-muted);
}
.ann-linebar-center { margin-top: 12px; }

/* ============================================================
   v2.0 — Mode épinglé : [annuaire_horloge sticky="1"]
   ============================================================ */
.ann-ring-wrap.is-sticky { position: sticky; top: 10px; z-index: 60; }
.ann-ring-shape-circle.is-sticky .ann-ring {
  background: rgba(15, 15, 15, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--ann-border); border-radius: 50%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
}
.ann-ring-shape-half.is-sticky .ann-gauge,
.ann-ring-shape-bar.is-sticky .ann-linebar {
  background: rgba(15, 15, 15, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
}
@media (max-width: 700px), (hover: none) {
  .ann-ring-shape-circle.is-sticky { max-width: 220px; margin-left: auto; margin-right: auto; }
  .ann-ring-shape-half.is-sticky   { max-width: 260px; margin-left: auto; margin-right: auto; }
  .ann-ring-shape-bar.is-sticky    { max-width: 100%; }
  .ann-ring-wrap.is-sticky .ann-ring-caption { display: none; }
  .ann-ring-wrap.is-sticky .ann-ring-name  { font-size: 12.5px; }
  .ann-ring-wrap.is-sticky .ann-ring-state { font-size: 10.5px; }
  .ann-ring-wrap.is-sticky .ann-ring-plages { font-size: 9.5px; }
}
