/* ------------------------------
   formulaire mots clés
   ------------------------------ */
	
form {
	margin-bottom: 2rem;
}
label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
input[type="text"],
input[type="password"] {
  padding: 0.65rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
}
input[type="text"]:focus ,
input[type="password"]:focus{
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
button:hover {
  background: #1d4ed8;
}
.result {
  margin-top: 1.8rem;
  padding: 1rem;
  background: #f0f9ff;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}	

.form-result-nb {
  font-size: 2rem;
}

.form-result-kw {
	font-size: 2rem;
	font-weight: bold;
	font-style: italic;
}
	
	
/* ========== FORMULAIRE DE RECHERCHE ========== */
.search-form {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.search-main {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #1d4ed8;
}

/* Zone escamotable */
.filters-panel {
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    list-style: none; /* enlève le triangle natif */
    user-select: none;
}

.filters-toggle::-webkit-details-marker {
    display: none;
}

.filters-toggle .chevron {
    transition: transform 0.25s;
}

.filters-panel[open] .chevron {
    transform: rotate(180deg);
}

.filters-content {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

@media (min-width: 480px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .filter-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}


/* Checkboxes custom modernes */
.filter-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    padding: 0.35rem 0;
}

.filter-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    background: white;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.filter-item:hover .checkmark {
    border-color: var(--primary);
}

.filter-item input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-item input:checked ~ .checkmark::after {
    display: block;
}

	
	