/* ============================================================
   KANTIK NOËL — CSS principal
   Fichier : assets/css/main.css
   Thème : sombre doré, mobile-first
============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --gold:        #C9973A;
  --gold-light:  #E8C06A;
  --gold-dim:    #7A5A1E;
  --gold-pale:   #FAF0DC;
  --deep:        #0E0A04;
  --midnight:    #1A1208;
  --warm:        #2A1F0C;
  --warm-mid:    #3A2C14;
  --cream:       #F5EDD8;
  --cream-dim:   #C8BAA0;
  --red-dark:    #8B1A1A;
  --green-dark:  #1A4A1A;
  --white:       #FFFFFF;

  --font-serif:  'Georgia', 'Times New Roman', serif;
  --font-sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.4);
  --shadow-gold: 0 4px 20px rgba(201,151,58,0.25);

  --nav-h:       60px;
  --bottom-h:    64px;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--deep);
  color: var(--cream);
  min-height: 100vh;
  line-height: 1.6;
  padding-top: var(--nav-h);
  padding-bottom: var(--bottom-h);
  /* Fond étoilé subtil */
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(201,151,58,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(139,26,26,0.06) 0%, transparent 50%);
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
button { cursor: pointer; font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.2rem 1rem;
}
.container--detail { max-width: 720px; }
.container--narrow { max-width: 480px; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(14,10,4,0.95);
  border-bottom: 1px solid rgba(201,151,58,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navbar__inner {
  display: flex; align-items: center; gap: 0.75rem;
  height: 100%; padding: 0 1rem;
  max-width: 1100px; margin: 0 auto;
}
.navbar__logo {
  display: flex; align-items: center; gap: 0.4rem;
  text-decoration: none; flex-shrink: 0;
}
.navbar__logo-star { color: var(--gold); font-size: 1.1rem; }
.navbar__logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem; color: var(--gold);
  font-weight: bold; white-space: nowrap;
}
.navbar__search {
  flex: 1; display: flex; align-items: center;
  gap: 0.4rem; max-width: 340px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,151,58,0.2);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.8rem;
}
.navbar__search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--cream); font-size: 0.9rem;
}
.navbar__search input::placeholder { color: var(--cream-dim); }
.navbar__search button {
  background: none; border: none; color: var(--cream-dim); font-size: 1rem;
  padding: 0; transition: color 0.2s;
}
.navbar__search button:hover { color: var(--gold); }
.navbar__nav {
  display: none; align-items: center; gap: 0.5rem; margin-left: auto;
}
@media (min-width: 700px) { .navbar__nav { display: flex; } }

.navbar__link {
  color: var(--cream-dim); font-size: 0.9rem; padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm); transition: color 0.2s;
  text-decoration: none;
}
.navbar__link:hover { color: var(--gold); }

/* Menu déroulant compte */
.navbar__dropdown { position: relative; }
.navbar__account-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,151,58,0.2);
  border-radius: var(--radius-md); padding: 0.35rem 0.75rem;
  color: var(--cream); font-size: 0.9rem; transition: all 0.2s;
}
.navbar__account-btn:hover { border-color: var(--gold); color: var(--gold); }
.navbar__avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover;
}
.navbar__avatar--initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim); color: var(--deep);
  font-size: 0.8rem; font-weight: bold;
}
.navbar__account-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.navbar__dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--midnight); border: 1px solid rgba(201,151,58,0.2);
  border-radius: var(--radius-md); padding: 0.4rem 0;
  min-width: 180px; list-style: none;
  box-shadow: var(--shadow-md); z-index: 300;
}
.navbar__dropdown-menu--open { display: block; }
.navbar__dropdown-menu a {
  display: block; padding: 0.6rem 1rem;
  color: var(--cream-dim); font-size: 0.9rem; transition: all 0.2s;
}
.navbar__dropdown-menu a:hover { background: rgba(201,151,58,0.1); color: var(--gold); }
.navbar__dropdown-divider { height: 1px; background: rgba(201,151,58,0.15); margin: 0.3rem 0; }

/* Burger mobile */
.navbar__burger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 0.4rem; margin-left: auto;
}
@media (min-width: 700px) { .navbar__burger { display: none; } }
.navbar__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--cream-dim); border-radius: 1px; transition: all 0.3s;
}
.navbar__burger--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__burger--open span:nth-child(2) { opacity: 0; }
.navbar__burger--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── MENU MOBILE ───────────────────────────────────────────── */
.mobile-menu {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0;
  background: rgba(14,10,4,0.97); z-index: 190;
  padding: 1.5rem 1rem;
}
.mobile-menu--open { display: block; }
.mobile-menu__search {
  display: flex; gap: 0.5rem; margin-bottom: 1.5rem;
}
.mobile-menu__search input {
  flex: 1; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,151,58,0.2); border-radius: var(--radius-md);
  padding: 0.7rem 1rem; color: var(--cream); font-size: 1rem; outline: none;
}
.mobile-menu__search button {
  background: var(--gold); border: none; border-radius: var(--radius-md);
  padding: 0 1rem; font-size: 1rem;
}
.mobile-menu__inner nav { display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-menu__inner nav a {
  display: block; padding: 0.85rem 1rem;
  color: var(--cream); font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s; text-decoration: none;
}
.mobile-menu__inner nav a:hover { color: var(--gold); }
.mobile-menu__logout { color: var(--cream-dim) !important; }

/* ── BARRE DE NAV MOBILE (bas) ─────────────────────────────── */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: var(--bottom-h);
  display: flex;
  background: rgba(14,10,4,0.97);
  border-top: 1px solid rgba(201,151,58,0.15);
  backdrop-filter: blur(12px);
}
@media (min-width: 700px) { .bottomnav { display: none; } }
.bottomnav__item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.15rem;
  color: var(--cream-dim); text-decoration: none; font-size: 0.7rem;
  transition: color 0.2s;
}
.bottomnav__item--active { color: var(--gold); }
.bottomnav__icon { font-size: 1.3rem; }

/* ── MAIN ───────────────────────────────────────────────────── */
.main { min-height: calc(100vh - var(--nav-h) - var(--bottom-h)); }

/* ── MESSAGES FLASH ─────────────────────────────────────────── */
.flash {
  margin: 0.8rem 1rem; padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md); font-size: 0.9rem;
  border-left: 4px solid;
}
.flash--success { background: rgba(26,74,26,0.2); border-color: #4CAF50; color: #81C784; }
.flash--error   { background: rgba(139,26,26,0.2); border-color: var(--red-dark); color: #EF9A9A; }
.flash--info    { background: rgba(201,151,58,0.1); border-color: var(--gold); color: var(--gold-light); }

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-header { padding: 1.2rem 0 0.8rem; }
.page-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--gold); display: flex; align-items: center; gap: 0.5rem;
}
.page-header__star { opacity: 0.7; }
.page-header__sub { color: var(--cream-dim); font-size: 0.9rem; margin-top: 0.2rem; }

/* ── FILTRES ────────────────────────────────────────────────── */
.filters { margin-bottom: 1rem; }
.filters__form { display: flex; flex-direction: column; gap: 0.7rem; }
.filters__search input {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,151,58,0.2); border-radius: var(--radius-md);
  padding: 0.7rem 1rem; color: var(--cream); font-size: 1rem; outline: none;
  transition: border-color 0.2s;
}
.filters__search input:focus { border-color: var(--gold); }
.filters__chips {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.chip {
  display: inline-block; padding: 0.3rem 0.9rem;
  border: 1px solid rgba(201,151,58,0.25);
  border-radius: 20px; font-size: 0.85rem;
  color: var(--cream-dim); background: transparent;
  transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip--active {
  background: var(--gold); border-color: var(--gold);
  color: var(--deep); font-weight: 600;
}
.filters__select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,151,58,0.2); border-radius: var(--radius-md);
  padding: 0.5rem 0.8rem; color: var(--cream); font-size: 0.9rem;
  outline: none; cursor: pointer;
}
.filters__select option { background: var(--midnight); }

/* ── LISTE KANTIK ───────────────────────────────────────────── */
.kantik-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }

.kantik-card {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  transition: all 0.2s; overflow: hidden;
}
.kantik-card:hover {
  background: rgba(201,151,58,0.07);
  border-color: rgba(201,151,58,0.2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.kantik-card__link {
  display: flex; align-items: center; gap: 0.9rem;
  flex: 1; padding: 0.75rem 1rem; text-decoration: none;
  min-width: 0;
}
.kantik-card__thumb {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--warm); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  border: 1px solid rgba(201,151,58,0.15); overflow: hidden;
}
.kantik-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kantik-card__thumb-icon { font-size: 1.4rem; }

.kantik-card__num {
  font-family: var(--font-serif); font-size: 1.1rem;
  color: var(--gold-dim); min-width: 2.2rem; font-style: italic;
}
.kantik-card__info { flex: 1; min-width: 0; }
.kantik-card__title {
  font-size: 1rem; font-weight: 600; color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kantik-card__meta {
  font-size: 0.8rem; color: var(--cream-dim); margin-top: 0.1rem;
  display: flex; flex-wrap: wrap; gap: 0.2rem; align-items: center;
}
.kantik-card__sep { opacity: 0.4; }

.kantik-card__fav {
  background: none; border: none; color: var(--cream-dim);
  font-size: 1.2rem; padding: 0.75rem 1rem; flex-shrink: 0;
  transition: all 0.2s; line-height: 1; text-decoration: none;
}
.kantik-card__fav:hover { color: var(--gold); transform: scale(1.2); }
.kantik-card__fav--on { color: var(--gold); }

/* ── ÉTAT VIDE ──────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 3rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.empty-state__icon { font-size: 3rem; opacity: 0.3; }
.empty-state__text { color: var(--cream-dim); font-size: 1rem; }

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; gap: 0.4rem;
  margin-top: 1.5rem; flex-wrap: wrap;
}
.pagination__btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,151,58,0.2);
  color: var(--cream-dim); font-size: 0.9rem; text-decoration: none;
  transition: all 0.2s;
}
.pagination__btn:hover { border-color: var(--gold); color: var(--gold); }
.pagination__btn--active { background: var(--gold); border-color: var(--gold); color: var(--deep); font-weight: 600; }

/* ── BOUTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-md);
  font-size: 1rem; font-weight: 600; border: none;
  transition: all 0.25s; cursor: pointer; text-decoration: none;
  white-space: nowrap; letter-spacing: 0.02em;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--deep);
  box-shadow: 0 3px 12px rgba(201,151,58,0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,151,58,0.45);
  color: var(--deep);
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(201,151,58,0.3);
  color: var(--cream-dim);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,151,58,0.07); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn--fav {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,151,58,0.2);
  color: var(--cream-dim);
}
.btn--fav:hover { border-color: var(--gold); color: var(--gold); }
.btn--fav-on { background: rgba(201,151,58,0.15); border-color: var(--gold); color: var(--gold); }

/* ── BADGES ─────────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: 0.75rem; padding: 0.2rem 0.6rem;
  border-radius: 10px; border: 1px solid; font-weight: 500;
}
.badge--cat  { border-color: rgba(201,151,58,0.4); color: var(--gold); }
.badge--lang { border-color: rgba(139,26,26,0.5); color: #E07070; }
.badge--diff { border-color: rgba(26,74,26,0.5); color: #81C784; }

/* ── FICHE KANTIK ───────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.82rem; color: var(--cream-dim);
  padding: 0.7rem 0; display: flex; flex-wrap: wrap; gap: 0.2rem;
  align-items: center;
}
.breadcrumb a { color: var(--cream-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--cream); }

.kantik-hero {
  border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--midnight), var(--warm));
  border: 1px solid rgba(201,151,58,0.15);
}
.kantik-hero__img-wrap { height: 180px; overflow: hidden; }
.kantik-hero__img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.kantik-hero__content { padding: 1.2rem 1.4rem 1.4rem; }
.kantik-hero__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.kantik-hero__page { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; }
.kantik-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--cream); margin-bottom: 1rem; line-height: 1.2;
}
.kantik-hero__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.kantik-body { display: flex; flex-direction: column; gap: 1.5rem; }

.section-title {
  font-size: 0.78rem; letter-spacing: 0.22em;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(201,151,58,0.3), transparent);
}

/* Lecteur audio */
.audio-player {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,151,58,0.15);
  border-radius: var(--radius-md); padding: 1rem;
  margin-bottom: 0.7rem;
}
.audio-player--playing { border-color: rgba(201,151,58,0.4); }
.audio-player__play {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); border: none; color: var(--deep);
  font-size: 0.9rem; flex-shrink: 0; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.audio-player__play:hover { background: var(--gold-light); transform: scale(1.05); }
.audio-player > div:first-child { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.audio-player__info { flex: 1; }
.audio-player__label { font-size: 0.9rem; color: var(--cream); display: block; }
.audio-player__time { font-size: 0.78rem; color: var(--cream-dim); font-family: monospace; }
.audio-player__bar {
  height: 4px; background: rgba(255,255,255,0.1);
  border-radius: 2px; cursor: pointer; position: relative; overflow: hidden;
}
.audio-player__progress {
  height: 100%; width: 0%;
  background: linear-gradient(to right, var(--gold-dim), var(--gold));
  border-radius: 2px; transition: width 0.1s linear;
}

/* Accords */
.chords-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chord-badge {
  background: rgba(139,26,26,0.2); border: 1px solid rgba(139,26,26,0.4);
  color: #E07070; padding: 0.35rem 0.8rem; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; font-family: var(--font-serif);
}

/* Paroles */
.lyrics-content { line-height: 1.9; }
.lyrics-content .couplet,
.lyrics-content .refrain { margin-bottom: 1.4rem; }
.lyrics-content .num {
  font-size: 0.75rem; color: var(--gold-dim);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.4rem;
}
.lyrics-content .refrain {
  background: rgba(201,151,58,0.07);
  border-left: 3px solid var(--gold);
  padding: 0.8rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.lyrics-content .refrain p { font-weight: 600; font-size: 1.1rem; }
.lyrics-content p { font-size: 1.05rem; color: var(--cream); font-style: italic; }

/* Note d'usage */
.kantik-note {
  background: rgba(26,74,26,0.12);
  border: 1px solid rgba(26,74,26,0.35);
  border-radius: var(--radius-md); padding: 0.9rem 1.1rem;
  display: flex; gap: 0.7rem; align-items: flex-start;
}
.kantik-note__icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.kantik-note p { font-size: 0.92rem; color: var(--cream-dim); line-height: 1.6; }

/* Note personnelle */
.note-form__textarea {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,151,58,0.2); border-radius: var(--radius-md);
  padding: 0.8rem 1rem; color: var(--cream); font-family: inherit;
  font-size: 0.95rem; resize: vertical; outline: none;
  transition: border-color 0.2s; margin-bottom: 0.6rem;
}
.note-form__textarea:focus { border-color: var(--gold); }

/* Nav précédent / suivant */
.kantik-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(201,151,58,0.15);
}
.kantik-nav__btn {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--cream-dim); font-size: 0.9rem;
  text-decoration: none; transition: color 0.2s;
  max-width: 45%;
}
.kantik-nav__btn:hover { color: var(--gold); }
.kantik-nav__btn--next { margin-left: auto; text-align: right; }

/* ── PAGE CONNEXION / INSCRIPTION ───────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--nav-h) - var(--bottom-h));
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--midnight);
  border: 1px solid rgba(201,151,58,0.2);
  border-radius: var(--radius-xl); padding: 2.2rem 2rem;
  box-shadow: var(--shadow-md);
}
.auth-card__logo {
  text-align: center; margin-bottom: 1.6rem;
}
.auth-card__star { font-size: 2rem; color: var(--gold); display: block; }
.auth-card__title {
  font-family: var(--font-serif);
  font-size: 1.6rem; color: var(--cream);
  margin-top: 0.4rem;
}
.auth-card__sub { color: var(--cream-dim); font-size: 0.9rem; margin-top: 0.3rem; }

/* Boutons OAuth */
.oauth-buttons { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.4rem; }
.oauth-btn {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--cream); font-size: 0.95rem;
  transition: all 0.2s; text-decoration: none; width: 100%;
}
.oauth-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: var(--cream); }
.oauth-btn__icon { width: 20px; height: 20px; flex-shrink: 0; font-size: 1.1rem; text-align: center; }
.oauth-btn--google:hover { border-color: #4285F4; }
.oauth-btn--facebook:hover { border-color: #1877F2; }
.oauth-btn--apple:hover { border-color: #555; }
.oauth-btn--instagram:hover { border-color: #E1306C; }

.auth-divider {
  display: flex; align-items: center; gap: 0.8rem;
  margin: 1.2rem 0; color: var(--cream-dim); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(201,151,58,0.2);
}

/* Champs de formulaire */
.field { margin-bottom: 1rem; }
.field__label {
  display: block; font-size: 0.78rem; letter-spacing: 0.12em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 0.4rem;
}
.field__input {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,151,58,0.2); border-radius: var(--radius-md);
  padding: 0.8rem 1rem; color: var(--cream);
  font-size: 1rem; font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
.field__input:focus { border-color: var(--gold); background: rgba(255,255,255,0.07); }
.field__input::placeholder { color: var(--cream-dim); opacity: 0.6; }
.field__error { font-size: 0.82rem; color: #EF9A9A; margin-top: 0.3rem; }
.field__hint  { font-size: 0.82rem; color: var(--cream-dim); margin-top: 0.3rem; }

.auth-footer {
  text-align: center; margin-top: 1.2rem;
  color: var(--cream-dim); font-size: 0.9rem;
}
.auth-footer a { color: var(--gold); }

/* ── PAGE FAVORIS ───────────────────────────────────────────── */
.favs-header { margin-bottom: 1.2rem; }
.favs-header h1 {
  font-family: var(--font-serif);
  font-size: 1.6rem; color: var(--gold);
  display: flex; align-items: center; gap: 0.6rem;
}
.favs-count { font-size: 1rem; color: var(--cream-dim); font-family: var(--font-sans); }

/* ── PAGE COMPTE ────────────────────────────────────────────── */
.profile-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,151,58,0.2);
  border-radius: var(--radius-lg); padding: 1.5rem;
  text-align: center; margin-bottom: 1.5rem;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 0.8rem; overflow: hidden;
  border: 2px solid rgba(201,151,58,0.3);
  background: var(--warm-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--font-serif); font-size: 1.3rem; }
.profile-email { color: var(--cream-dim); font-size: 0.88rem; margin-top: 0.2rem; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 1.2rem 0; }
.stat-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,151,58,0.15);
  border-radius: var(--radius-md); padding: 0.9rem; text-align: center;
}
.stat-num { font-family: var(--font-serif); font-size: 1.8rem; color: var(--gold); }
.stat-label { font-size: 0.78rem; color: var(--cream-dim); margin-top: 0.15rem; }

.pref-section { margin-bottom: 1.5rem; }
.pref-title {
  font-size: 0.78rem; letter-spacing: 0.2em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.pref-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, rgba(201,151,58,0.3), transparent); }
.pref-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem; color: var(--cream-dim);
}

/* Toggle switch */
.toggle {
  position: relative; width: 44px; height: 24px;
  display: inline-block; flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle__track {
  position: absolute; inset: 0; border-radius: 12px;
  background: rgba(255,255,255,0.12); cursor: pointer;
  transition: background 0.3s;
}
.toggle input:checked + .toggle__track { background: var(--gold); }
.toggle__track::after {
  content: ''; position: absolute;
  top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: white;
  transition: transform 0.3s;
}
.toggle input:checked + .toggle__track::after { transform: translateX(20px); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--midnight);
  border-top: 1px solid rgba(201,151,58,0.12);
  padding: 1.5rem 1rem; margin-bottom: var(--bottom-h);
}
@media (min-width: 700px) { .footer { margin-bottom: 0; } }
.footer__inner { max-width: 860px; margin: 0 auto; text-align: center; }
.footer__brand {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  margin-bottom: 0.8rem;
}
.footer__star { color: var(--gold); font-size: 1rem; }
.footer__name { font-family: var(--font-serif); color: var(--gold); font-size: 1rem; }
.footer__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1rem;
  margin-bottom: 0.8rem;
}
.footer__nav a { color: var(--cream-dim); font-size: 0.85rem; text-decoration: none; }
.footer__nav a:hover { color: var(--gold); }
.footer__copy { font-size: 0.8rem; color: var(--cream-dim); opacity: 0.5; }

/* ── TOAST ──────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: calc(var(--bottom-h) + 12px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--warm-mid); border: 1px solid var(--gold);
  color: var(--cream); padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md); font-size: 0.9rem;
  z-index: 500; opacity: 0; transition: all 0.3s;
  white-space: nowrap; pointer-events: none;
}
@media (min-width: 700px) { #toast { bottom: 20px; } }
#toast.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE desktop ─────────────────────────────────────── */
@media (min-width: 700px) {
  body { padding-bottom: 0; }
  .kantik-card__thumb { width: 56px; height: 56px; }
  .kantik-hero { display: flex; align-items: stretch; }
  .kantik-hero__img-wrap { width: 200px; height: auto; flex-shrink: 0; }
  .kantik-hero__img { height: 100%; }
  .filters__form { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .filters__search { flex: 1; min-width: 200px; }
  .kantik-hero__actions { flex-wrap: nowrap; }
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.main { animation: fadeIn 0.4s ease; }

/* Réduction des animations si demandée */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── ALERTES ────────────────────────────────────────────────── */
.alertes-zone {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.alerte {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid;
  position: relative;
  animation: slideDown 0.4s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
.alerte--info      { background: rgba(56,139,253,0.1);  border-color: rgba(56,139,253,0.3);  }
.alerte--promotion { background: rgba(201,151,58,0.12); border-color: rgba(201,151,58,0.4);  }
.alerte--evenement { background: rgba(26,74,26,0.15);   border-color: rgba(26,150,26,0.35);  }
.alerte--urgent    { background: rgba(139,26,26,0.15);  border-color: rgba(200,50,50,0.4);   }
.alerte--vue       { opacity: 0.65; }

.alerte__icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.alerte__body { flex: 1; min-width: 0; }
.alerte__titre {
  font-weight: 600; font-size: 0.95rem; color: var(--cream);
  margin-bottom: 0.25rem;
}
.alerte__msg {
  font-size: 0.88rem; color: var(--cream-dim); line-height: 1.6;
}
.alerte__lien {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.85rem; color: var(--gold); text-decoration: none;
  font-weight: 600;
}
.alerte__lien:hover { text-decoration: underline; }
.alerte__close {
  background: none; border: none; color: var(--cream-dim);
  font-size: 1rem; cursor: pointer; flex-shrink: 0;
  padding: 0.2rem 0.4rem; opacity: 0.5; transition: opacity 0.2s;
  align-self: flex-start;
}
.alerte__close:hover { opacity: 1; }

/* Bouton d'abonnement push */
.push-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(201,151,58,0.1);
  border: 1px solid rgba(201,151,58,0.25);
  border-radius: var(--radius-md);
  color: var(--cream-dim); font-size: 0.85rem;
  padding: 0.5rem 0.9rem; cursor: pointer;
  transition: all 0.2s; width: 100%; justify-content: center;
  margin-bottom: 1rem;
}
.push-btn:hover { border-color: var(--gold); color: var(--gold); }
.push-btn--on { color: var(--gold); border-color: var(--gold); background: rgba(201,151,58,0.15); }

/* ── BOUTON GOOGLE ──────────────────────────────────────────── */
.oauth-btn--google {
  border-color: rgba(66,133,244,0.4);
}
.oauth-btn--google:hover {
  border-color: #4285F4;
  background: rgba(66,133,244,0.08);
  color: var(--cream);
}
.oauth-btn__icon svg {
  flex-shrink: 0;
}
