/* ============================= */
/* VARIABLES DE COULEUR         */
/* ============================= */
:root {
    --primary-color: #37492F; /* Vert militaire Okazarm */
    --primary-hover: #2C3B1F; 
    --accent-yellow: #f7d644;
    --accent-yellow-light: #ffd500;
    --text-light: #ffffff;
    --background-light: #f4f3ef;
    --text-dark: #0e2912;
}

/* ============================= */
/* RESET & GÉNÉRAL               */
/* ============================= */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    background-color: var(--background-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* ============================= */
/* NAVBAR                        */
/* ============================= */
.navbar {
    max-height: 60px;
    overflow: hidden; /* évite les débordements */
}

.navbar .navbar-brand {
    color: var(--text-light);
    font-weight: bold;
    font-family: 'Stencil', 'Impact', sans-serif;
    font-size: 1.8rem;
}

.navbar .navbar-brand:hover {
    color: #FFD700;
}

.navbar .nav-link {
    color: var(--text-light);
}

.navbar .nav-link:hover {
    color: #FFD700;
}

.navbar .btn-outline-light {
    border-color: var(--text-light);
    color: var(--text-light);
}

.navbar .btn-outline-light:hover {
    background-color: #FFD700;
    color: var(--primary-color);
}

.navbar .navbar-brand img {
    height: 100%;           /* 🔺 prend toute la hauteur du conteneur */
    width: auto;
    max-width: 100%;
    object-fit: contain;    /* 🔸 évite les débordements */
    display: block;
}

.logo-navbar {
    height: auto;
    width: auto;
    max-height: 130px;    /* grande taille en grand écran */
    object-fit: contain;
    display: block;
}

/* Réduction progressive sur écran moyen */
@media (max-width: 991.98px) {
    .logo-navbar {
        max-height: 70px;
    }
}

/* Réduction encore plus sur mobile */
@media (max-width: 576px) {
    .logo-navbar {
        max-height: 70px;
    }
}




/* ============================= */
/* FOOTER                        */
/* ============================= */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* ============================= */
/* BOUTONS                       */
/* ============================= */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-okazarm {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: bold;
    border: 2px solid rgba(0, 0, 0, 0.4); /* ✅ Contour noir doux */
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}

.btn-okazarm:hover {
    background-color: var(--primary-hover);
    border-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-1px);
    cursor: pointer;
}




.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #3b5a3b;
}

/* ============================= */
/* FORMULAIRES                   */
/* ============================= */
form input[type="text"],
form input[type="password"],
form select {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ============================= */
/* TITRES                        */
/* ============================= */
h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ============================= */
/* MESSAGES DJANGO               */
/* ============================= */
.alert {
    margin-top: 1rem;
}

/* ============================= */
/* SVG - CARTE INTERACTIVE       */
/* ============================= */
svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

svg a {
    text-decoration: none;
    color: inherit;
}

svg a text {
    pointer-events: none;
}

.departement {
    fill: var(--accent-yellow);
    stroke: white;
    stroke-width: 2;

    transition:
        fill 0.2s ease,
        filter 0.2s ease;

    cursor: pointer;
}

.departement:hover {
    fill: var(--accent-yellow-light);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}


.numero {
    fill: white;
    font-size: 28px;
    font-weight: bold;
    font-family: sans-serif;
    pointer-events: none;
}

.departement-group {
    cursor: move;
}

/* ============================= */
/* PAGE ACCUEIL / CENTRALE       */
/* ============================= */
.main-container {
    text-align: center;
    padding: 3rem 1rem;
}

.main-container h1 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.main-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.main-container .btn {
    margin: 0.4rem auto;
    display: block;
    width: fit-content;
}

/* ============================= */
/* CARTE - CONTAINER             */
/* ============================= */
.container-carte {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 3rem;
}

.carte-container {
    position: relative;
    flex: 1;
    max-width: 50%;
    aspect-ratio: 2080 / 1560;
}

.boutons {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================= */
/* SAUVEGARDE POSITIONS SVG      */
/* ============================= */
#save-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #2d6a4f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#save-output {
    white-space: pre-wrap;
    margin-top: 10px;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 6px;
}

/* === Ajustements de confort et compacité === */

body {
    font-size: 14px;
}

h1 {
    font-size: 1.5rem;
}
h2 {
    font-size: 1.3rem;
}
h3 {
    font-size: 1.1rem;
}
h4 {
    font-size: 1rem;
}
h1, h2, h3, h4 {
    margin-bottom: 0.6rem;
}

/* Boutons plus discrets */
.btn, .btn-okazarm {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Réduction d’espace dans les blocs */
.card {
    padding: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: none;
    border-radius: 6px;
}

/* Images dans les cartes */
.card img {
    max-width: 160px;
    height: auto;
    border-radius: 4px;
}

/* Formulaires plus compacts */
form input[type="text"],
form input[type="password"],
form select {
    padding: 6px;
    font-size: 13px;
}


input[type="checkbox"][name="stock_armurerie"] {
  width: 1rem;
  height: 1rem;
}

/* Réduction des marges des boutons et blocs */
.boutons .btn {
    margin: 0.2rem 0;
}

/* Réduction légère du gap global sur les pages en flex */
.container {
    gap: 2rem;
}

.btn-action {
    font-size: 13px;
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 6px;
    color: white;
    transition: background-color 0.2s ease;
}

.btn-modifier {
    background-color: #2c6e49; /* Vert militaire */
}
.btn-modifier:hover {
    background-color: #1f4d34;
}

.btn-supprimer {
    background-color: #a83232; /* Rouge brun */
}
.btn-supprimer:hover {
    background-color: #842020;
}

.btn-photos {
    background-color: #d4af37; /* Jaune armée / or foncé */
    color: black;
}
.btn-photos:hover {
    background-color: #c49d2c;
}

.photo-card {
    min-height: 200px; /* ou ajuste selon besoin */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 0.5rem;
    
}

.photo-card .btn {
    margin-bottom: 4px;
    padding: 6px 10px;
    font-size: 13px;
}

.photo-card form:last-child .btn {
    margin-bottom: 0;
}


.alert {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 6px;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

.alert {
    transition: opacity 0.5s ease;
}

.champ-compact {
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
    line-height: 1;
    height: 1.4rem;
  }
  
  .bouton-filtrer {
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
    background-color: #37492F;     /* vert militaire foncé */
    color: white;
    border-radius: 0.3rem;
    transition: background-color 0.2s ease;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
    position: relative;
    margin-left: auto;             /* ✅ décalage vers la droite */
  }
  
  .bouton-filtrer:active {
    transform: scale(0.96);
  }
  
  .bouton-filtrer:hover {
    background-color: #14532d;
  }
  
  .champ-filtre {
    max-width: 100%;
    margin-bottom: 0.3rem;
    flex: 1 1 100%;
    box-sizing: border-box;
    
  }

  input[type="text"].champ-compact {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
    height: auto;
  }
  
  



.carte-annonce-compacte {
    transform: scale(0.9);
    transform-origin: top left;
  }

.carte-annonce {
    width: 100%;
    max-width: 240px;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
     transition: transform 0.2s ease, box-shadow 0.2s ease;
}
  
.carte-annonce:hover {
    transform: translateY(-2px);
    box-shadow:
      0 4px 10px rgba(0,0,0,0.12),
      0 10px 24px rgba(0,0,0,0.10);
}
  
.miniature-container {
    width: 100%;
    height: 140px;          /* hauteur fixe propre */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
}

.img-annonce-miniature {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;    /* jamais coupée */
    display: block;
}




/* ============================= */
/* CARD ARMURIER – LISTE ANNONCES */
/* ============================= */

.card-armurier-liste {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1rem 1.2rem;

    display: flex;
    align-items: center;
    gap: 1.5rem;

    border: 1px solid rgba(0,0,0,0.05);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.06),
        0 6px 18px rgba(0,0,0,0.08);

    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.card-armurier-liste:hover {
    box-shadow:
        0 4px 10px rgba(0,0,0,0.10),
        0 12px 28px rgba(0,0,0,0.12);
}

/* Texte */
.armurier-card-text {
    flex: 1;
    text-align: center;
}

.armurier-nom {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.armurier-adresse {
    font-size: 0.85rem;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.armurier-telephone {
    font-size: 0.85rem;
    color: #374151;
    margin-top: 0.2rem;
}

.armurier-lien {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1d4ed8;
}

.armurier-lien:hover {
    text-decoration: underline;
}

/* Logo */
.card-armurier-liste .armurier-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 4px;
}

/* ============================= */
/* CARD ARMURIER – DETAIL ANNONCE */
/* ============================= */

.card-armurier-detail .armurier-logo {
    width: 80px;
    height: 80px;
}

.section-title-okazarm {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-color);
  text-align: center;
  position: relative;
  margin-bottom: 1.5rem;
}

.section-title-okazarm::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 0.4rem auto 0;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* ============================= */
/* BLOC ACCESSOIRES – DETAIL ANNONCE */
/* ============================= */

.bloc-accessoires {
  margin-top: 1.2rem;
}

.titre-accessoires {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.liste-accessoires {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.ligne-accessoire {
  white-space: normal;       /* autorise le retour à la ligne */
  max-width: 100%;
  word-break: break-word;    /* sécurité si liste très longue */
}

/* ============================= */
/* DETAIL ANNONCE – SECTIONS     */
/* ============================= */

[data-cy="bloc-caracteristiques"],
[data-cy="bloc-description"] {
  background-color: #f4f3ef; /* cohérent avec fond global */
  border: 1px solid rgba(55, 73, 47, 0.12);
  border-radius: 12px;
  padding: 0.6rem 1.4rem 1.2rem; /* haut volontairement réduit */
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04);
}

/* Titres des sections */
[data-cy="bloc-caracteristiques"] h2,
[data-cy="bloc-description"] h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 0.1rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid rgba(55, 73, 47, 0.25);
}


/* ============================= */
/* CONTACT ARMURIER – MOBILE     */
/* ============================= */

/* ============================= */
/* DETAIL ANNONCE – MASQUAGE CARD ARMURIER DESKTOP SUR MOBILE */
/* ============================= */

@media (max-width: 768px) {
  .card-armurier-detail[data-cy="card-armurier"] {
    display: none !important;
  }
}


.contact-armurier-mobile {
  display: none;
}

@media (max-width: 768px) {
  .contact-armurier-mobile {
    display: block;
    margin-top: 1.2rem;
  }

  .contact-armurier-mobile-inner {
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    text-align: center;
  }

  .contact-nom {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
  }

  .contact-adresse {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 0.6rem;
  }

  .contact-actions {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
  }

  .btn-contact {
    background-color: var(--primary-color);
    color: white;
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
  }

  .btn-contact.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
  }
}


/* ============================= */
/* DETAIL ANNONCE – CARD ARMURIER DESKTOP RESPONSIVE */
/* ============================= */

/* Le conteneur haut doit servir de référence */
@media (max-width: 1200px) {
  [data-cy="card-armurier"] {
    position: absolute;
    right: 1rem;
    top: 0;
    max-width: 420px;
  }
}

/* ============================= */
/* LISTE ANNONCES – PC : LAYOUT FIGÉ + SCROLL HORIZONTAL */
/* ============================= */

/* Conteneur principal */
[data-cy="layout-liste-annonces"] {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;          /* ❌ aucun wrap */
  align-items: flex-start;
  gap: 1.5rem;
}

/* Colonne armuriers */
[data-cy="bloc-armuriers"] {
  flex: 0 0 40%;
  min-width: 320px;
}

/* Colonne annonces */
[data-cy="resultats-annonces"] {
  flex: 0 0 60%;
  min-width: 520px;
}

/* Cards armuriers : figées */
[data-cy="bloc-armuriers"] [data-cy="card-armurier"] {
  position: static !important;
  transform: none !important;
}

/* ============================= */
/* SEUIL PC ÉTROIT : HORS CHAMP DÈS 1024px */
/* ============================= */
@media (max-width: 1024px) {

  /* Le layout NE BOUGE PLUS, il déborde */
  [data-cy="layout-liste-annonces"] {
    overflow-x: auto;       /* ✅ scroll horizontal */
    overflow-y: hidden;
  }

  /* Empêche toute tentative de recomposition */
  [data-cy="bloc-armuriers"],
  [data-cy="resultats-annonces"] {
    flex-shrink: 0;
  }
}

/* ============================= */
/* SCROLL HORIZONTAL 
/* ============================= */

.scroll-x-wrapper {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;

  overflow-x: auto;
  overflow-y: hidden;

  padding-bottom: 6px; /* place la barre AU-DESSUS du contenu suivant */
}

/* Le layout principal ne scroll plus */
[data-cy="layout-liste-annonces"] {
  overflow: visible !important;
}

/* ============================= */
/* BLOC FILTRES – PROFONDEUR MODERNE */
/* ============================= */
.bloc-filtres {
    background-color: #e9e8e3;
    border-radius: 10px;

    /* profondeur moderne */
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.06);

    /* liseré clair très subtil */
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* ============================= */
/* MESSAGE INFO – FILTRES        */
/* ============================= */
.message-info {
    background-color: #f1efe9;
    color: #37492F;

    padding: 0.6rem 0.8rem;
    border-radius: 8px;

    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;

    border-left: 3px solid #37492F;

    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.04),
        0 1px 2px rgba(0,0,0,0.04);
}

/* ============================= */
/* BLOC FILTRES – MODERNE & LISIBLE */
/* ============================= */

.bloc-filtres {
  background-color: #f4f3ef; /* fond choisi */
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.25rem; /* ✅ ESPACE INTERNE */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 10px rgba(0, 0, 0, 0.06);
}

/* ============================= */
/* TAG DÉPARTEMENT – FRANCE     */
/* ============================= */

.tag-departement {
    position: relative;
    min-height: 1.2em;

    display: inline-flex;
    align-items: center;

    background-color: var(--accent-yellow);
    color: #1f2a1f;

    font-size: 0.6rem;
    font-weight: 600;

    padding: 0.2rem 0.55rem;
    border-radius: 999px;

    border: 1px solid rgba(0, 0, 0, 0.25);

    white-space: nowrap;
}



/* Croix suppression (popup uniquement) */
.tag-departement .tag-remove {
    margin-left: 0.3rem;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.6;
}

.tag-departement .tag-remove:hover {
    opacity: 1;
}


/* --- Popup Discipline --- */
.modal.hidden {
    display: none;
  }
  
  .modal .btn-popup {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    background-color: #f9e547;
    border: 1px solid #aaa;
    color: #000;
    transition: background-color 0.2s ease;
  }
  
  .modal .btn-popup:hover {
    background-color: #e6d935;
  }
  
  .modal .btn-annuler {
    background-color: #eee;
    color: #333;
  }
  
  .modal .btn-annuler:hover {
    background-color: #ddd;
  }
 
  .filtres-speciales {
    display: grid;
    grid-template-rows: repeat(2, min-content); /* ✅ 3 lignes max par colonne */
    grid-auto-flow: column;                     /* ✅ remplissage vertical */
    gap: 0.2rem 0.6rem;                          /* 🔻 espaces réduits */
    font-size: 0.65rem;
    margin: 0.2rem 0 0.4rem 0;                   /* 🔻 réduit en haut et en bas */
    padding: 0;
    max-width: 100%;
    margin-top: 0;
  }
  
  
  .checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0.2rem;
    border: none;                    /* ✅ pas de contour */
    border-radius: 0;
    background-color: transparent;
    min-height: 1.2rem;
    font-size: 0.6rem;
    white-space: nowrap;
  }
  
  .checkbox-label {
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse;     /* ✅ case à droite, texte à gauche */
    gap: 0.3rem;
    white-space: nowrap;
    font-size: 0.6rem;
    
  }
  
  .filtres-speciales input[type="checkbox"] {
    width: 0.8rem;
    height: 0.8rem;
    margin: 0;
  }
  
  .photo-carousel-container {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 1rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .main-photo {
    text-align: center;
  }
  
  .main-photo-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: zoom-in;
  }
  
  .thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
  }
  
  .thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border 0.2s ease;
  }
  
  .thumbnail:hover {
    border-color: #4a7d4e; /* Vert OKAZ */
  }
  
  .masquer-filtre {
    display: none !important;
  }
  
  .section-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #2e2e2e;
}

.with-autocomplete {
  border: 1px solid #ccc;
  padding: 6px;
  border-radius: 6px;
  width: 100%;
  font-size: 0.9rem;
}


.autocomplete-list {
  margin-top: 4px;
  padding: 0;
  list-style: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.autocomplete-list li {
  padding: 8px 12px;
  cursor: pointer;
}

.autocomplete-list li:hover {
  background-color: #f3f3f3;
}

.autocomplete-list.hidden {
  display: none;
}

.bouton-coeur {
  font-size: 1rem;
  color: #a11c1c;
  padding: 0.3rem 0.6rem;
  transition: transform 0.2s ease;
}

.bouton-coeur:hover {
  transform: scale(1.1);
  color: #d62222;
}

.card-annonce {
    position: relative;
    padding-bottom: 2.5rem; /* réserve de la place pour les éléments en bas */
    min-height: 380px
}

.card-annonce form.form-favori,
.card-annonce a {
    position: absolute;
    bottom: 0.5rem;
}

.card-annonce form.form-favori {
    left: 0.5rem;
}

.card-annonce a {
    right: 0.5rem;
}



.no-wrap-strict {
  display: flex;
  flex-direction: row !important; /* toujours en ligne */
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 2rem;
  overflow-x: auto; /* Permet de scroller horizontalement si besoin */
}

/* ===== Impression (PDF / papier) ===== */
@page {
  size: A4 portrait;
  margin: 12mm;
}

@media print {
  /* Cacher la chrome du site */
  .navbar, .navbar * , footer,
  .btn, .btn-okazarm, .no-print,
  .navbar-collapse, .modal, .nav {
    display: none !important;
  }

  /* Nettoyage du rendu */
  body { background: #fff !important; }
  a, a:link, a:visited { text-decoration: none !important; color: #000 !important; }
  a[href]:after { content: "" !important; } /* évite l’URL après les liens */
  img, canvas, svg { box-shadow: none !important; filter: none !important; }
}


.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.4em;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* Bouton toujours accessible quand filtres cachés */
#toggle-filtres.filtres-caches {
  position: sticky;
  top: 6px;
  z-index: 50;
}


/* Site internet armurier – version compacte */
.armurier-site-compact {
  margin-top: 2px;           /* très proche du nom */
  font-size: 0.75rem;        /* plus petit que le reste */
  line-height: 1.2;
  opacity: 0.85;
}

.armurier-site-compact a {
  color: #37492F;            /* vert Okazarm */
  text-decoration: none;
}

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

.orientation-hint {
  background-color: rgba(55, 73, 47, 0.05); /* vert très léger */
  border: 1px solid rgba(55, 73, 47, 0.12);
  color: rgba(55, 73, 47, 0.85);

  font-size: 0.85rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;

  margin-bottom: 1.2rem;

  transition: opacity 0.5s ease, transform 0.5s ease;
}

.orientation-hint.hide {
  opacity: 0;
  transform: translateY(-6px);
}

.seo-okazarm-btn {
    background-color: var(--accent-yellow);
    color: #000;
    transition: background-color 0.2s ease;
}

.seo-okazarm-btn:hover {
    background-color: var(--accent-yellow-light);
}