/* ===============================
   bebeth.ca — style.css (global)
   =============================== */

/* ===== Design tokens ===== */
:root{
  --bg:#343131;
  --surface:#262424;
  --card:#1f1d1d;
  --ink:#f3f3f3;
  --muted:#c9c9c9;
  --accent:#E68A00;
  --accent-ink:#17130c;
  --link:#FFD089;
  --ring:#ffc26633;
  --good:#ffdd57;
  --bad:#ff9e9e;

  --radius:14px;
  --shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* ===== Base ===== */
*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
html{ background: var(--bg); }
body{
  color: var(--ink);
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

/* ===== Header / Topbar ===== */
.site-header{
  background: linear-gradient(180deg, #A04747 0%, #7f3838 100%);
  border-bottom: 1px solid #00000044;
}
.topbar{
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.return-link{
  color:#fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #ffffff55;
  padding: 8px 12px;
  border-radius: 999px;
  transition: transform .05s ease;
}
.return-link:active{ transform: translateY(1px); }

.brand{ text-align: center; }
.brand h1{
  margin:0;
  font-family: "Sevillana", cursive;
  font-size: clamp(28px, 4vw, 40px);
}

/* ===== Buttons ===== */
.btn{
  background: var(--link);
  color:#3b2d10;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.btn:hover{ filter: brightness(1.05); }
.btn:active{ transform: translateY(1px); }
.btn-ghost{
  background: transparent;
  color: #fff;
  border: 1px solid #ffffff66;
  box-shadow: none;
}

/* ===== Content (layout commun) ===== */
.content{
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px 40px;
}

/* Notices / messages info */
.notice{
  background: #ffffff0f;
  border: 1px dashed #ffffff2a;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 16px;
  color: var(--muted);
}

/* ===== Grille & cartes (pages Recettes) ===== */
.owners-grid{
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
  gap: 16px;
  margin: 18px 0 28px;
}
.owners-grid > h2{
  grid-column: 1 / -1;
  font-family: "Nerko One", cursive;
  color: #EEDF7A;
  font-weight: 400;
  letter-spacing: .2px;
  margin: 8px 0 2px;
}

.owner-card{
  background: var(--card);
  border: 1px solid #00000055;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.owner-card h3{
  font-family: "Nerko One", cursive;
  font-size: 22px;
  color: #EEDF7A;
  margin: 0 0 10px 0;
}

.recipe-list{
  list-style: none;
  padding:0; margin:0;
  display: grid;
  gap: 8px;
}
.recipe-list li{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:10px;
  background: #ffffff06;
  border: 1px solid #ffffff10;
  border-radius: 10px;
  padding: 8px 10px;
}
.recipe-list a{
  color: var(--link);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  flex: 1 1 auto;
}
.recipe-list a:hover{ text-decoration: underline; }

/* ===== Favoris (étoiles) ===== */
.star{
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 8px;
  color: #ffd98a;
}
.star.active{
  color: var(--good);
  text-shadow: 0 0 10px #00000066;
}
.star:focus-visible{
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Section "Mes favoris" */
.favorites{
  margin-top: 26px;
}
.favorites h2{
  font-family: "Nerko One", cursive;
  color: #EEDF7A;
  font-weight: 400;
}

/* ===== Pied de page ===== */
.site-footer{
  border-top: 1px solid #00000055;
  background: var(--surface);
  padding: 18px 16px;
  text-align: center;
  color: var(--muted);
}

/* ===== Dialog de connexion ===== */
.login-dialog{
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 420px;
  width: calc(100% - 24px);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.login-card{ padding: 18px; }
.login-card h2{ margin: 0 0 6px; }
.muted{ color: var(--muted); margin:0 0 14px; font-size: 14px; }

.field{
  display:flex; flex-direction: column; gap:6px;
  margin: 10px 0;
}
.field input{
  background:#141313;
  color: var(--ink);
  border: 1px solid #3b3b3b;
  border-radius: 10px;
  padding: 10px 12px;
}
.actions{
  display:flex; gap:10px; justify-content: flex-end; margin-top: 8px;
}

/* ===== Utils ===== */
.sr-only{
  position:absolute !important;
  height:1px;width:1px;overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* =========================================
   Section spéciale : Chefs Plates (distinct)
   ========================================= */
.owners-grid.chefs-plates > h2{
  font-family: "Playfair Display", serif;
  color: #ffdca8;
  letter-spacing: .3px;
  font-weight: 600;
}
.owners-grid.chefs-plates .owner-card{
  border: 1px solid #eac78a55;
  background: linear-gradient(180deg, #211f1c 0%, #1a1816 100%);
}
.owners-grid.chefs-plates .owner-card h3{
  font-family: "Playfair Display", serif;
  color: #ffe2b3;
  font-weight: 600;
}
.owners-grid.chefs-plates .recipe-list a{
  color: #ffe3b8;
}

/* =================================================
   Accueil (landing) — grille de tuiles cliquables
   ================================================= */
.landing-hero{
  text-align: center;
  margin: 12px 0 8px;
}
.landing-lead{
  display: inline-block;
  padding: 6px 12px;
  border: 1px dashed #ffffff2a;
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff0a;
}
.tiles-grid{
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
  gap: 16px;
  margin-top: 16px;
}
.tile-card{
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  text-decoration: none;
  background: var(--card);
  color: var(--ink);
  border: 1px solid #00000055;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.tile-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  border-color: #ffffff30;
}
.tile-card:focus-visible{
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.tile-emoji{
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.tile-card h3{
  margin: 0;
  font-family: "Nerko One", cursive;
  font-size: 22px;
  color: #EEDF7A;
}
.tile-card p{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.ext{ opacity:.85; margin-left: 4px; }

/* ===== Petites compatibilités héritées (facultatif) ===== */
/* Garde ce sélecteur si certaines anciennes pages l'utilisent encore */
#boulettes-ketchup {
  float: right;
  margin: 0 20px 20px 20px;
  margin-right: 55%;
}

/* ===== Accessibilité mouvement réduit ===== */
@media (prefers-reduced-motion: reduce){
  .tile-card,
  .return-link,
  .btn { transition: none !important; }
}
