/*
 * Avis de deces - couche responsive (GSM, tablettes) et navigation.
 * Chargee apres style.css : le site de 2008 reste intact sur grand ecran,
 * les media queries neutralisent les largeurs fixes en dessous de 900px.
 */
:root {
  --ipx-ink: #2f3237;
  --ipx-muted: #6b6f76;
  --ipx-line: #dcdcdc;
  --ipx-bg: #ffffff;
  --ipx-soft: #f4f4f5;
  --ipx-accent: #6d5a7e;
  --ipx-accent-soft: #efeaf3;
  --ipx-radius: 10px;
  --ipx-shadow: 0 6px 24px rgba(20, 20, 30, .08);
  --ipx-ease: cubic-bezier(.2, .7, .2, 1);
}

html { -webkit-text-size-adjust: 100%; }
body.ipx { background: #fff; }
body.ipx img { max-width: 100%; height: auto; }
body.ipx img[usemap] { height: auto; }

/* Ancienne barre de menu (encore presente dans certaines pages incluses) */
body.ipx #toptop, body.ipx #spacer { display: none; }

/* ------------------------------------------------------------------ */
/* En-tete                                                             */
/* ------------------------------------------------------------------ */
.ipx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--ipx-line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  transition: box-shadow .25s var(--ipx-ease);
  font-family: Verdana, Geneva, sans-serif;
}
@supports (backdrop-filter: blur(6px)) {
  .ipx-header { background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.4) blur(10px); }
}
.ipx-header.is-scrolled { box-shadow: var(--ipx-shadow); }

.ipx-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 20px;
  box-sizing: border-box;
}
.ipx-brand { display: block; flex: 0 0 auto; line-height: 0; }
.ipx-brand img {
  display: block;
  width: 200px;
  height: auto;
  transition: width .25s var(--ipx-ease);
}
.ipx-header.is-scrolled .ipx-brand img { width: 150px; }

.ipx-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 20px;
}
.ipx-menu, .ipx-sub { list-style: none; margin: 0; padding: 0; }
.ipx-menu { display: flex; align-items: center; gap: 4px; }
.ipx-menu > li { position: relative; }

.ipx-menu a,
.ipx-sub-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ipx-ink);
  font: inherit;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
/* Soulignement anime */
.ipx-menu > li > a::after,
.ipx-sub-toggle::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--ipx-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ipx-ease);
}
.ipx-menu > li > a:hover,
.ipx-sub-toggle:hover { color: var(--ipx-accent); background: var(--ipx-soft); }
.ipx-menu > li > a:hover::after,
.ipx-sub-toggle:hover::after,
.ipx-menu > li > a.is-active::after,
.ipx-sub-toggle.is-active::after { transform: scaleX(1); }
.ipx-menu a.is-active, .ipx-sub-toggle.is-active { color: var(--ipx-accent); }
.ipx-menu a:focus-visible, .ipx-sub-toggle:focus-visible, .ipx-burger:focus-visible,
.ipx-lang a:focus-visible {
  outline: 2px solid var(--ipx-accent);
  outline-offset: 2px;
}

.ipx-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s var(--ipx-ease);
}
.ipx-has-sub.is-open .ipx-caret { transform: translateY(1px) rotate(-135deg); }

/* Sous-menu (espace entreprise) */
.ipx-sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--ipx-line);
  border-radius: var(--ipx-radius);
  box-shadow: var(--ipx-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s var(--ipx-ease), visibility 0s .2s;
}
.ipx-has-sub.is-open .ipx-sub,
.ipx-has-sub:focus-within .ipx-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s, transform .2s var(--ipx-ease);
}
@media (hover: hover) and (min-width: 901px) {
  .ipx-has-sub:hover .ipx-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ipx-ease); }
  .ipx-has-sub:hover .ipx-caret { transform: translateY(1px) rotate(-135deg); }
}
.ipx-sub a { display: flex; width: 100%; box-sizing: border-box; padding: 9px 12px; font-weight: normal; }
.ipx-sub a:hover, .ipx-sub a.is-active { background: var(--ipx-accent-soft); color: var(--ipx-accent); }

/* Outils : langue et taille du texte */
.ipx-tools { display: flex; align-items: center; gap: 14px; }
.ipx-lang {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--ipx-soft);
  border-radius: 999px;
}
.ipx-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  box-sizing: border-box;
  border-radius: 999px;
  color: var(--ipx-muted);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.ipx-lang a:hover { color: var(--ipx-ink); }
.ipx-lang a.is-active {
  background: #fff;
  color: var(--ipx-accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

/* Recherche rapide */
.ipx-search { display: flex; align-items: center; gap: 6px; flex: 0 1 260px; min-width: 0; margin: 0; }
.ipx-search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.ipx-search-field svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ipx-muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.ipx-search-field input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 36px;
  box-sizing: border-box;
  border: 1px solid var(--ipx-line);
  border-radius: 999px;
  background: var(--ipx-soft);
  color: var(--ipx-ink);
  font: 13px Verdana, Geneva, sans-serif;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.ipx-search-field input::placeholder { color: #8a8d93; }
.ipx-search-field input:focus { background: #fff; border-color: var(--ipx-accent); box-shadow: 0 0 0 3px var(--ipx-accent-soft); }
.ipx-search-go {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ipx-accent);
  color: #fff;
  font: bold 12px Verdana, Geneva, sans-serif;
  cursor: pointer;
  transition: background-color .2s, transform .15s var(--ipx-ease);
}
.ipx-search-go:hover { background: #5a4969; }
.ipx-search-go:active { transform: scale(.96); }
.ipx-search-go:focus-visible { outline: 2px solid var(--ipx-accent); outline-offset: 2px; }
/* Bouton visible seulement quand le champ est utilise (Entree suffit) */
@media (min-width: 1101px) {
  .ipx-search-go { display: none; }
  .ipx-search:focus-within .ipx-search-go { display: inline-block; }
}
@media (max-width: 1100px) {
  .ipx-bar { flex-wrap: wrap; }
  .ipx-search { order: 10; flex: 1 0 100%; margin: 8px 0 2px; }
}

/* Loupe : taille du texte ; bouton recherche */
.ipx-zoom { position: relative; flex: 0 0 auto; }
.ipx-zoom-toggle, .ipx-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--ipx-soft);
  color: var(--ipx-ink);
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ipx-ease);
  -webkit-tap-highlight-color: transparent;
}
.ipx-zoom-toggle svg, .ipx-icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ipx-icon-btn:hover, .ipx-icon-btn[aria-expanded="true"],
.ipx-zoom-toggle:hover, .ipx-zoom.is-open .ipx-zoom-toggle { background: var(--ipx-accent-soft); color: var(--ipx-accent); }
.ipx-zoom-toggle:active, .ipx-icon-btn:active { transform: scale(.94); }
.ipx-zoom-toggle:focus-visible, .ipx-icon-btn:focus-visible { outline: 2px solid var(--ipx-accent); outline-offset: 2px; }
.ipx-zoom-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 210px;
  padding: 12px 14px 14px;
  background: #fff;
  border: 1px solid var(--ipx-line);
  border-radius: var(--ipx-radius);
  box-shadow: var(--ipx-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .2s, transform .2s var(--ipx-ease), visibility 0s .2s;
}
.ipx-zoom.is-open .ipx-zoom-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s, transform .2s var(--ipx-ease);
}
.ipx-zoom-title { display: block; margin-bottom: 10px; color: var(--ipx-muted); font: 11px Verdana, Geneva, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.ipx-zoom-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ipx-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 48px;
  height: 40px;
  line-height: 1;
  border-radius: 999px;
  background: var(--ipx-soft);
  color: var(--ipx-ink) !important;
  font: bold 14px Georgia, serif;
  text-decoration: none !important;
  transition: background-color .2s, color .2s;
}
.ipx-zoom-btn:hover { background: var(--ipx-accent); color: #fff !important; }
.ipx-zoom-btn.is-disabled { opacity: .35; cursor: default; }
.ipx-zoom-btn.is-disabled:hover { background: var(--ipx-soft); color: var(--ipx-ink) !important; }
.ipx-zoom-a-s { font-size: 12px; }
.ipx-zoom-a-l { font-size: 18px; }
.ipx-zoom-level { display: inline-flex; align-items: flex-end; gap: 4px; height: 20px; }
.ipx-zoom-level a { display: block; width: 6px; border-radius: 3px; background: var(--ipx-line); transition: background-color .2s; }
.ipx-zoom-level a:nth-child(1) { height: 8px; }
.ipx-zoom-level a:nth-child(2) { height: 12px; }
.ipx-zoom-level a:nth-child(3) { height: 16px; }
.ipx-zoom-level a:nth-child(4) { height: 20px; }
.ipx-zoom-level a.is-on { background: var(--ipx-accent); }

/* Fil d'Ariane */
.ipx-crumbs {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 8px;
  box-sizing: border-box;
  color: var(--ipx-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ipx-crumbs a { color: var(--ipx-muted); font-weight: normal; text-decoration: none; }
.ipx-crumbs a:hover { color: var(--ipx-accent); text-decoration: underline; }

/* Bouton burger */
.ipx-burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--ipx-soft);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ipx-burger span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ipx-ink);
  transition: transform .3s var(--ipx-ease), opacity .2s, top .3s var(--ipx-ease);
}
.ipx-burger span:nth-child(1) { top: 15px; }
.ipx-burger span:nth-child(2) { top: 21px; }
.ipx-burger span:nth-child(3) { top: 27px; }
.ipx-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.ipx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.ipx-burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ------------------------------------------------------------------ */
/* Tablettes et GSM : navigation repliable                             */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .ipx-bar { flex-wrap: wrap; gap: 0; padding: 8px 16px; }
  .ipx-brand img { width: 160px; }
  .ipx-header.is-scrolled .ipx-brand img { width: 130px; }
  .ipx-zoom { order: 3; margin-left: auto; }
  .ipx-burger { display: block; order: 4; margin-left: 8px; }
  .ipx-zoom-toggle, .ipx-icon-btn { width: 44px; height: 44px; border-radius: 10px; }
  .ipx-nav { order: 5; }
  .ipx-search-field input { font-size: 16px; } /* pas de zoom automatique iOS */

  .ipx-nav {
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s var(--ipx-ease), opacity .25s, padding .35s var(--ipx-ease);
  }
  .ipx-nav.is-open {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    opacity: 1;
    padding: 8px 0 12px;
  }
  .ipx-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .ipx-menu > li { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ipx-ease); }
  .ipx-nav.is-open .ipx-menu > li { opacity: 1; transform: none; }
  .ipx-nav.is-open .ipx-menu > li:nth-child(2) { transition-delay: .04s; }
  .ipx-nav.is-open .ipx-menu > li:nth-child(3) { transition-delay: .08s; }
  .ipx-nav.is-open .ipx-menu > li:nth-child(4) { transition-delay: .12s; }
  .ipx-nav.is-open .ipx-menu > li:nth-child(5) { transition-delay: .16s; }
  .ipx-menu a, .ipx-sub-toggle {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 12px;
    font-size: 15px;
    text-align: left;
  }
  .ipx-menu > li > a::after, .ipx-sub-toggle::after {
    left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto;
    transform: scaleY(0); transform-origin: center;
  }
  .ipx-menu > li > a.is-active::after, .ipx-sub-toggle.is-active::after { transform: scaleY(1); }
  .ipx-menu > li > a:hover::after, .ipx-sub-toggle:hover::after { transform: scaleY(1); }
  .ipx-sub-toggle { justify-content: space-between; }

  .ipx-sub {
    position: static;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 2px solid var(--ipx-accent-soft);
    margin-left: 12px;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height .3s var(--ipx-ease);
  }
  .ipx-has-sub.is-open .ipx-sub { max-height: 400px; }
  .ipx-has-sub:focus-within .ipx-sub { max-height: 400px; }
  .ipx-sub a { padding: 12px; font-size: 14px; }

  .ipx-tools {
    justify-content: space-between;
    padding: 12px 12px 0;
    margin-top: 8px;
    border-top: 1px solid var(--ipx-line);
  }
  .ipx-lang a { min-width: 44px; height: 36px; font-size: 13px; }
  .ipx-crumbs { padding: 0 16px 8px; }

  body.ipx-nav-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .ipx-header *, .ipx-header { transition: none !important; }
}

/* Pied de page */
.ipx-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 16px 20px 24px;
  box-sizing: border-box;
  border-top: 1px solid var(--ipx-line);
  color: var(--ipx-muted);
  font-size: 10px;
  text-align: center;
}
.ipx-rss {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ipx-soft);
  color: var(--ipx-muted);
  font-size: 10px;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.ipx-rss:hover { background: var(--ipx-accent); color: #fff; }

/* ------------------------------------------------------------------ */
/* Contenu : grands ecrans                                             */
/* ------------------------------------------------------------------ */
body.ipx #content { margin-top: 20px; }
body.ipx .searchButton1, body.ipx .searchButton2,
body.ipx .searchButton1Over, body.ipx .searchButton2Over { transition: color .2s; }

/* ------------------------------------------------------------------ */
/* Contenu : tablettes (<= 900px)                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
  body.ipx { background-image: none; }
  body.ipx #content {
    margin-top: 14px;
    padding: 0 12px 24px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Conteneurs a largeur fixe : fluides */
  body.ipx #menuSearch, body.ipx #searchZone, body.ipx #listing, body.ipx #listing_background,
  body.ipx #listing_top, body.ipx #listing_bottom, body.ipx #listingBottom, body.ipx #fieldlist,
  body.ipx #options, body.ipx #announce, body.ipx #logos, body.ipx #logo3, body.ipx #bottom,
  body.ipx #table_top, body.ipx #table_mid, body.ipx #table_mid2, body.ipx #midcontent,
  body.ipx .bar, body.ipx div#logo, body.ipx div#logo2 {
    width: auto !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  /* Largeurs fixes en ligne (style="width: 500px", width="730") : voir ipx.js */
  body.ipx #content .ipx-fluid { width: auto !important; max-width: 100% !important; box-sizing: border-box; }
  body.ipx #content table.ipx-fluid { width: 100% !important; }
  body.ipx #content table { max-width: 100%; }

  /* Cadres dessines en images 600-809px : remplaces par des cartes CSS */
  body.ipx #searchZone, body.ipx #listing_background, body.ipx #table_mid,
  body.ipx #table_mid2, body.ipx #announce {
    background: #fff !important;
    border: 1px solid var(--ipx-line);
    border-radius: var(--ipx-radius);
    box-shadow: var(--ipx-shadow);
    padding: 14px;
  }
  body.ipx #listing_top, body.ipx #listing_bottom, body.ipx #table_top,
  body.ipx #table_bot, body.ipx #table_bot2, body.ipx #bottom { display: none; }
  body.ipx #listing_background { padding: 10px 12px; }
  body.ipx #listing { width: auto; }
  body.ipx .bar {
    height: auto;
    min-height: 33px;
    background: var(--ipx-soft) !important;
    border-radius: 8px;
    padding: 6px 10px;
  }

  /* Vignettes d'avis : cadre image remplace par une carte */
  body.ipx img[src*="lisint_ann_top"], body.ipx img[src*="lisint_ann_bottom"] { display: none; }
  body.ipx td[background*="lisint_ann_back"] {
    background: #fdfdfd !important;
    border: 1px solid var(--ipx-line);
    border-radius: 8px;
    padding: 10px 6px;
    transition: border-color .2s, box-shadow .2s, transform .2s var(--ipx-ease);
  }
  body.ipx td[onclick]:hover td[background*="lisint_ann_back"] {
    border-color: var(--ipx-accent);
    box-shadow: 0 4px 14px rgba(109, 90, 126, .15);
    transform: translateY(-1px);
  }
  body.ipx td[background*="lisint_ann_back"] > table { width: 100% !important; }
  body.ipx .thumbLocate { padding: 8px 2px 4px; }

  /* Barre de navigation par jour */
  body.ipx .bar table { width: 100% !important; padding-top: 0 !important; }
  body.ipx .bar td { width: auto !important; }

  /* Onglets Avis / Recherche / Publication */
  body.ipx #menuSearch { height: auto; background: none; margin-bottom: 10px; }
  body.ipx #menuSearch table { width: 100% !important; border-collapse: separate; border-spacing: 6px 0; }
  body.ipx #menuSearch td { width: 33.33%; }
  body.ipx .searchButton1, body.ipx .searchButton2,
  body.ipx .searchButton1Over, body.ipx .searchButton2Over {
    width: auto;
    height: auto;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ipx-soft);
    border-radius: 10px;
    color: var(--ipx-ink);
  }
  body.ipx .searchButton1Over, body.ipx .searchButton2Over {
    background: var(--ipx-accent);
    color: #fff;
  }
  body.ipx .buttonText2 { padding: 0 6px; font-weight: bold; text-align: center; }

  /* Formulaires */
  body.ipx #content input[type="text"], body.ipx #content input[type="password"],
  body.ipx #content input[type="email"], body.ipx #content input:not([type]),
  body.ipx #content select, body.ipx #content textarea {
    max-width: 100%;
    box-sizing: border-box;
  }
  body.ipx #content iframe { max-width: 100%; }
  body.ipx fieldset { min-width: 0; }
}

/* ------------------------------------------------------------------ */
/* GSM (<= 600px)                                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 600px) {
  .ipx-brand img { width: 140px; }
  .ipx-header.is-scrolled .ipx-brand img { width: 120px; }

  body.ipx #content { padding: 0 10px 24px; }
  body.ipx #searchZone, body.ipx #listing_background, body.ipx #table_mid,
  body.ipx #table_mid2, body.ipx #announce { padding: 10px; border-radius: 8px; }

  /* Tableaux de mise en page : cellules empilees */
  body.ipx #content table.ipx-stack,
  body.ipx #content table.ipx-stack > tbody,
  body.ipx #content table.ipx-stack > tbody > tr,
  body.ipx #content table.ipx-stack > tbody > tr > td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
  body.ipx #content table.ipx-stack > tbody > tr > td { padding-left: 0; padding-right: 0; }

  /* Barre jour precedent / date / jour suivant */
  body.ipx .bar tr { display: flex; flex-wrap: wrap; align-items: center; }
  body.ipx .bar td { display: block; flex: 1 1 50%; box-sizing: border-box; padding: 3px 0; }
  body.ipx .bar td[align="center"] { order: -1; flex-basis: 100%; }
  body.ipx .bar td:empty { display: none; }

  /* Champs de formulaire pleine largeur, cibles tactiles */
  body.ipx #content input[type="text"], body.ipx #content input[type="password"],
  body.ipx #content input[type="email"], body.ipx #content input:not([type]),
  body.ipx #content select, body.ipx #content textarea {
    width: 100% !important;
    min-height: 38px;
    font-size: 16px; /* evite le zoom automatique sur iOS */
  }
  body.ipx #content textarea { min-height: 100px; }
  body.ipx #content input[type="submit"], body.ipx #content input[type="button"],
  body.ipx #content .bt, body.ipx #content .bt2, body.ipx #content .bt3 {
    min-height: 40px;
    background-size: 100% 100%;
  }

  /* Page d'un avis : logo en double avec l'en-tete */
  body.ipx-page-5 #logos .putCenter { display: none; }
  body.ipx #logos { height: auto; }

  body.ipx .ann4 { font-size: 22px; }
  body.ipx .ann3, body.ipx .ann5 { font-size: 17px; }
  body.ipx h1 { font-size: 18px; }
}

@media print {
  .ipx-header, .ipx-footer { display: none !important; }
}

/* ------------------------------------------------------------------ */
/* Partage d'un avis                                                   */
/* ------------------------------------------------------------------ */
.ipx-share {
  position: relative;
  max-width: 620px;
  margin: 14px auto 4px;
  padding: 0 4px;
  text-align: center;
  font-family: Verdana, Geneva, sans-serif;
}
.ipx-share-title {
  display: block;
  margin-bottom: 8px;
  color: var(--ipx-muted);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ipx-share-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ipx-share-btn {
  --c: var(--ipx-ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px 0 11px;
  border: 1px solid var(--ipx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ipx-ink) !important;
  font: bold 12px Verdana, Geneva, sans-serif;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ipx-ease), box-shadow .2s;
}
.ipx-share-btn svg { width: 17px; height: 17px; fill: var(--c); flex: 0 0 auto; transition: fill .2s; }
.ipx-share-btn:hover, .ipx-share-btn:focus-visible {
  background: var(--c);
  border-color: var(--c);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.ipx-share-btn:hover svg, .ipx-share-btn:focus-visible svg { fill: #fff; }
.ipx-share-btn:focus-visible { outline: 2px solid var(--ipx-accent); outline-offset: 2px; }
.ipx-share-btn[hidden] { display: none; }
.ipx-share-whatsapp { --c: #25D366; }
.ipx-share-facebook, .ipx-share-messenger { --c: #0866FF; }
.ipx-share-telegram { --c: #26A5E4; }
.ipx-share-x { --c: #000; }
.ipx-share-mail { --c: #6b6f76; }
.ipx-share-mail svg path { fill: none; stroke: var(--c); }
.ipx-share-mail:hover svg path { stroke: #fff; }
.ipx-share-copy, .ipx-share-native { --c: var(--ipx-accent); }
.ipx-share-copy.is-done { --c: #2e7d32; background: #2e7d32; border-color: #2e7d32; color: #fff !important; }
.ipx-share-copy.is-done svg { fill: #fff; }
/* Messenger : application mobile uniquement */
@media (hover: hover) and (pointer: fine) { .ipx-share-messenger { display: none; } }
.ipx-share-toast {
  position: absolute;
  left: 50%;
  bottom: -30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ipx-ink);
  color: #fff;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .2s, transform .2s var(--ipx-ease);
}
.ipx-share-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .ipx-share-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ipx-share-btn { justify-content: center; height: 44px; padding: 0 8px; font-size: 12px; }
  /* Sur GSM, le bouton natif (WhatsApp, SMS, Instagram...) passe en tete, pleine largeur */
  .ipx-share-native:not([hidden]) { grid-column: 1 / -1; background: var(--ipx-accent); border-color: var(--ipx-accent); color: #fff !important; }
  .ipx-share-native svg { fill: #fff; }
}
@media print { .ipx-share { display: none !important; } }


/* ------------------------------------------------------------------ */
/* Ergonomie generale                                                  */
/* ------------------------------------------------------------------ */
/* Liens lisibles (style.css de 2008 : gris tres clair) */
body.ipx #content a { color: #4a4d53; }
body.ipx #content a:hover { color: var(--ipx-accent); }
body.ipx #content a:focus-visible, body.ipx #content [tabindex="0"]:focus-visible {
  outline: 2px solid var(--ipx-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
body.ipx [onclick] { cursor: pointer; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Onglets Avis / Recherche / Publication */
body.ipx .searchButton1, body.ipx .searchButton2 { color: var(--ipx-muted); transition: color .2s, background-color .2s; }
body.ipx .searchButton1:hover, body.ipx .searchButton2:hover { color: var(--ipx-accent); }
body.ipx .searchButton1Over .buttonText2, body.ipx .searchButton2Over .buttonText2 { font-weight: bold; }

/* Accueil : choix Avis recents / Ceremonies du jour en commutateur */
.ipx-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin: 4px 0 14px;
  border-radius: 999px;
  background: var(--ipx-soft);
}
.ipx-toggle label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ipx-muted);
  font: bold 12px Verdana, Geneva, sans-serif;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.ipx-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ipx-toggle label.is-on { background: #fff; color: var(--ipx-accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ipx-toggle label:focus-within { outline: 2px solid var(--ipx-accent); outline-offset: 1px; }
.ipx-toggle-src { display: none !important; }

/* Accueil : liste des provinces en boutons */
body.ipx td[id^="pro"][onclick] {
  padding: 1px 0;
}
body.ipx td[id^="pro"][onclick] a,
body.ipx td[id^="pro"][onclick] .titreText a {
  display: block;
  padding: 6px 12px;
  margin: 1px 0;
  border-radius: 8px;
  color: var(--ipx-ink) !important;
  font: bold 12px Verdana, Geneva, sans-serif;
  text-decoration: none;
  transition: background-color .15s, color .15s, padding-left .2s var(--ipx-ease);
}
body.ipx td[id^="pro"][onclick]:hover a,
body.ipx td[id^="pro"][onclick] a:focus-visible {
  background: var(--ipx-accent-soft);
  color: var(--ipx-accent) !important;
  padding-left: 16px;
}
body.ipx td#pro12 .titreText a { background: var(--ipx-soft); }
.ipx-hint { margin: 0 0 8px; color: var(--ipx-muted); font-size: 11px; }

/* Vignettes d'avis : retour visuel au survol (toutes tailles) */
body.ipx td[onclick*="ann-5-"], body.ipx td[onclick*="p=5&"] { transition: transform .2s var(--ipx-ease); }
body.ipx td[onclick*="ann-5-"]:hover .thumbName a, body.ipx td[onclick*="p=5&"]:hover .thumbName a { color: var(--ipx-accent); text-decoration: underline; }

/* Bouton "Adresser vos condoleances" bien visible */
body.ipx #sent { margin: 18px 0 8px; text-align: center; }
body.ipx #sent br { display: none; }
body.ipx #sent a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ipx-accent);
  color: #fff !important;
  font: bold 14px Verdana, Geneva, sans-serif;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(109, 90, 126, .25);
  transition: background-color .2s, transform .15s var(--ipx-ease), box-shadow .2s;
}
body.ipx #sent a::before { content: "\2709"; font-size: 16px; }
body.ipx #sent a:hover { background: #5a4969; transform: translateY(-1px); }
body.ipx #condolences.show { animation: ipx-in .35s var(--ipx-ease); border-radius: var(--ipx-radius); }
@keyframes ipx-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Retour en haut */
.ipx-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--ipx-ink);
  color: #fff;
  box-shadow: var(--ipx-shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s var(--ipx-ease), visibility 0s .25s, background-color .2s;
}
.ipx-top.is-visible { opacity: .9; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ipx-ease), background-color .2s; }
.ipx-top:hover { background: var(--ipx-accent); opacity: 1; }
.ipx-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media print { .ipx-top { display: none !important; } }

/* ------------------------------------------------------------------ */
/* Ergonomie : acces rapide, recherche, actions                        */
/* ------------------------------------------------------------------ */
.ipx-bar { gap: 12px; }
.ipx-nav { margin-left: 12px; margin-right: 8px; }
.ipx-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ipx-accent);
  color: #fff !important;
  font: bold 13px Verdana, sans-serif;
  transition: top .2s;
}
.ipx-skip:focus { top: 10px; }

/* Listes : navigation par jour */
body.ipx .bar a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ipx-line);
  color: var(--ipx-ink) !important;
  text-decoration: none !important;
  transition: background-color .2s, border-color .2s, color .2s;
}
body.ipx .bar a:hover { border-color: var(--ipx-accent); color: var(--ipx-accent) !important; }
body.ipx td[onclick*="ann-"] { cursor: pointer; }

/* Page d'un avis : barre d'actions (remplace les anciennes icones) */
@media screen { body.ipx-page-5 #logos { display: none; } }
.ipx-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
  margin: 4px auto 6px;
}
.ipx-act {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--ipx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ipx-ink);
  font: bold 12px Verdana, Geneva, sans-serif;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.ipx-act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ipx-act:hover { border-color: var(--ipx-accent); color: var(--ipx-accent); }
.ipx-act:active { transform: scale(.97); }
.ipx-act-primary { background: var(--ipx-accent); border-color: var(--ipx-accent); color: #fff; }
.ipx-act-primary:hover { color: #fff; filter: brightness(1.1); }
.ipx-act:focus-visible { outline: 2px solid var(--ipx-accent); outline-offset: 2px; }

/* Formulaire de condoleances */
body.ipx #condolences.show {
  display: table;
  margin-top: 10px;
  border: 1px solid var(--ipx-line) !important;
  border-radius: var(--ipx-radius);
  box-shadow: var(--ipx-shadow);
  padding: 8px;
  scroll-margin-top: 110px;
}
body.ipx #condolences input[type="text"], body.ipx #condolences textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--ipx-line);
  border-radius: 8px;
  font: 13px Verdana, sans-serif;
}
body.ipx #condolences input:focus, body.ipx #condolences textarea:focus { outline: 0; border-color: var(--ipx-accent); box-shadow: 0 0 0 3px var(--ipx-accent-soft); }
body.ipx #condolences .cell3 { border-radius: 6px; font-weight: bold; }
body.ipx #condolences input[type="submit"] {
  width: auto;
  min-height: 42px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ipx-accent);
  color: #fff;
  font: bold 13px Verdana, sans-serif;
  cursor: pointer;
}
@media (max-width: 600px) {
  body.ipx #condolences.show, body.ipx #condolences.show > tbody, body.ipx #condolences.show tr, body.ipx #condolences.show td { display: block; width: 100% !important; box-sizing: border-box; }
  .ipx-act { flex: 1 1 calc(33% - 8px); justify-content: center; padding: 0 8px; }
  .ipx-act-primary { flex-basis: 100%; height: 46px; font-size: 13px; }
}

@media print { .ipx-actions, .ipx-skip { display: none !important; } }
@media (max-width: 900px) {
  .ipx-nav { margin: 0; }
}
.ipx-home-browse b { color: var(--ipx-ink); }

/* Menu sur une ligne ; en-tete compact sur GSM une fois la page defilee */
.ipx-menu a, .ipx-sub-toggle { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1240px) {
  .ipx-menu a, .ipx-sub-toggle { padding-left: 10px; padding-right: 10px; }
  .ipx-menu > li > a::after, .ipx-sub-toggle::after { left: 10px; right: 10px; }
}
@media (max-width: 900px) {
  .ipx-header.is-compact .ipx-search, .ipx-header.is-compact .ipx-crumbs { display: none; }
  .ipx-header.is-compact .ipx-bar { padding-top: 4px; padding-bottom: 4px; }
  body.ipx #condolences.show { scroll-margin-top: 80px; }
}

/* ------------------------------------------------------------------ */
/* Listes d'avis et resultats (2026)                                   */
/* ------------------------------------------------------------------ */
.ipx-list {
  max-width: 980px;
  margin: 8px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
  font-family: Verdana, Geneva, sans-serif;
  color: var(--ipx-ink);
}
.ipx-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 18px;
}
.ipx-eyebrow { margin: 0 0 4px; color: var(--ipx-accent); font-size: 11px; font-weight: bold; letter-spacing: .08em; text-transform: uppercase; }
.ipx-list .ipx-list-title { margin: 0; font: normal 28px/1.15 Georgia, "Times New Roman", serif; color: var(--ipx-ink); }
.ipx-list-title small { display: block; margin-top: 6px; color: var(--ipx-muted); font: 13px Verdana, sans-serif; }
.ipx-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ipx-chips { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ipx-soft); }
.ipx-chips-label { padding: 0 8px 0 10px; color: var(--ipx-muted); font-size: 11px; }
.ipx-chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  color: var(--ipx-muted) !important; font: bold 12px Verdana, Geneva, sans-serif; text-decoration: none !important;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.ipx-chip:hover { color: var(--ipx-ink) !important; }
.ipx-chip.is-on { background: #fff; color: var(--ipx-accent) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ipx-select { display: inline-flex; align-items: center; gap: 8px; color: var(--ipx-muted); font-size: 11px; white-space: nowrap; }
.ipx-select select {
  height: 36px; padding: 0 30px 0 12px; border: 1px solid var(--ipx-line); border-radius: 999px; background: #fff;
  color: var(--ipx-ink); font: bold 12px Verdana, sans-serif; cursor: pointer;
}

.ipx-daynav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: var(--ipx-radius);
  background: var(--ipx-soft);
}
.ipx-daynav-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 1px solid var(--ipx-line); border-radius: 999px; background: #fff;
  color: var(--ipx-ink) !important; font: bold 12px Verdana, sans-serif; text-decoration: none !important; white-space: nowrap;
  transition: border-color .2s, color .2s, transform .15s var(--ipx-ease);
}
.ipx-daynav-btn:hover { border-color: var(--ipx-accent); color: var(--ipx-accent) !important; }
.ipx-daynav-btn:active { transform: scale(.97); }
.ipx-daynav-btn.is-disabled { opacity: .35; pointer-events: none; }
.ipx-daynav-date { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0; text-align: center; }
.ipx-daynav-date label { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ipx-daynav-day { font: 17px Georgia, serif; color: var(--ipx-ink); }
.ipx-daynav-date input[type="date"] {
  height: 34px; padding: 0 8px; border: 1px solid var(--ipx-line); border-radius: 8px; background: #fff;
  color: var(--ipx-muted); font: 12px Verdana, sans-serif; cursor: pointer;
}
.ipx-daynav-today { color: var(--ipx-accent) !important; font-size: 12px; font-weight: bold; text-decoration: underline !important; }

.ipx-count { margin: 0 0 10px; color: var(--ipx-muted); font-size: 12px; }
.ipx-list .ipx-subtitle { margin: 28px 0 12px; font: normal 20px Georgia, serif; color: var(--ipx-ink); }

/* Grille de vignettes */
.ipx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ipx-card { margin: 0; }
.ipx-card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 16px 18px 14px;
  border: 1px solid var(--ipx-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ipx-ink) !important;
  font-weight: normal !important;
  text-decoration: none !important;
  transition: border-color .2s, box-shadow .25s var(--ipx-ease), transform .25s var(--ipx-ease);
}
.ipx-card-link::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--ipx-line); transition: background-color .2s;
}
.ipx-card-t1 .ipx-card-link::before, .ipx-card-t3 .ipx-card-link::before, .ipx-card-t4 .ipx-card-link::before { background: #b9aec4; }
.ipx-card-link:hover, .ipx-card-link:focus-visible {
  border-color: #cfc5d8;
  box-shadow: 0 10px 28px rgba(40, 30, 60, .10);
  transform: translateY(-2px);
}
.ipx-card-link:hover::before, .ipx-card-link:focus-visible::before { background: var(--ipx-accent); }
.ipx-card-link:focus-visible { outline: 2px solid var(--ipx-accent); outline-offset: 2px; }
.ipx-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-bottom: 10px; color: var(--ipx-muted); font-size: 11px; }
.ipx-card-place { display: inline-flex; align-items: center; gap: 4px; }
.ipx-card-place svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.ipx-card-body { flex: 1 1 auto; text-align: center; }
.ipx-card-type {
  display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px;
  background: var(--ipx-accent-soft); color: var(--ipx-accent); font-size: 10px; font-weight: bold; letter-spacing: .03em;
}
.ipx-card-civil { display: block; color: var(--ipx-muted); font: 13px Georgia, serif; }
.ipx-card-name { margin: 2px 0 6px; font: normal 21px/1.25 Georgia, "Times New Roman", serif; color: var(--ipx-ink); }
.ipx-card-deco { display: block; color: #555; font: italic 12px Georgia, serif; }
.ipx-card-died { margin: 8px 0 0; color: var(--ipx-muted); font: 12px/1.5 Georgia, serif; }
.ipx-card-cta {
  align-self: flex-end; margin-top: 12px; color: var(--ipx-accent); font-size: 11px; font-weight: bold;
  opacity: .0; transform: translateX(-4px); transition: opacity .2s, transform .2s var(--ipx-ease);
}
.ipx-card-link:hover .ipx-card-cta, .ipx-card-link:focus-visible .ipx-card-cta { opacity: 1; transform: none; }
@media (hover: none) { .ipx-card-cta { opacity: 1; transform: none; } }

.ipx-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 24px 0 8px; }
.ipx-pager > :last-child { justify-self: end; }
.ipx-pager-info { color: var(--ipx-muted); font-size: 12px; }

.ipx-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 28px 16px; border: 1px dashed var(--ipx-line); border-radius: var(--ipx-radius); text-align: center; color: var(--ipx-muted);
}
.ipx-empty svg { width: 34px; height: 34px; fill: none; stroke: #b9aec4; stroke-width: 1.6; }
.ipx-empty p { margin: 0; font-size: 13px; }
.ipx-empty strong { color: var(--ipx-ink); }

@media (max-width: 600px) {
  .ipx-list { padding: 0 2px; }
  .ipx-list .ipx-list-title { font-size: 25px; }
  .ipx-daynav { grid-template-columns: 1fr 1fr; }
  .ipx-daynav-date { grid-column: 1 / -1; grid-row: 1; }
  .ipx-daynav-txt { font-size: 12px; }
  .ipx-grid { grid-template-columns: 1fr; gap: 12px; }
  .ipx-filters { width: 100%; justify-content: space-between; }
}

/* ------------------------------------------------------------------ */
/* Habillage moderne des pages de 2008 (toutes tailles d'ecran)        */
/* ------------------------------------------------------------------ */
/* Cadres dessines en images -> cartes */
body.ipx #searchZone, body.ipx #table_mid, body.ipx #table_mid2, body.ipx #listing_background {
  background: #fff !important;
  border: 1px solid var(--ipx-line);
  border-radius: 14px;
  box-shadow: var(--ipx-shadow);
  padding: 18px 22px;
  box-sizing: border-box;
}
body.ipx #searchZone, body.ipx #table_mid, body.ipx #table_mid2 { width: 680px; max-width: 100%; }
body.ipx #table_top, body.ipx #table_bot, body.ipx #table_bot2, body.ipx #listing_top, body.ipx #listing_bottom, body.ipx #bottom { display: none; }
body.ipx #searchZone td[style*="searchZoneBottom"] { background: none !important; }
body.ipx #table_content { padding: 0; }

/* Onglets Avis / Recherche / Publication : segments */
body.ipx #menuSearch { width: 680px; max-width: 100%; height: auto; background: none; margin: 0 auto 12px; }
body.ipx #menuSearch table { width: 100% !important; border-collapse: separate; border-spacing: 6px 0; }
body.ipx #menuSearch td { width: 33.33%; }
body.ipx .searchButton1, body.ipx .searchButton2,
body.ipx .searchButton1Over, body.ipx .searchButton2Over {
  width: auto; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--ipx-soft) !important; border-radius: 12px; color: var(--ipx-ink);
  transition: background-color .2s, color .2s;
}
body.ipx .searchButton1:hover, body.ipx .searchButton2:hover { background: var(--ipx-accent-soft) !important; color: var(--ipx-accent); }
body.ipx .searchButton1Over, body.ipx .searchButton2Over { background: var(--ipx-accent) !important; color: #fff !important; }
body.ipx .buttonText2 { padding: 0 6px; font: bold 13px Verdana, Geneva, sans-serif; text-align: center; }

/* Blocs de formulaire */
body.ipx #content fieldset {
  margin: 0 0 16px;
  padding: 14px 18px 16px;
  border: 1px solid var(--ipx-line);
  border-radius: 12px;
  background: #fff;
}
body.ipx #content legend {
  padding: 0 8px;
  color: var(--ipx-ink);
  font: normal 17px Georgia, "Times New Roman", serif;
}
body.ipx #content .cell, body.ipx #content .cell2, body.ipx #content .cellClear { background: transparent; }
body.ipx #content .cell3 { background: var(--ipx-soft); border-radius: 6px; }

/* Champs */
body.ipx #content input[type="text"], body.ipx #content input[type="password"],
body.ipx #content input[type="email"], body.ipx #content input:not([type]),
body.ipx #content select, body.ipx #content textarea {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #d3d3d6;
  border-radius: 8px;
  background-color: #fff;
  color: var(--ipx-ink);
  font: 13px Verdana, Geneva, sans-serif;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
body.ipx #content select { padding-right: 26px; cursor: pointer; }
body.ipx #content textarea { min-height: 90px; }
body.ipx #content input:focus, body.ipx #content select:focus, body.ipx #content textarea:focus {
  outline: 0;
  border-color: var(--ipx-accent);
  box-shadow: 0 0 0 3px var(--ipx-accent-soft);
}
body.ipx #content input[type="checkbox"], body.ipx #content input[type="radio"] { accent-color: var(--ipx-accent); width: 16px; height: 16px; }

/* Boutons de 2008 (.bt, .bt2, .bt3, submit) */
body.ipx #content .bt, body.ipx #content .bt2, body.ipx #content .bt3,
body.ipx #content input[type="submit"]:not(.bt4), body.ipx #content input[type="button"]:not(.bt4) {
  width: auto;
  min-width: 140px;
  height: 42px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ipx-accent) !important;
  color: #fff !important;
  font: bold 13px Verdana, Geneva, sans-serif;
  cursor: pointer;
  transition: filter .2s, transform .15s var(--ipx-ease);
}
body.ipx #content .bt:hover, body.ipx #content .bt2:hover, body.ipx #content .bt3:hover,
body.ipx #content input[type="submit"]:not(.bt4):hover, body.ipx #content input[type="button"]:not(.bt4):hover { filter: brightness(1.12); }
body.ipx #content .bt:active, body.ipx #content .bt2:active, body.ipx #content .bt3:active { transform: scale(.97); }

/* Liens d'action de 2008 ("Vers recherche avancee", "Formulaire de contact"...) */
body.ipx div#advance { padding: 0 0 6px; color: var(--ipx-accent); font-weight: bold; text-decoration: underline; }

/* Rubrique A propos : menu lateral */
body.ipx .selectPro, body.ipx .noselectPro { text-decoration: none; }

/* Rubrique A propos */
.ipx-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 999px;
  background: var(--ipx-soft);
  -webkit-overflow-scrolling: touch;
}
.ipx-tabs::-webkit-scrollbar { display: none; }
.ipx-tab {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px;
  color: var(--ipx-muted) !important; font: bold 12px Verdana, Geneva, sans-serif; text-decoration: none !important; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.ipx-tab:hover { color: var(--ipx-ink) !important; }
.ipx-tab.is-on { background: #fff; color: var(--ipx-accent) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ipx-tab:focus-visible { outline: 2px solid var(--ipx-accent); outline-offset: 1px; }
.ipx-prose {
  min-height: 160px;
  padding: 22px 26px;
  border: 1px solid var(--ipx-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--ipx-shadow);
  color: var(--ipx-ink);
  font: 14px/1.7 Georgia, "Times New Roman", serif;
  transition: opacity .2s;
  overflow-wrap: anywhere;
}
.ipx-prose.is-loading { opacity: .45; }
.ipx-prose * { max-width: 100%; }
.ipx-prose p, .ipx-prose span, .ipx-prose td, .ipx-prose li, .ipx-prose div { font-size: inherit !important; line-height: inherit !important; font-family: inherit !important; }
.ipx-prose b, .ipx-prose strong { color: var(--ipx-ink); }
.ipx-prose a { color: var(--ipx-accent) !important; text-decoration: underline !important; font-weight: normal; }
.ipx-prose table { width: auto !important; }

@media (max-width: 600px) {
  body.ipx #searchZone, body.ipx #table_mid, body.ipx #table_mid2, body.ipx #listing_background { padding: 12px; border-radius: 12px; }
  body.ipx #content fieldset { padding: 10px 10px 12px; border-radius: 10px; }
  body.ipx #content legend { font-size: 15px; }
  .ipx-tabs { border-radius: 12px; }
  .ipx-prose { padding: 16px; font-size: 15px; }
}
@media (min-width: 901px) { .ipx-tabs { flex-wrap: wrap; overflow: visible; border-radius: 18px; } }

/* Boutons secondaires (retour, effacer) */
body.ipx #content input[type="reset"], body.ipx #content input[type="button"]:not(.bt4) {
  background: #fff !important;
  color: var(--ipx-ink) !important;
  box-shadow: inset 0 0 0 1px var(--ipx-line);
}
body.ipx #content input[type="reset"]:hover, body.ipx #content input[type="button"]:not(.bt4):hover { filter: none; box-shadow: inset 0 0 0 1px var(--ipx-accent); color: var(--ipx-accent) !important; }

/* Boutons de 2008 : largeurs fixes en ligne (style="width: 83px / 180px")
   neutralisees, texte jamais coupe, hauteur adaptee au contenu */
body.ipx #content .bt, body.ipx #content .bt2, body.ipx #content .bt3,
body.ipx #content input[type="submit"]:not(.bt4), body.ipx #content input[type="button"]:not(.bt4),
body.ipx #content input[type="reset"] {
  width: auto !important;
  max-width: 100%;
  min-width: 120px;
  height: auto !important;
  min-height: 42px;
  padding: 11px 26px !important;
  margin: 4px;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
@media (max-width: 600px) {
  body.ipx #content .bt, body.ipx #content .bt2, body.ipx #content .bt3,
  body.ipx #content input[type="submit"]:not(.bt4), body.ipx #content input[type="button"]:not(.bt4),
  body.ipx #content input[type="reset"] { min-width: 0; padding: 11px 20px !important; }
}
/* Fil d'Ariane sous le menu (valeur de depart, affinee par ipx.js) */
@media (min-width: 901px) { .ipx-crumbs { padding-left: 256px; } }

/* Partage : pictos seuls (libelles conserves pour les lecteurs d'ecran et en infobulle) */
.ipx-share .ipx-share-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ipx-share .ipx-share-btn {
  width: 44px; height: 44px; padding: 0; justify-content: center; gap: 0; border-radius: 50%;
}
.ipx-share .ipx-share-btn svg { width: 20px; height: 20px; }
.ipx-share .ipx-share-btn > span {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ipx-share .ipx-share-native:not([hidden]) { grid-column: auto; background: #fff; border-color: var(--ipx-line); color: var(--ipx-ink) !important; }
.ipx-share .ipx-share-native svg { fill: var(--ipx-accent); }
.ipx-share .ipx-share-native:hover svg { fill: #fff; }
.ipx-share-toast { bottom: -34px; }
@media (max-width: 600px) {
  .ipx-share .ipx-share-list { display: flex; flex-wrap: nowrap; gap: 6px; }
  .ipx-share .ipx-share-btn { width: 42px; height: 42px; flex: 0 0 42px; }
}

/* Condoleances : consentement */
body.ipx #condolences .ipx-consent { padding: 12px 8px 4px; }
body.ipx #condolences .ipx-consent label {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px;
  background: var(--ipx-accent-soft); color: var(--ipx-ink); font: 12px/1.55 Verdana, Geneva, sans-serif; cursor: pointer;
}
body.ipx #condolences .ipx-consent input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; }
body.ipx #condolences .ipx-consent a { color: var(--ipx-accent) !important; text-decoration: underline !important; font-weight: bold; }
body.ipx #condolences .ipx-consent-error { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; background: #fdecec; color: #a12a2a; font: bold 12px Verdana, sans-serif; }

/* ------------------------------------------------------------------ */
/* Accueil 2026                                                         */
/* ------------------------------------------------------------------ */
body.ipx-page-1 #content { margin-top: 0; }
.ipx-home { font-family: Verdana, Geneva, sans-serif; color: var(--ipx-ink); }

/* Apparitions */
.ipx-anim .ipx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ipx-ease), transform .8s var(--ipx-ease); }
.ipx-anim .ipx-reveal.is-in { opacity: 1; transform: none; }

/* Hero */
.ipx-hero {
  position: relative;
  z-index: 2;
  overflow: visible;
  padding: 88px 20px 96px;
  text-align: center;
  background:
    radial-gradient(1200px 520px at 50% -10%, #efe8f4 0%, rgba(239, 232, 244, 0) 70%),
    linear-gradient(180deg, #faf8fb 0%, #ffffff 100%);
  border-bottom: 1px solid #f0edf2;
}
.ipx-hero-glow {
  position: absolute; left: 50%; top: 46%; width: min(620px, 100vw); height: 620px; margin: -310px 0 0 calc(min(620px, 100vw) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 176, 120, .16) 0%, rgba(201, 176, 120, 0) 62%);
  filter: blur(8px);
  animation: ipx-breathe 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ipx-breathe { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ipx-hero-glow { animation: none; } }
.ipx-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.ipx-hero .ipx-eyebrow { letter-spacing: .18em; }
.ipx-home .ipx-hero-title {
  margin: 14px 0 16px;
  font: normal 52px/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.01em;
  color: #24212a;
}
.ipx-hero-sub { max-width: 600px; margin: 0 auto 34px; color: #5d5a63; font: 17px/1.6 Georgia, serif; }
.ipx-hero-search {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  max-width: 620px; margin: 0 auto;
  padding: 8px 8px 8px 22px;
  background: #fff;
  border: 1px solid #e4dfe8;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(60, 40, 80, .12), 0 2px 6px rgba(60, 40, 80, .05);
  transition: box-shadow .3s var(--ipx-ease), border-color .3s;
}
.ipx-hero-search:focus-within { border-color: var(--ipx-accent); box-shadow: 0 18px 50px rgba(60, 40, 80, .16), 0 0 0 5px var(--ipx-accent-soft); }
.ipx-hero-search svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: var(--ipx-muted); stroke-width: 2; stroke-linecap: round; }
.ipx-hero-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 4px; border: 0; outline: 0; background: transparent;
  color: var(--ipx-ink); font: 17px Verdana, Geneva, sans-serif; -webkit-appearance: none;
}
.ipx-hero-search button {
  flex: 0 0 auto; height: 52px; padding: 0 30px; border: 0; border-radius: 999px;
  background: var(--ipx-accent); color: #fff; font: bold 15px Verdana, Geneva, sans-serif; cursor: pointer;
  transition: filter .2s, transform .15s var(--ipx-ease);
}
.ipx-hero-search button:hover { filter: brightness(1.12); }
.ipx-hero-search button:active { transform: scale(.97); }
.ipx-hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-top: 22px; color: #b3adb9; font-size: 13px; }
.ipx-hero-links a { color: var(--ipx-muted) !important; font-weight: normal; text-decoration: none !important; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.ipx-hero-links a:hover { color: var(--ipx-accent) !important; border-bottom-color: currentColor; }

/* Sections */
.ipx-section { max-width: 1040px; margin: 0 auto; padding: 64px 20px 0; box-sizing: border-box; }
.ipx-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.ipx-home .ipx-section-title { margin: 4px 0 0; font: normal 32px/1.15 Georgia, "Times New Roman", serif; color: #24212a; }
.ipx-home .ipx-type { margin: 0; }
.ipx-type input { position: absolute; opacity: 0; pointer-events: none; }

/* Provinces + carte */
.ipx-browse-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: center;
  padding: 26px; border: 1px solid var(--ipx-line); border-radius: 20px; background: #fff; box-shadow: var(--ipx-shadow);
}
.ipx-provs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ipx-prov {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px; border-radius: 10px;
  color: var(--ipx-ink) !important; font: bold 13px Verdana, Geneva, sans-serif; text-decoration: none !important;
  transition: background-color .2s, color .2s, padding-left .25s var(--ipx-ease);
}
.ipx-prov svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s var(--ipx-ease); }
.ipx-prov:hover, .ipx-prov:focus-visible, .ipx-prov.is-hover { background: var(--ipx-accent-soft); color: var(--ipx-accent) !important; padding-left: 18px; }
.ipx-prov:hover svg, .ipx-prov:focus-visible svg, .ipx-prov.is-hover svg { opacity: 1; transform: none; }
.ipx-provs-all { grid-column: 1 / -1; margin-top: 6px; }
.ipx-provs-all .ipx-prov { justify-content: center; gap: 10px; background: var(--ipx-soft); }
.ipx-map { position: relative; margin: 0; text-align: center; }
.ipx-map img { width: 100%; max-width: 460px; height: auto; mix-blend-mode: multiply; }
.ipx-map-label {
  position: absolute; left: 50%; bottom: 4px; transform: translate(-50%, 6px);
  padding: 6px 14px; border-radius: 999px; background: var(--ipx-ink); color: #fff; font: bold 12px Verdana, sans-serif;
  opacity: 0; transition: opacity .2s, transform .25s var(--ipx-ease); pointer-events: none; white-space: nowrap;
}
.ipx-map-label.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Familles / entreprises */
.ipx-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 24px; }
.ipx-duo-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 30px; border: 1px solid var(--ipx-line); border-radius: 20px; background: #fff;
}
.ipx-duo-card svg { width: 40px; height: 40px; fill: none; stroke: var(--ipx-accent); stroke-width: 1.6; stroke-linejoin: round; }
.ipx-duo-card h3 { margin: 4px 0 0; font: normal 22px Georgia, serif; color: #24212a; }
.ipx-duo-card p { margin: 0 0 6px; color: #5d5a63; font: 14px/1.65 Georgia, serif; }
.ipx-duo-pro { background: linear-gradient(160deg, #f6f1f9 0%, #ffffff 70%); }
.ipx-btn-primary { background: var(--ipx-accent) !important; border-color: var(--ipx-accent) !important; color: #fff !important; }
.ipx-btn-primary:hover { filter: brightness(1.1); color: #fff !important; }

@media (max-width: 900px) {
  .ipx-hero { padding: 56px 16px 64px; }
  .ipx-home .ipx-hero-title { font-size: 40px; }
  .ipx-browse-grid { grid-template-columns: 1fr; }
  .ipx-map { order: -1; }
  .ipx-duo { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ipx-hero { padding: 40px 12px 48px; }
  .ipx-home .ipx-hero-title { font-size: 31px; }
  .ipx-hero-sub { font-size: 15px; margin-bottom: 24px; }
  .ipx-hero-search { padding: 6px 6px 6px 16px; }
  .ipx-hero-search input[type="search"] { height: 46px; font-size: 16px; }
  .ipx-hero-search button { height: 46px; padding: 0 18px; font-size: 14px; }
  .ipx-section { padding: 44px 4px 0; }
  .ipx-home .ipx-section-title { font-size: 25px; }
  .ipx-browse-grid { padding: 16px; border-radius: 16px; }
  .ipx-provs { grid-template-columns: 1fr 1fr; gap: 4px; }
  .ipx-prov { padding: 10px 10px; font-size: 12px; }
  .ipx-prov svg { display: none; }
  .ipx-home .ipx-grid .ipx-card:nth-child(n+4) { display: none; }
  .ipx-duo-card { padding: 22px; }
}
/* Accueil : la recherche du hero remplace celle de l'en-tete ; pas de fil d'Ariane */
body.ipx-page-1 .ipx-header .ipx-search, body.ipx-page-1 .ipx-crumbs { display: none; }
/* Carte : surlignage aux couleurs du site */
.ipx-map img { filter: hue-rotate(48deg) saturate(.85) brightness(1.04); }

/* ------------------------------------------------------------------ */
/* Rubriques : en-tete commun et panneaux                              */
/* ------------------------------------------------------------------ */
.ipx-pagehead {
  max-width: 980px;
  margin: 0 auto 26px;
  padding: 36px 20px 30px;
  box-sizing: border-box;
  text-align: center;
  background: radial-gradient(700px 220px at 50% 0%, #f1ebf5 0%, rgba(241, 235, 245, 0) 75%);
  font-family: Verdana, Geneva, sans-serif;
}
.ipx-pagehead .ipx-eyebrow { letter-spacing: .14em; }
body.ipx .ipx-pagehead-title { margin: 8px 0 0; font: normal 38px/1.12 Georgia, "Times New Roman", serif; color: #24212a; }
.ipx-pagehead-intro { max-width: 600px; margin: 12px auto 0; color: #5d5a63; font: 15px/1.6 Georgia, serif; }
body.ipx #content { margin-top: 0; }
@media (max-width: 600px) {
  .ipx-pagehead { padding: 24px 8px 18px; margin-bottom: 16px; }
  body.ipx .ipx-pagehead-title { font-size: 28px; }
  .ipx-pagehead-intro { font-size: 14px; }
}

/* Panneaux generiques */
.ipx-page { max-width: 980px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; font-family: Verdana, Geneva, sans-serif; color: var(--ipx-ink); }
.ipx-panel { padding: 26px 28px; border: 1px solid var(--ipx-line); border-radius: 18px; background: #fff; box-shadow: var(--ipx-shadow); box-sizing: border-box; }
body.ipx .ipx-panel-title { margin: 0 0 14px; font: normal 22px Georgia, serif; color: #24212a; }
.ipx-req { color: var(--ipx-accent); }

/* Formulaires modernes */
.ipx-form-hint { margin: -6px 0 16px; color: var(--ipx-muted); font-size: 12px; }
.ipx-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ipx-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ipx-field > span { color: #4a4750; font-size: 12px; font-weight: bold; }
.ipx-field-l { grid-column: 1 / -1; }
body.ipx #content .ipx-field input, body.ipx #content .ipx-field select, body.ipx #content .ipx-field textarea { width: 100%; min-height: 42px; font-size: 14px; }
.ipx-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* Contact */
.ipx-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 22px; align-items: start; }
.ipx-contact-info { background: linear-gradient(165deg, #f6f1f9 0%, #ffffff 75%); }
.ipx-contact-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.ipx-contact-list li { display: flex; gap: 12px; align-items: flex-start; font: 14px/1.5 Georgia, serif; }
.ipx-contact-list svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--ipx-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ipx-contact-list a { color: var(--ipx-ink) !important; font-weight: normal; text-decoration: none !important; border-bottom: 1px solid var(--ipx-line); }
.ipx-contact-list a:hover { color: var(--ipx-accent) !important; border-color: currentColor; }
.ipx-contact-note { padding-top: 14px; border-top: 1px solid var(--ipx-line); color: #5d5a63; font: 13px/1.6 Georgia, serif; }
@media (max-width: 800px) {
  .ipx-contact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ipx-page { padding: 0 2px; }
  .ipx-panel { padding: 18px 16px; border-radius: 14px; }
  .ipx-fields { grid-template-columns: 1fr; }
  .ipx-form-actions { justify-content: stretch; }
  .ipx-form-actions input { width: 100% !important; }
}

/* Cadres des pages de 2008 : plus larges, sans double cadre */
body.ipx #searchZone, body.ipx #table_mid, body.ipx #table_mid2 { width: 760px; }
body.ipx #menuSearch { width: 760px; }

/* Espace membres : connexion d'abord, inscription ensuite */
body.ipx-page-9 #table_content { display: flex; flex-direction: column; }
body.ipx-page-9 #table_content > fieldset:not(#register2) { order: -1; }
body.ipx-page-9 #register2 div[onclick] {
  display: inline-flex; align-items: center; justify-content: center; margin: 6px auto 0; padding: 10px 22px;
  border: 1px solid var(--ipx-line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: bold; color: var(--ipx-accent);
  transition: border-color .2s, background-color .2s;
}
body.ipx-page-9 #register2 div[onclick]:hover { border-color: var(--ipx-accent); background: var(--ipx-accent-soft); }
/* Listes deroulantes etroites de 2008 (style="width:50px") : texte lisible */
body.ipx #content select { min-width: 84px; width: auto; }
body.ipx #content select[style*="width"] { width: auto !important; }

/* Pied de page : acces discret au back-office */
.ipx-footer-admin {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  color: var(--ipx-muted) !important; font: 11px Verdana, Geneva, sans-serif; text-decoration: none !important;
  transition: background-color .2s, color .2s;
}
.ipx-footer-admin svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ipx-footer-admin:hover { background: var(--ipx-soft); color: var(--ipx-accent) !important; }

/* ------------------------------------------------------------------ */
/* Fluidite : transitions entre pages, progression, suggestions       */
/* ------------------------------------------------------------------ */
@view-transition { navigation: auto; }
.ipx-header { view-transition-name: ipx-header; }
.ipx-footer { view-transition-name: ipx-footer; }
::view-transition-old(root) { animation: ipx-vt-out .22s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: ipx-vt-in .32s cubic-bezier(0, 0, .2, 1) both; }
@keyframes ipx-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes ipx-vt-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Barre de progression */
.ipx-progress {
  position: fixed; left: 0; top: 0; z-index: 200; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--ipx-accent), #b9a3c9);
  box-shadow: 0 0 8px rgba(109, 90, 126, .5);
  opacity: 0; pointer-events: none;
}
.ipx-progress.is-on { opacity: 1; animation: ipx-progress 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes ipx-progress { 0% { width: 0; } 10% { width: 35%; } 40% { width: 70%; } 100% { width: 92%; } }

/* Suggestions de recherche */
.ipx-sug {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70;
  max-height: min(70vh, 460px); overflow-y: auto; padding: 6px;
  background: #fff; border: 1px solid var(--ipx-line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(40, 30, 60, .16);
  text-align: left; font-family: Verdana, Geneva, sans-serif;
  animation: ipx-pop .18s cubic-bezier(.2, .7, .2, 1);
}
@keyframes ipx-pop { from { opacity: 0; transform: translateY(-4px); } }
.ipx-sug.is-loading { opacity: .75; }
.ipx-sug-item {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px;
  color: var(--ipx-ink) !important; font-weight: normal !important; text-decoration: none !important;
}
.ipx-sug-name { font: 16px Georgia, "Times New Roman", serif; }
.ipx-sug-meta { color: var(--ipx-muted); font-size: 11px; }
.ipx-sug-item:hover, .ipx-sug-item.is-active { background: var(--ipx-accent-soft); }
.ipx-sug-item.is-active .ipx-sug-name { color: var(--ipx-accent); }
.ipx-sug-empty { margin: 0; padding: 12px; color: var(--ipx-muted); font-size: 12px; }
.ipx-sug-all {
  display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 0; border-top: 1px solid var(--ipx-line);
  border-radius: 0 0 10px 10px; background: none; color: var(--ipx-accent); font: bold 12px Verdana, sans-serif; text-align: left; cursor: pointer;
}
.ipx-sug-all:hover, .ipx-sug-all.is-active { background: var(--ipx-soft); }
.ipx-search { position: relative; }

/* Micro-interactions : retour tactile sur tous les elements cliquables */
.ipx-card-link:active, .ipx-prov:active, .ipx-chip:active, .ipx-tab:active { transform: scale(.985); }
a, button { -webkit-tap-highlight-color: transparent; }
body.ipx #content .ipx-hero-search input[type="search"], body.ipx #content .ipx-hero-search input[type="search"]:focus,
body.ipx .ipx-search input[type="search"]:focus { border: 0; box-shadow: none; outline: 0; min-height: 0; }
body.ipx .ipx-search .ipx-search-field input[type="search"]:focus { border: 1px solid var(--ipx-accent); box-shadow: 0 0 0 3px var(--ipx-accent-soft); }
input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1) opacity(.6); cursor: pointer; }
