/* ===================================================
   WaybackMeme - style.css
   charte : frutiger aero (degrades ciel/menthe, boutons glossy)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  color: #1b2d3a;
  background: linear-gradient(180deg, #d3f0ff 0%, #eafcf5 45%, #f4fffb 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: #0d5c8c; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- bulles decoratives en fond, fixes --- */
.bulle {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9), rgba(255,255,255,0.05) 60%, transparent 70%),
              radial-gradient(circle at 60% 70%, rgba(160,220,255,0.4), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.bulle-1 { width: 180px; height: 180px; top: -60px; left: -50px; }
.bulle-2 { width: 90px; height: 90px; top: 40%; right: -30px; }
.bulle-3 { width: 130px; height: 130px; bottom: -50px; left: 20%; }

/* --- header --- */
header.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  background: linear-gradient(180deg, #eaf7ff, #cdeeff);
  border-bottom: 2px solid #3a9bdc;
  box-shadow: 0 3px 0 rgba(20, 80, 120, 0.15);
}

.logo-zone {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #ffffff, #3a9bdc 55%, #0d5c8c 100%);
  box-shadow: inset 0 -4px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Baloo 2", sans-serif;
  color: white;
  font-size: 17px;
}
/* remplacer .logo-placeholder par une <img> quand le logo dessine a la main est pret */

.titre-site {
  font-family: "Baloo 2", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0d5c8c;
}
.titre-site span { color: #6fd6b0; }

nav.principale a {
  margin-left: 18px;
  color: #0d5c8c;
  font-weight: bold;
  font-size: 14px;
}

/* --- bouton glossy generique (signature du site) --- */
.bouton-aero {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid #0d5c8c;
  background: linear-gradient(180deg, #ffffff 0%, #3a9bdc 45%, #0d5c8c 100%);
  color: white !important;
  font-weight: bold;
  font-size: 13px;
  box-shadow: 3px 3px 0 rgba(13, 92, 140, 0.4);
  cursor: pointer;
  text-decoration: none !important;
}
.bouton-aero:hover { filter: brightness(1.05); }
.bouton-aero.vert {
  border-color: #2f9c78;
  background: linear-gradient(180deg, #ffffff 0%, #6fd6b0 45%, #2f9c78 100%);
}
.bouton-aero.petit { padding: 4px 12px; font-size: 12px; }

/* --- zone principale --- */
main.conteneur {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 26px auto;
  padding: 0 14px;
}

/* --- barre de recherche + filtres annees --- */
.panneau-verre {
  background: #f2fbff;
  border: 2px solid #a8dcf0;
  padding: 14px 16px;
  margin-bottom: 20px;
}

form.recherche {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
form.recherche input[type="text"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #a8dcf0;
  background: white;
  font-size: 14px;
}

.filtres-annees {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.puce-annee {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  background: white;
  border: 1px solid #a8dcf0;
  color: #0d5c8c;
}
.puce-annee.actif {
  background: #ffb238;
  border-color: #e08e00;
  color: #7a4900;
}

/* --- separateur d'annee dans le fil --- */
.separateur-annee {
  position: sticky;
  top: 55px;
  z-index: 5;
  margin: 22px 0 12px;
  text-align: center;
}
.separateur-annee span {
  display: inline-block;
  padding: 4px 20px;
  background: #a8dcf0;
  border: 1px solid #0d5c8c;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: #0d5c8c;
}

/* --- carte meme (post style twitter/reddit) --- */
.carte-meme {
  background: white;
  border: 1px solid #a8dcf0;
  border-left: 4px solid #3a9bdc;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.entete-carte {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff, #6fd6b0 60%, #2f9c78);
  flex-shrink: 0;
}
.meta-carte { font-size: 12px; color: #4c6577; }
.meta-carte b { color: #1b2d3a; }

.tag-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 10px;
  background: #a8dcf0;
  color: #0d5c8c;
  font-weight: bold;
}

h3.titre-meme {
  margin: 4px 0 6px;
  font-family: "Baloo 2", sans-serif;
  font-size: 17px;
}

.visuel-meme {
  height: 140px;
  margin: 8px 0;
  background: repeating-linear-gradient(45deg, #dff3ff, #dff3ff 12px, #eafcf5 12px, #eafcf5 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #6d8a99;
  border: 1px dashed #a8dcf0;
}

.pied-carte {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #4c6577;
  margin-top: 8px;
}
.pied-carte span { display: flex; align-items: center; gap: 4px; }

/* les actions (like, commentaires, partager) sont de vrais liens PHP,
   mais on les garde visuellement identiques a du texte simple */
.pied-carte a.lien-action {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #4c6577;
  text-decoration: none;
}
.pied-carte a.lien-action:hover {
  color: #0d5c8c;
  text-decoration: none;
}

/* --- footer avec infos serveur (cote nostalgie forum 2009) --- */
footer.bas {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 11px;
  color: #517587;
  padding: 20px;
  border-top: 1px solid #a8dcf0;
}
footer.bas .ligne-technique {
  font-family: "Courier New", monospace;
  opacity: 0.8;
}

.bandeau-info {
  max-width: 700px;
  margin: 0 auto 14px;
  padding: 8px 14px;
  background: #fff0c8;
  border: 1px solid #e8c877;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 600px) {
  nav.principale { display: none; }
  main.conteneur { margin: 14px auto; }
}
