:root {
  --bg: #f5f5f5;
  --text: #101435;
  --accent: #764df0;
  --card-bg: #ffffff;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(118, 77, 240, 0.12);
  color: #101435;
  font-size: 11px;
  line-height: 1;
  border: 1px solid rgba(118, 77, 240, 0.25);
  white-space: nowrap;
}

.tag-chip + .tag-chip {
  margin-left: 4px;
}

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto Flex', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden; /* Evite le scroll horizontal et les débordements de la bottom-nav sur mobile */
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 64px;
}

.main-content {
  padding: 16px;
}

h1, h2, h3 {
  margin: 0 0 12px;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 12px 18px;
  font-size: 15px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.input-group label {
  font-size: 13px;
  opacity: 0.8;
}

.input-group input,
.input-group textarea {
  border-radius: 999px;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.input-group textarea {
  border-radius: 16px;
  resize: vertical;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: rgba(235,235,237,0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.06);
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.bottom-nav__group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bottom-nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav__icon {
  font-size: 22px;
}

.bottom-nav__fab {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 60;
}

.bottom-nav__fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  border: none;
  box-shadow: 0 8px 24px rgba(118,77,240,0.65);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.collection-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.collection-card__cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #d0d0d5;
}

.collection-card__title {
  font-weight: 600;
  font-size: 14px;
}

.collection-card__meta {
  font-size: 12px;
  opacity: 0.7;
}

.collections-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.collections-toolbar input[type="search"] {
  flex: 1;
  border-radius: 999px;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
}

.collections-toolbar select {
  border-radius: 999px;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
}

.collections-visibility-filter {
  border-radius: 999px;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: none;
  padding: 4px 8px;
  font-size: 11px;
  background: #e0def9;
  color: #764df0;
  cursor: pointer;
}

.like-btn.is-liked {
  background: #764df0;
  color: #ffffff;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #dcdce5;
  flex-shrink: 0;
}

.toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.toggle--on {
  background: #764df0;
}

.toggle--on .toggle__thumb {
  transform: translateX(20px);
}

.auth-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 16px 64px;
  background-image: url('../img/bg_log.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-hero {
  margin-bottom: 24px;
}

.auth-hero-title {
  font-size: 26px;
  font-weight: 700;
}

.auth-hero-sub {
  font-size: 14px;
  opacity: 0.8;
}

.form-card {
  margin-top: 8px;
}

.error-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  color: #b3261e;
  font-size: 13px;
}

@media (min-width: 768px) {
  .auth-layout {
    max-width: 420px;
    margin: 0 auto;
  }
}
