/* ==========================================================================
   BROCANTE-CONNECT - BASE.CSS (Version Épurée HTML5 / PHP8)
   ========================================================================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Verdana, sans-serif;
  font-size: 0.9em; /* Légèrement agrandi pour le confort moderne */
  line-height: 1.4;
  color: #000000;
  background-color: #a1b55d; /* Vert olive */
}

/* --- TITRES --- */
h1, h2 { font-family: Georgia, serif; font-weight: normal; }
h1 { font-size: 2.3em; font-style: italic; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.2em; color: #f0e39e; }

/* --- LIENS --- */
a { color: mediumblue; text-decoration: underline; }
a:hover { color: crimson; }

/* --- POPUPS ET BOUTONS DE CONNEXION --- */
.open-button {
  position: fixed;
  background-color: #1c87c9;
  color: #ffcc99;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 99;
}

.form-popup {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* Centrage universel parfait */
  z-index: 100;
}

.form-container {
  max-width: 300px;
  padding: 20px;
  background-color: #cbd888;
  border: 2px solid #666;
}

.form-container .cancel { background-color: #cc0000; color: white; }

/* --- FORMULAIRES (.compte) EN CSS GRID --- */
form.compte fieldset {
  display: grid;
  grid-template-columns: 8em 1fr; /* Aligne proprement Label et Input sans float */
  gap: 10px;
  border: 2px solid #990000;
  margin: 1em 0;
  padding: 1em;
}

form.compte legend {
  padding: 0.2em 0.5em;
  font-weight: bold;
  text-transform: uppercase;
  background: #990000;
  color: #ffffff;
}

form.compte input, form.compte textarea, form.compte select {
  width: 100%;
  padding: 5px;
}

form.compte .rens_soumission {
  grid-column: span 2;
  text-align: right;
}

/* --- AFFICHAGE DYNAMIQUE (JS) --- */
.is-hidden { display: none !important; }

/*-- Styles de secours pour corriger les débordements d'espace et forcer le badge --- */

        #principal {
            clear: both;
            overflow: hidden;
            margin-bottom: 30px;
        }
        .grille-articles {
            clear: both;
            overflow: hidden;
        }
        .main-footer {
            clear: both !important;
            display: block !important;
            position: relative !important;
            z-index: 9999 !important;
            margin-top: 40px !important;
            padding: 20px !important;
         /*   background-color: #f8f9fa;  Fond léger pour vérifier s'il s'affiche */
        }
