:root {
  color-scheme: light dark;
  --color-background: #fdf7f8;
  --color-surface: #ffffff;
  --color-surface-strong: #f2e9ec;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-text: #1d1d1d;
  --color-muted: #5c5c66;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 24px 56px rgba(0, 0, 0, 0.08);
  --color-accent: #e87684;
  --color-accent-strong: #d94f64;
  --color-accent-muted: rgba(232, 118, 132, 0.16);
  --color-success: #2a9d8f;
  --color-danger: #d62839;
  --color-info: #1d3557;
  --color-text-inverse: #ffffff;
  --color-border-muted: rgba(0, 0, 0, 0.12);
  --color-overlay: rgba(255, 255, 255, 0.88);
  --image-badge-bg: rgba(255, 255, 255, 0.88);
  --image-badge-text: #1d1d1d;
  --image-badge-border: rgba(255, 255, 255, 0.32);
  --image-zoom-btn-bg: rgba(255, 255, 255, 0.95);
  --image-zoom-btn-text: var(--color-text);
  --image-zoom-btn-border: rgba(0, 0, 0, 0.08);
  --image-zoom-btn-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
  --motion-duration: 0.24s;
  --motion-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-ease-fast: cubic-bezier(0.3, 0, 0.66, 1);
}

.search-padding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

.theme-dark {
  --color-background: #0e1018;
  --color-surface: #171b29;
  --color-surface-strong: #20253a;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-text: #f3f4f8;
  --color-muted: #b9c2d7;
  --color-shadow: rgba(0, 0, 0, 0.65);
  --card-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 24px 56px rgba(0, 0, 0, 0.10);
  --color-accent: #ff8aa2;
  --color-accent-strong: #ff6a88;
  --color-accent-muted: rgba(255, 138, 162, 0.16);
  --color-success: #5ec0b8;
  --color-danger: #ff5f7a;
  --color-info: #97c3ff;
  --color-text-inverse: #0c1220;
  --color-border-muted: rgba(255, 255, 255, 0.24);
  --color-overlay: rgba(0, 0, 0, 0.55);
  --image-badge-bg: rgba(0, 0, 0, 0.55);
  --image-badge-text: #f7fbff;
  --image-badge-border: rgba(255, 255, 255, 0.22);
  --image-zoom-btn-bg: rgba(12, 18, 32, 0.92);
  --image-zoom-btn-text: #ffffff;
  --image-zoom-btn-border: rgba(255, 255, 255, 0.16);
  --image-zoom-btn-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

html.theme-dark body {
  background-color: var(--color-background);
  color: var(--color-text);
}

html.theme-dark .theme-toggle {
  /*background: rgba(255, 255, 255, 0.08);*/
  color: var(--color-text);
  /*border: 1px solid rgba(255, 255, 255, 0.14);*/
}

html.theme-dark button.annonce-link,
html.theme-dark a.annonce-link {
  background-color: var(--color-accent);
}

html.theme-dark a, html.theme-dark button {
  color: inherit;
}

html.theme-dark body,
html.theme-dark .nav_bar,
html.theme-dark .section,
html.theme-dark .container,
html.theme-dark .content,
html.theme-dark .card,
html.theme-dark .modal-box,
html.theme-dark .alert,
html.theme-dark .table-wrap,
html.theme-dark .table,
html.theme-dark .table th,
html.theme-dark .table td,
html.theme-dark .search-bar,
html.theme-dark .form-control,
html.theme-dark input,
html.theme-dark select,
html.theme-dark textarea,
html.theme-dark .badge,
html.theme-dark .section-head,
html.theme-dark .page-btn,
html.theme-dark .page-btn.active,
html.theme-dark .page-btn:hover,
html.theme-dark .block,
html.theme-dark .highlight,
html.theme-dark .widget,
html.theme-dark .box,
html.theme-dark .admin-shell,
html.theme-dark .admin-hero,
html.theme-dark .admin-card,
html.theme-dark .audit-shell,
html.theme-dark .audit-hero,
html.theme-dark .hero-summary,
html.theme-dark .hero-note,
html.theme-dark .hero-pill,
html.theme-dark .status-pill,
html.theme-dark .summary-card,
html.theme-dark .summary-chip,
html.theme-dark .chart-card,
html.theme-dark .chart-period-bar,
html.theme-dark .top-item,
html.theme-dark .page-link,
html.theme-dark .btn-ghost,
html.theme-dark .shortcut-bar a,
html.theme-dark .input,
html.theme-dark .select,
html.theme-dark .request-notes,
html.theme-dark .requests-table,
html.theme-dark .requests-table th,
html.theme-dark .requests-table td,
html.theme-dark .summary-grid,
html.theme-dark .mini-row,
html.theme-dark .status-pill,
html.theme-dark .badge-admin,
html.theme-dark .badge-standard,
html.theme-dark .badge-warning,
html.theme-dark .badge-user,
html.theme-dark .badge-super,
html.theme-dark .badge-pro,
html.theme-dark .badge-success,
html.theme-dark .badge-danger,
html.theme-dark .summary-chip,
html.theme-dark .chart-period-bar .period-select,
html.theme-dark .categorie-card,
html.theme-dark .categorie-card .cat-nom,
html.theme-dark .categorie-card .cat-count,
html.theme-dark .explorer-card,
html.theme-dark .info-box,
html.theme-dark .rules-table,
html.theme-dark .rules-table th,
html.theme-dark .rules-table td {
  background-color: var(--color-surface) !important;
  color: var(--color-text) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark .rules-table th {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .rules-table tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

html.theme-dark .categorie-card:hover,
html.theme-dark .explorer-card:hover {
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 138, 162, 0.25) !important;
  color: var(--color-text) !important;
}

html.theme-dark p,
html.theme-dark .content p,
html.theme-dark .desc p,
html.theme-dark .info-box p,
html.theme-dark .rules-table td,
html.theme-dark .rules-table th {
  color: var(--color-text) !important;
}

html.theme-dark .role-select,
html.theme-dark .search-input,
html.theme-dark .filter-select {
  background-color: var(--color-surface) !important;
  color: var(--color-text) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark .role-select option,
html.theme-dark .search-input option,
html.theme-dark .filter-select option {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
}

html.theme-dark .section,
html.theme-dark .body {
  background-color: var(--color-surface) !important;
}

html.theme-dark .nav_bar {
  box-shadow: 1px 0px 14px 0px rgba(0, 0, 0, 0.35);
}

#lbc-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 72px;
  font-size: 0.95rem;
  color: var(--color-text);
}

#lbc-cookie-banner p {
  margin: 0;
  line-height: 1.6;
  flex: 1 1 320px;
  min-width: 220px;
  color: var(--color-text);
}

#lbc-cookie-banner a {
  color: var(--color-accent);
  text-decoration: underline;
}

#lbc-cookie-banner .lbc-cookie-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

#lbc-cookie-banner button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#lbc-cookie-banner button:hover,
#lbc-cookie-banner button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 118, 132, 0.18);
}

#lbc-cookie-banner .lbc-cookie-accept {
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
}

#lbc-cookie-banner .lbc-cookie-decline {
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--color-text);
}

body.lbc-cookie-banner-visible {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

html.theme-dark #lbc-cookie-banner {
  background: rgba(24, 28, 41, 0.98);
  border-top-color: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
}

html.theme-dark #lbc-cookie-banner a {
  color: var(--color-accent);
}

html.theme-dark #lbc-cookie-banner .lbc-cookie-decline {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
}

html.theme-dark .admin-shell,
html.theme-dark .audit-shell {
  background: var(--color-surface) !important;
}

html.theme-dark .search-bar {
  background-color: var(--color-surface) !important;
}

/* Dark theme: ensure profile `.details` containers and children use dark palette */
html.theme-dark .details,
html.theme-dark .details * {
  background: transparent !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
}

html.theme-dark .details {
  background-color: var(--color-surface) !important;
  padding: 12px 14px !important;
}

html.theme-dark .details h3 {
  color: var(--color-accent) !important;
  margin: 0 0 6px 0;
  font-weight: 800;
}

html.theme-dark .details span {
  color: var(--color-muted) !important;
}

html.theme-dark .details strong {
  color: var(--color-text) !important;
  font-weight: 700;
}

html.theme-dark .details i {
  color: var(--color-accent-strong) !important;
  margin-right: 6px;
}

html.theme-dark .details a {
  color: var(--color-accent) !important;
}

/* Dark theme: profil card user icon */
html.theme-dark .profil-card .user i {
  color: var(--color-accent-strong) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  padding: 8px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html.theme-dark .profil-card .user i.fa-user {
  color: var(--color-accent) !important;
}

/* Dark theme: profil card user text color */
html.theme-dark .profil-card .user {
  color: var(--color-text) !important;
}




html.theme-dark .plan-body,
html.theme-dark .compte-card,
html.theme-dark .notice.warn {
  background-color: var(--color-surface) !important;
  color: var(--color-text) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark .compte-card:hover {
  box-shadow: 0 22px 46px rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .notice.warn {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

/* Dark-theme adaptation for info notices */
html.theme-dark .notice.info {
  background-color: rgba(214, 40, 57, 0.08) !important; /* soft red tint */
  border-color: rgba(214, 40, 57, 0.22) !important;
  color: #ffd6db !important; /* light, readable text on dark */
}

html.theme-dark .page-btn,
html.theme-dark .page-btn.active {
  background: rgba(255, 138, 162, 0.12) !important;
  border-color: rgba(255, 138, 162, 0.35) !important;
}

html.theme-dark .page-btn:hover {
  background: rgba(255, 138, 162, 0.24) !important;
}

/* Modal dark theme adjustments */
html.theme-dark .modal-overlay,
html.theme-dark .modal-overlay.active {
  background: rgba(2,6,23,0.72) !important;
}

html.theme-dark .modal,
html.theme-dark .modal-box {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6) !important;
}

html.theme-dark .modal h2,
html.theme-dark .modal-box h2 {
  color: var(--color-text) !important;
}

html.theme-dark .modal p,
html.theme-dark .modal-box p {
  color: var(--color-muted) !important;
}

html.theme-dark .modal button,
html.theme-dark .modal-box .close-btn {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong)) !important;
  color: var(--color-text-inverse) !important;
}

html.theme-dark .btn-ghost {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--color-text) !important;
}

html.theme-dark .page-link {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html.theme-dark .page-link.active {
  background: rgba(255, 138, 162, 0.16) !important;
  color: var(--color-text) !important;
  border-color: rgba(255, 138, 162, 0.35) !important;
}

.chart-period-bar .period-select {
  color: var(--color-text) !important;
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}

.chart-period-bar .period-select option {
  color: var(--color-text) !important;
  background: var(--color-surface) !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
    "Helvetica Neue", sans-serif;
  text-rendering: optimizeLegibility;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.logo-link {
  display: flex;
  align-items: center; /* aligne verticalement */
  gap: 8px; /* espace entre logo et texte */
  text-decoration: none;
}

.logo-link img {
  height: 30px;
  width: 30px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
}
a, button {
  color: inherit;
  text-decoration: none;
  font: inherit;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(232, 118, 132, 0.7);
  outline-offset: 2px;
}
button {
  border: none;
  background: none;
}

/* Navbar */
.nav_bar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 3px 10%;
  box-shadow: 1px 0px 14px 0px var(--color-shadow);
  background-color: var(--color-surface);
  z-index: 1000;
}

@media (min-width: 769px) {
  header {
    height: 20px;
  }
}

@media (max-width: 768px) {
  /* Non-admin pages: add spacing for fixed navbar */
  body:not(.admin-page) {
    margin-top: 85px;
  }

  header {
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible;
  }
}

nav i {
  font-size: 1.5em;
}

nav .left {
  display: flex;
  align-items: center;
  column-gap: 9%;
  padding: 10px 0;
}

nav .left img {
  width: 30px;
}

/* links */
.links li a:hover {
  border-bottom: 2.5px solid #e87684;
}

a.annonce-link {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: var(--color-accent);
  color: white;
  border-radius: 5px;
  column-gap: 10px;
  font-weight: bold;
}

button.annonce-link {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: var(--color-accent);
  color: white;
  border-radius: 5px;
  column-gap: 10px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px;
}

 p.annonce-link {
  text-align: center;
  align-items: center;
}


a.search-link {
  display: flex;
  align-items: center;
  column-gap: 10px;
  font-weight: 600;
}

a.annonce-link i {
  color: white;
}

nav .icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 15px;
  padding: 10px 0;
}

.icons a,
.icons button,
.nav-icon-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-bottom: 6px;
  font-size: 0.9em;
  text-decoration: none;
  color: inherit;
}

.icons span {
  font-size: 0.9em;
  line-height: 1.2;
}

.nav-icon-button i,
.nav-icon-button span,
button.theme-toggle i,
button.theme-toggle span {
  display: inline-flex;
  align-items: center;
}

nav .links {
  width: 100%;
  padding: 15px 0;
}

.links ul {
  display: flex;
  justify-content: space-between;
}

.links span::after {
  content: "•";
  font-size: 0.9em;
  vertical-align: middle;
}

.links a {
  font-size: 0.9em;
  padding: 0 15px;
}

/* Navbar Fin */

main {
  margin: 70px 0 20px;
  padding: 0 5%;
}

main#favoris .favoris_error {
  text-align: center;
}

.favoris_error h2 {
  color: #e87684;
  font-weight: 500;
}

.annonces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 260px));
  gap: 35px;
  align-items: stretch;
  justify-content: start;
}

/* Mobile: force one card per row (full width) for small screens */
@media (max-width: 720px) {
  .annonces {
    grid-template-columns: 1fr !important;
    gap: 12px;
    justify-content: stretch;
  }

  .annonces .image {
    min-height: 180px;
  }
}

.annonces .annonce {
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.annonces .annonce:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(232, 118, 132, 0.22);
}

#un {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 5px;
}

/* =========================
   IMAGE CORRIGÉE
========================= */

.annonces .image {
  width: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
}

.annonces .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ========================= */

.annonces i {
  font-size: 1.2em;
  color: #e87684;
}

.desc {
  width: 90%;
  margin-left: 2%;
  padding: 15px;
}

.desc span {
  background-color: rgb(253, 241, 231);
}

.desc p {
  color: gray;
}

section .annonce .user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px;
}

section .annonce .user img {
  width: 40px;
}

section .annonce .user h4 {
  display: flex;
  align-items: center;
  gap: 7px;
}

section .annonce .user h4 p {
  display: flex;
  align-items: center;
  gap: 5px;
}

section .annonce .user h4 img {
  width: 20px;
}

section .annonce .user h4 span {
  color: gray;
}

.desc1 {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.fa-heart.fa-solid {
  color: red;
}

label, button {
  font-weight: 600;
}

input, textarea, select {
  /*height: 40px;*/
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 5px;
  font-size: 16px;
  margin-bottom: 5px;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--motion-duration) var(--motion-ease), background var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease);
}

input:-internal-autofill-selected,
textarea:-internal-autofill-selected,
select:-internal-autofill-selected,
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  background-color: var(--color-surface) !important;
  color: var(--color-text) !important;
  -webkit-text-fill-color: var(--color-text) !important;
  box-shadow: inset 0 0 0px 1000px var(--color-surface) !important;
}

textarea {
  /*height: 150px;*/
  resize: none;
}

.send-message {
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: 600;
  background-color: #e87684;
  color: white;
  cursor: pointer;
  border: none;
  transition: 0.3s;
  margin-bottom: 40px;
}
.send-message-2 {
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 600;
  background-color: transparent;
  color: var(--color-text);
  cursor: pointer;
  border: 3px dashed currentColor;
  transition: 0.3s;
  margin-bottom: 10px;
  margin-left: 5px;
}

.search-padding .lien,
.search-padding .search-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  transition: background var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease);
  margin-bottom: 14px;
}

.search-padding .lien:hover,
.search-padding .lien:focus-visible,
.search-padding .search-reset:hover,
.search-padding .search-reset:focus-visible {
  background: rgba(232, 118, 132, 0.12);
  border-color: rgba(232, 118, 132, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(232, 118, 132, 0.10);
}

.search-padding .lien.is-active,
.search-padding .lien[aria-current="true"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-inverse);
  box-shadow: 0 12px 26px rgba(232, 118, 132, 0.22);
}

.search-padding .search-reset {
  margin: 0;
  border-style: solid;
  border-color: rgba(214, 40, 57, 0.22);
  background: rgba(214, 40, 57, 0.08);
  color: var(--color-danger);
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .search-padding {
    gap: 7px;
  }

  .search-padding .search-container,
  .search-padding .lien,
  .search-padding .search-reset {
    flex: 1 1 calc(50% - 7px);
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
    text-align: center;
    margin-bottom: 14px;
  }
}

.send-message:hover {
  background-color: #e87684;
}
.send-message-appel {
    background-color: #336699;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}
.send-message-appel:hover {
    background-color:  #336699;
}

.send-message-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}
.send-message-whatsapp:hover {
    background-color: #25D366;
}

.send-message-telegram {
    background-color: #0088cc;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}
.send-message-telegram:hover {
    background-color: #0088cc;
}

.blue {
  color: #e87684;
  font-size: large;
  font-style:normal;
}
.blues {
  color: #e87684;
  font-size: 30px;
}
.orange{
border: 2px solid #000000;
border-radius: 5px;
padding: 10px;
}
.center {
  text-align: center;
}

/*=========================*/
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 30px 0 10px;
}

.page-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid #e87684;
    border-radius: 6px;
    color: #e87684;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

.page-btn:hover {
    background: #e87684;
    color: white;
}

.page-btn.active {
    background: #e87684;
    color: white;
    pointer-events: none;
}

.page-dots {
    padding: 8px 4px;
    color: #aaa;
}

.pagination-info {
    text-align: center;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 20px;
}
/*=========================*/
.section {
  padding: 40px 0;
    padding-right: 0px;
    padding-left: 0px;
  /*background: #fff;*/
}
section {
  position: relative;
  transition: background var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease);
}

.ligne {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* espace entre les deux */
}

.ligne span,
.ligne p {
    width: 50%;
}
.icone_card{
    font-size: 50px;
    cursor: pointer;
}


.contact-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
     /*flex: 1 1 150px; /* 🔥 clé du responsive */
    min-width: 0;    /* 🔥 empêche le blocage */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    background: var(--color-accent);
    color: var(--color-text-inverse);
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: bold;
}
.btn i {
    color: inherit;
}

/* couleurs */
.appel {
    background: #007bff;
}

.whatsapp {
    background: #25D366;
}

.telegram {
    background: #0088cc;
}

/* effet hover */
.btn:hover {
    opacity: 0.9;
}

button,
.btn,
.annonce-link,
.send-message,
.send-message-appel,
.send-message-whatsapp,
.send-message-telegram,
.page-btn,
.search-container {
  min-height: 44px;
}

.search-icon_2{
    font-size: 1.1em;
    cursor: pointer;
    margin-bottom: 10px;
}

.search-padding .search-icon_2 {
    margin-bottom: 0;
}

button.search-container,
.search-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--color-accent-muted);
    color: var(--color-text);
    cursor: pointer;
    transition: background var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease);
    border: 1px solid var(--color-border);
    font-weight: 700;
    margin-bottom: 14px;
}

button.search-container:hover,
button.search-container:focus-visible,
.search-container:hover,
.search-container:focus-visible {
    background: rgba(232, 118, 132, 0.20);
    transform: translateY(-1px);
}

button.search-container[aria-expanded="true"],
.search-container[aria-expanded="true"] {
    background: var(--color-accent);
    color: var(--color-text-inverse);
}

button.search-container:focus-visible,
.search-container:focus-visible {
    outline: 3px solid rgba(232, 118, 132, 0.7);
    outline-offset: 2px;
}

.search-padding .search-container {
    box-shadow: 0 8px 18px rgba(232, 118, 132, 0.08);
}
.nav_bar .icons a.active,
.nav_bar .icons a.active i,
.nav_bar .icons a.active span {
    color: #e87684; /* couleur "active" */
}

.nav_bar .icons a.active {
    font-weight: 700;
}
.nav_bar .icons a.active i {
    filter: drop-shadow(0 0 4px rgba(232, 118, 132, 0.35));
}

/* Bouton urgent */
.urgent_label {
  color: white;
  background-color: red;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: bold;
  animation: clignote 1s infinite;
}

@keyframes clignote {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}
/* Bouton urgent */

/* Bouton TOP */
.top_label {
  color: white;
  background-color: #2E7D32;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: bold;
}
/* Bouton TOP */

/* Bouton PREMIUM */
.premium_label {
  color: white;
  background-color: #6A1B9A;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: bold;
}
/* Bouton PREMIUM */

/* Bouton VIP */
.vip_label {
  color: white;
  background-color: #B8860B;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: bold;
}
/* Bouton VIP */

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {
  .contact-buttons {
        flex-direction: column;
    }
    .btn {
        flex: 1 1 100%;
    }
    .btn i {
    color: white;
    }
  nav {
    padding: 10px 5%;
    padding-bottom: 0px;
  }

  .nav_bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  nav .left {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
  }

  nav .left img {
    width: 50px;
    height: 50px;
  }

  nav .left .logo-link,
  nav .left .annonce-link {
    flex: 1 1 auto;
    min-width: 0;
  }

  nav .links ul {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    width: 100%;
  }

  nav .icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .icons a,
  .icons button,
  .icons form,
  .nav-icon-button {
    min-width: 72px;
    flex: 1 1 90px;
    max-width: 110px;
    padding: 8px 10px;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }

  .icons form {
    display: flex !important;
    justify-content: center;
    margin: 0;
  }

  .icons button.theme-toggle {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
    min-height: 44px;
  }

  .icons button.theme-toggle:hover,
  .icons button.theme-toggle:focus-visible,
  .icons button.theme-toggle[aria-pressed="true"] {
    background: transparent;
    color: inherit;
    transform: none;
  }

  .icons a span,
  .icons button span,
  .nav-icon-button span {
    white-space: normal;
    display: inline-block;
    line-height: 1.2;
  }

  @media (max-width: 480px) {
    nav .icons {
      justify-content: center;
      gap: 6px;
    }

    .icons a,
    .icons button,
    .icons form,
    .nav-icon-button {
      flex: 1 1 80px;
      max-width: 100px;
      padding: 6px 8px;
      font-size: 0.82rem;
    }
  }

  .icons a i,
  .icons button i,
  .nav-icon-button i {
    margin-bottom: 2px;
  }

  main {
    margin: 0 0 20px;
    padding: 0 5%;
  }

  .annonces {
    flex-direction: column;
    gap: 20px;
  }

  #un {
    flex-direction: column;
    align-items: flex-start;
  }

  .annonces .image {
    width: 100%;
    height: 220px;
  }

  input, textarea, select {
    width: 100%;
  }

  .send-message {
    width: 100%;
  }
  .send-message-appel {
    width: 100%;
  }

  .send-message-whatsapp {
    width: 100%;
  }

  .send-message-telegram {
    width: 100%;
  }
  .orange{
border: 3px solid #000000;
border-radius: 5%;
padding: 20px;
}

.center {
  text-align: center;
}

/*=========================*/
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 30px 0 10px;
}

.page-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid #e87684;
    border-radius: 6px;
    color: #e87684;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

.page-btn:hover {
    background: #e87684;
    color: white;
}

.page-btn.active {
    background: #e87684;
    color: white;
    pointer-events: none;
}

.page-dots {
    padding: 8px 4px;
    color: #aaa;
}

.pagination-info {
    text-align: center;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 20px;
}
/*=========================*/
.ligne {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* espace entre les deux */
}

.ligne span,
.ligne p {
    width: 50%;
}

.search-icon_2{
    font-size: 1.1em;
    margin-bottom: 10px;
}

.search-padding .search-icon_2 {
    margin-bottom: 0;
}

button.search-container,
.search-container,
button.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--color-accent-muted);
    color: var(--color-text);
    cursor: pointer;
    transition: background var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease);
    border: 1px solid var(--color-border);
    font-weight: 700;
}

.search-padding .search-container {
    box-shadow: 0 8px 18px rgba(232, 118, 132, 0.08);
}

button.search-container:hover,
button.search-container:focus-visible,
.search-container:hover,
.search-container:focus-visible,
button.theme-toggle:hover,
button.theme-toggle:focus-visible {
    background: rgba(232, 118, 132, 0.20);
    transform: translateY(-1px);
}

button.theme-toggle[aria-pressed="true"],
button.theme-toggle[aria-expanded="true"] {
    background: rgba(255, 138, 162, 0.24);
    color: var(--color-text);
}

button.search-container[aria-expanded="true"],
.search-container[aria-expanded="true"] {
    background: var(--color-accent);
    color: var(--color-text-inverse);
}

button.search-container:focus-visible,
.search-container:focus-visible {
    outline: 3px solid rgba(232, 118, 132, 0.7);
    outline-offset: 2px;
}

.search-bar {
    margin-top: 18px;
    padding: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.search-bar input,
.search-bar select {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-background);
    color: var(--color-text);
}

.search-bar input:focus,
.search-bar select:focus {
    outline: 3px solid rgba(232, 118, 132, 0.35);
    outline-offset: 2px;
}

body.modal-open {
    overflow: hidden;
}

.search-bar.hidden {
    display: none !important;
}

.nav_bar .icons a.active,
.nav_bar .icons a.active i,
.nav_bar .icons a.active span {
    color: #e87684; /* couleur "active" */
    font-weight: 700;
}
}

.nav-menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav_bar {
    position: fixed;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  }

  nav .left {
    width: auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
  }

  nav .left .logo-link {
    flex: 1 1 auto;
    min-width: 0;
  }

  nav .left .logo-link i {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
  }

  nav .left .annonce-link {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 9px 10px;
    font-size: 1.3rem;
  }

  .nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    width: auto;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-strong);
    color: var(--color-text);
    font-weight: 800;
    cursor: pointer;
    transition: background var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease);
  }

  .nav-menu-toggle i {
    font-size: 1.1rem;
    color: var(--color-accent);
  }

  .nav-menu-toggle:hover,
  .nav-menu-toggle:focus-visible {
    background: rgba(232, 118, 132, 0.18);
  }

  .nav-menu-toggle[aria-expanded="true"] {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-inverse);
  }

  .nav-menu-toggle[aria-expanded="true"] i {
    color: currentColor;
  }

  .nav_bar .icons {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-height: min(68vh, 520px);
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  }

  .nav_bar.nav-js .icons {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    box-shadow: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      max-height 0.24s var(--motion-ease),
      padding 0.24s var(--motion-ease),
      opacity 0.18s var(--motion-ease),
      transform 0.24s var(--motion-ease),
      visibility 0s linear 0.24s;
  }

  .nav_bar.nav-js.nav-open .icons {
    max-height: min(68vh, 520px);
    padding: 8px;
    border-width: 1px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    overflow-y: auto;
    transition:
      max-height 0.24s var(--motion-ease),
      padding 0.24s var(--motion-ease),
      opacity 0.18s var(--motion-ease),
      transform 0.24s var(--motion-ease),
      visibility 0s linear 0s;
  }

  .nav_bar.nav-js .icons a,
  .nav_bar.nav-js .icons > button,
  .nav_bar.nav-js .nav-icon-button {
    width: 100%;
    min-height: 56px;
    min-width: 0;
    max-width: none;
    flex: none;
    padding: 9px 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--color-background);
    text-align: center;
    transition: background var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease);
  }

  .nav_bar.nav-js .icons form {
    display: flex !important;
    width: 100%;
    min-width: 0;
    max-width: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
  }

  .nav_bar.nav-js .icons a:hover,
  .nav_bar.nav-js .icons a:focus-visible,
  .nav_bar.nav-js .icons > button:hover,
  .nav_bar.nav-js .icons > button:focus-visible,
  .nav_bar.nav-js .nav-icon-button:hover,
  .nav_bar.nav-js .nav-icon-button:focus-visible {
    background: var(--color-accent-muted);
    border-color: rgba(232, 118, 132, 0.28);
  }

  .nav_bar.nav-js .icons a.active,
  .nav_bar.nav-js .icons > button[aria-pressed="true"] {
    background: var(--color-accent-muted);
    border-color: rgba(232, 118, 132, 0.36);
  }

  .nav_bar.nav-js .icons button.theme-toggle {
    color: inherit;
  }

  @media (max-width: 420px) {
    nav .left .logo-link i,
    .nav-menu-toggle span {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
      border: 0;
    }

    .nav-menu-toggle {
      width: 44px;
      padding: 0;
    }
  }
}
