/* style.css - style global */
:root{
  --bg:#0f1724;
  --card:#0b1220;
  --accent1:#ffb86b;
  --accent2:#ff6b9f;
  --muted:#cbd5e1;
  --glass: rgba(255,255,255,0.04);
  --radius:14px;
  --gap:18px;
  --maxw:1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:linear-gradient(180deg,#071025 0%, #0a1320 100%);
  color:var(--muted);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.container{
  max-width:var(--maxw);
  margin:28px auto;
  padding:0 18px;
}

.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  background:linear-gradient(90deg, rgba(255,184,107,0.06), rgba(255,107,159,0.03));
  border-bottom:1px solid rgba(255,255,255,0.03);
  position:sticky;
  top:0;
  z-index:10;
}

.brand{
  font-weight:700;
  color:var(--accent1);
  font-size:18px;
}

.menu-btn{
  display:none;
  background:transparent;
  border:0;
  color:var(--muted);
  font-size:20px;
}

/* Recette list / cards */
.recette-list{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
  margin-top:18px;
}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.03);
  border-radius:12px;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease;
}

.card:hover{ transform: translateY(-6px); box-shadow:0 8px 30px rgba(2,6,23,0.6); }

.card img{ width:100%; height:160px; object-fit:cover; display:block; }

.card-body{ padding:12px 14px; }

.card-body h3{ margin:0 0 6px 0; color:var(--accent2); }
.card-body p{ margin:0; color: #d6e3f2; font-size:14px; }

/* Controls */
.controls{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:8px;
  flex-wrap:wrap;
}

.controls input[type="search"]{
  padding:10px 12px;
  border-radius:10px;
  border:0;
  min-width:260px;
  background:var(--glass);
  color:var(--muted);
}

.filters label{ margin-right:12px; font-size:14px; color:#cbd5e1; }

.filters {
  display: flex;
  flex-wrap: wrap;        /* si trop long, retour à la ligne */
  gap: 12px;              /* espace entre chaque bloc */
  font-family: sans-serif;
}

.filter-block {
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;  /* pour que le bouton reste au-dessus des sous-filtres */
  min-width: 120px;        /* largeur mini pour ne pas tasser */
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f4f4f4;
  padding: 6px 10px;
}

.toggle-subfilters {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.sub-filters {
  padding: 6px 10px;
  display: flex;
}

.sub-filters.hidden {
  display: none;
}

/* Footer */
.site-footer{
  text-align:center;
  padding:18px;
  margin-top:28px;
  color:#93a3b9;
  font-size:14px;
}

/* Responsive */
@media(max-width:700px){
  .menu-btn{ display:block; }
  .main-menu{ display:none; }
  .site-header{ gap:10px; }
}
