.ad-slot {
    display: none;
}

/* Barre de navigation globale */
nav[aria-label="Main navigation"] {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--pico-muted-border-color);
  margin-bottom: 1.5rem;
}

/* Brand */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo {
  display: block;
  height: 3.2rem;
  width: auto;
}

.site-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.site-tagline {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Menu desktop */
.site-menu {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  align-items: center;
}

.site-menu a {
  font-weight: 500;
  text-decoration: none;
  position: relative;
}

.site-menu a:hover {
  text-decoration: underline;
}

/* petit trait sous la page active */
.site-menu a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  border-radius: 999px;
  background: var(--pico-primary);
}

/* ----------------- Mobile ----------------- */
@media (max-width: 768px) {
  nav[aria-label="Main navigation"] {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-menu {
    flex-direction: column;       /* plus de liens qui flottent en grille */
    align-items: flex-start;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--pico-muted-border-color);
  }

  .site-menu a[aria-current="page"]::after {
    bottom: -0.15rem;
  }
}




/* Full-width background band */
nav.container-fluid {
  background: rgba(0, 0, 0, 0.015);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

/* Align inner content left/right */
nav.container-fluid > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* tagline */
nav small {
  font-size: 0.85rem;
  opacity: 0.8;
}


/* Header nav – éviter la double barre sur le lien actif */
nav[aria-label="Main navigation"] a {
  text-decoration: none;
}

/* Même chose au survol */
nav[aria-label="Main navigation"] a:hover {
  text-decoration: none;
}

nav[aria-label="Main navigation"] a:hover {
  text-decoration: none;
  color: var(--primary-hover, #135f9c); /* ou une autre couleur */
}


fieldset {
    padding: 1rem;
    border: 1px solid rgb(195, 207, 223);
    border-radius: 5px;
}

fieldset legend {
font-weight: bold;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
}


section {
    margin-bottom: var(--pico-block-spacing-vertical);
    padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
    border-radius: var(--pico-border-radius);
    background: var(--pico-card-background-color);
    box-shadow: var(--pico-card-box-shadow);
}

/* ===== Affichage du background PHP Style  ===== */

.tool-header-topline {

    margin-bottom: 1rem;
}

/* Liste de caractéristiques dans la carte de résultat */

.result-card h3 {
    margin-top: 1rem;
}

.result-card .result-list {
  margin: 1rem 0;
}

.result-card .result-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.1rem 0;
}

/* libellé à gauche, en gras, collé au texte comme dans le PHB */
.result-card .result-block dt {
  font-weight: 600;
  margin: 0;
}

/* ajoute les deux-points après le label */
.result-card .result-block dt::after {
  content: ":";
}

/* texte à droite, sans marge supplémentaire */
.result-card .result-block dd {
  margin: 0;
}

/* ===== Image de background ===== */

.bg-wrapper {
  margin-bottom: 1rem;
  width: 100%;
  aspect-ratio: 21 / 5;    /* large mais pas trop haut */
  border-radius: 1px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 0%, #fffaf3 0, #e7dfd3 55%);
}

.bg-wrapper.hidden {
  display: none;
}

.bg-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Adsense blocks – light, neutral box */
.ad-slot {
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  border: 1px dashed #ccc;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

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

/* ===== Loading ===== */

#loading {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #8a511f;
  display: none;              /* affiché via JS */
  text-align: left;
}

/* État visible : petit effet de “respiration” */
#loading.is-visible {
  animation: loadingPulse 0.9s ease-in-out infinite alternate;
}

/* Trois petits points animés à la fin du texte */
#loading::after {
  content: " …";
  animation: loadingDots 1.2s steps(3, end) infinite;
}

/* Grossit / éclaircit légèrement le texte */
@keyframes loadingPulse {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(1.04);
    opacity: 1;
  }
}

/* Animation des points */
@keyframes loadingDots {
  0%   { content: " ."; }
  33%  { content: " .."; }
  66%  { content: " ..."; }
  100% { content: " ."; }
}


/* ----- Filtres de la galerie ----- */

.gallery-filters {
  margin-top: 0.75rem;
}

.gallery-filters-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gallery-filters-toggle {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #b46729;
  background: #c27b3b;
  color: #fff;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
}

.gallery-filters-panel {
  margin-top: 0.45rem;
  display: none;          /* ⬅ ⬅ IMPORTANT : caché par défaut */
}

.gallery-filters.is-open .gallery-filters-panel {
  display: block;         /* ⬅ s’affiche seulement quand .is-open */
}

.result-block:not(:first-child) {
  margin-top: 1rem;
}

.dm-notes {
  font-size: 0.875rem;        /* plus petit (≈ 14 px) */
  color: #6b7280;             /* gris doux tailwind-like */
  line-height: 1.5;
  margin-top: .5rem;
}

.dm-notes strong {
  color: #374151;             /* un peu plus foncé pour le label */
  font-weight: 600;
}

/* ----- Pagination ----- */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  margin: 2rem 0 1rem;
  font-size: 0.95rem;
}

.pagination .page-link {
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle, #ddd);
  text-decoration: none;
  font-weight: 500;
}

.pagination .page-link:hover {
  background: rgba(0,0,0,0.03);
}

.pagination .page-status {
  opacity: .8;
}


.tags {
    background-color: #efefef; display:inline-block; padding:.12rem .45rem; border:1px solid var(--muted-border-color); border-radius:999px; margin-right:.35rem; opacity:.9; line-height:1.2;
}