@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

/* Smooth scrolling & global transitions */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
a { transition: color 0.2s, background 0.2s; }
img { max-width: 100%; }

/* Switch toggle (préférences) */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #eee;
  transition: .3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0001;
}
input:checked + .slider {
  background-color: #ff9900;
}
input:checked + .slider:before {
  transform: translateX(20px);
}
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

/* Bouton logout */
.btn-logout {
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 12px 0;
  font-weight: bold;
  font-size: 1.08rem;
  margin: 18px 0 0 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s;
}
.btn-logout:hover {
  background: #b71c1c;
}
/* MODAL PARAMETRES COMPTE */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #232931cc;
  z-index: 1000;
}
.modal-parametres {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px #02223230;
  width: 95%;
  max-width: 480px;
  z-index: 1001;
  padding: 0;
  animation: modalIn 0.25s cubic-bezier(.4,1.4,.6,1) 1;
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -60%) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px 0 28px;
}
.modal-tabs {
  display: flex;
  border-bottom: 1.5px solid #f2e6d6;
  margin: 0 28px;
}
.tab {
  flex: 1;
  background: none;
  border: none;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 12px 0;
  cursor: pointer;
  color: #232931;
  border-radius: 8px 8px 0 0;
  transition: background 0.15s, color 0.15s;
}
.tab.active {
  background: #ff9900;
  color: #fff;
}
.modal-content {
  padding: 24px 28px 28px 28px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  font-weight: bold;
  color: #232931;
  margin-bottom: 6px;
  display: block;
  font-size: 1.04rem;
}
.form-group input {
  width: 100%;
  border-radius: 8px;
  border: 1.5px solid #eee;
  padding: 10px 12px;
  font-size: 1.07rem;
  background: #f8f8fa;
  color: #232931;
  outline: none;
  transition: border 0.15s;
}
.form-group input:focus {
  border: 1.5px solid #ff9900;
}
.btn-orange {
  background: #ff9900;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: bold;
  font-size: 1.08rem;
  cursor: pointer;
  transition: background 0.18s;
  box-shadow: 0 2px 8px #ff990038;
}
.btn-orange:hover {
  background: #e67c00;
}
.btn-cancel {
  background: none;
  color: #888;
  border: none;
  font-size: 1.08rem;
  margin-right: 12px;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background 0.15s;
}
.btn-cancel:hover {
  background: #f2e6d6;
}
.photo-profil {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.avatar {
  background: #ff9900;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  box-shadow: 0 2px 8px #ff990038;
}
.password-section {
  margin-top: 18px;
}
.toggle-password {
  background: none;
  color: #ff9900;
  border: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.07rem;
  padding: 0;
  margin-bottom: 0;
}
.toggle-password:hover {
  text-decoration: underline;
}
.password-fields {
  margin-top: 10px;
}
.modal-actions {
  margin-top: 18px;
}
@media (max-width: 600px) {
  .modal-parametres { max-width: 98vw; padding: 0; }
  .modal-header, .modal-content { padding-left: 10px; padding-right: 10px; }
  .modal-tabs { margin-left: 10px; margin-right: 10px; }
}
body {
  margin: 0;
  padding-top: 0;
  background: #fdf6ee;
  color: #232931;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  box-sizing: border-box;
}
.logo-svg {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.container-home {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 20px;
  padding-bottom: 20px;
  position: relative;
  z-index: 4;
}
h1 {
  color: #ff9900;
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 24px;
  text-align: center;
  font-family: 'Lora', 'Cooper Black', serif;
}
    /* btn-group et btn-ia/btn-classic styles définis plus bas avec les modes */
.search-bar {
  margin: 28px 0 26px 0;
  display: flex;
  align-items: center;
  width: 620px;
  max-width: 95vw;
  border-radius: 28px;
  background: #fff;
  padding: 5px 18px 5px 15px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 2px solid transparent;
  transition: all 0.25s;
}
.search-bar:focus-within {
  border-color: #ff9900;
  box-shadow: 0 4px 20px rgba(255,153,0,0.15);
}
.search-bar input {
  border: none;
  font-size: 1.1rem;
  flex: 1;
  outline: none;
  background: transparent;
  color: #333;
  padding: 10px 5px;
}
.search-bar .icon {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.filters-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.toggle-cave {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 1rem;
  font-style: italic;
}
.toggle-cave input[type="checkbox"] {
  accent-color: #ff9900;
  width: 34px;
  height: 20px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 30px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.filter-group label {
  font-size: 0.97rem;
  color: #ff9900;
  margin-left: 4px;
  margin-bottom: 2px;
}
select {
  border-radius: 10px;
  padding: 10px 18px;
  border: 2px solid transparent;
  font-size: 1rem;
  background: #fff;
  color: #333;
  min-width: 170px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
select:hover {
  border-color: #ff9900;
  box-shadow: 0 3px 14px rgba(255,153,0,0.12);
}
select:focus {
  outline: none;
  border-color: #ff9900;
  box-shadow: 0 0 0 3px rgba(255,153,0,0.15);
}
.no-alcool {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-left: 17px;
  color: #fff;
  gap: 5px;
}
.no-alcool input[type="checkbox"] {
  accent-color: #fff;
  width: 19px;
  height: 19px;
  margin-right: 2px;
}
.selected-filters {
  margin-top: 18px;
  width: 700px;
  max-width: 97vw;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  padding: 20px 22px;
  border-radius: 16px;
  box-shadow: none;
  font-size: 0.97rem;
  min-height: 42px;
  border: 1.5px solid rgba(255,255,255,0.1);
  transition: box-shadow 0.2s;
}
.selected-filters:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.12);
}
.selected-filters-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.selected-filters-empty {
  color: rgba(255,255,255,0.4);
  font-size: 0.97rem;
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ff9900;
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: tagIn 0.25s ease;
  transition: all 0.2s;
}
.filter-tag:hover {
  background: #e67c00;
  transform: scale(1.04);
}
@keyframes tagIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.filter-tag-remove {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 1px 5px;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.15s;
}
.filter-tag-remove:hover {
  background: rgba(255,255,255,0.4);
}
@media (max-width: 900px) {
  .logo-svg { display: none; }
  .container-home { padding-top: 20px; }
  .selected-filters { width: 95vw; }
  .search-bar { width: 95vw; }
}
/* body background already set above */
.hero-banner {
  position: relative;
  background: #022232;
  border-radius: 0 0 40px 40px;
  margin-top: 0;
  width: 100%;
  min-height: 380px;
  padding: 80px 0 60px 0;
  box-shadow: 0 5px 28px #02223214;
  overflow: hidden;
}

/* ===== MODE IA (fond orange) ===== */
.hero-ia {
  background: linear-gradient(135deg, #ff8a00 0%, #ffb04d 60%, #ff8a00 100%);
  box-shadow: none;
}
.hero-ia .hero-title-ia {
  color: #022232;
  font-size: 2.2rem;
  margin-bottom: 24px;
}
.hero-ia .btn-ia.active {
  background: rgba(255,255,255,0.35);
  color: #022232;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.hero-ia .btn-classic {
  background: transparent;
  color: rgba(2,34,50,0.6);
}
.hero-ia .btn-classic:hover {
  background: rgba(255,255,255,0.2);
  color: #022232;
}
.search-bar-ia {
  width: 640px;
  max-width: 95vw;
  border-radius: 32px;
  background: #fff;
  padding: 6px 14px 6px 22px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  border: 2px solid transparent;
  transition: all 0.25s;
}
.search-bar-ia:focus-within {
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  transform: translateY(-1px);
}
.search-bar-ia input[type="text"] {
  border: none;
  font-size: 1.08rem;
  flex: 1;
  outline: none;
  background: transparent;
  color: #333;
  padding: 12px 5px;
}
.search-bar-ia input::placeholder {
  color: #aaa;
}
.ia-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.toggle-cave-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #777;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.2s;
  border-left: 1.5px solid #eee;
  margin-left: 4px;
}
.toggle-cave-inline:hover {
  color: #ff8a00;
}
.toggle-cave-inline input[type="checkbox"] {
  accent-color: #ff8a00;
  width: 34px;
  height: 18px;
  cursor: pointer;
}
/* Splash SVG décoratifs mode IA */
.splash-left {
  position: absolute;
  left: -20px;
  bottom: -30px;
  width: 200px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}
.splash-right {
  position: absolute;
  right: -10px;
  top: -20px;
  width: 260px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* ===== MODE CLASSIQUE (fond sombre) ===== */
.hero-classic {
  background: linear-gradient(180deg, #1a3a4a 0%, #022232 40%);
  color: #fff;
}
.hero-classic h1 {
  color: #ff9900;
}
.hero-classic ~ .reco-section {
  background: transparent;
}
.hero-classic .btn-classic.active {
  background: #ff9900;
  color: #fff;
  box-shadow: 0 2px 12px rgba(255,153,0,0.3);
}
.hero-classic .btn-ia {
  background: transparent;
  color: rgba(255,255,255,0.6);
}
.hero-classic .btn-ia:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Boutons toggle actifs commun */
.btn-group {
  background: rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 5px;
  display: inline-flex;
  gap: 0;
  backdrop-filter: blur(6px);
  margin-bottom: 28px;
}
.btn-ia, .btn-classic {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .splash-left, .splash-right { display: none; }
  .search-bar-ia { width: 95vw; }
}
/* container-home override removed - defined above */
.moon-top, .moon-bottom {
  z-index: 10;
}
.reco-section {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto 30px auto;
  padding: 40px 24px 40px 24px;
}
.reco-title {
  margin-left: 0;
  margin-bottom: 24px;
  font-family: 'Lora', serif;
  font-size: 2rem;
  color: #232931;
  font-weight: bold;
  letter-spacing: 1px;
  user-select: text;
  text-align: left !important;
}
.reco-cards {
  display: flex;
  flex-direction: row;
  gap: 42px;
  justify-content: flex-start;
}
.card-reco {
  background: #1a1a2e;
  border-radius: 18px;
  box-shadow: 0 4px 22px rgba(0,0,0,0.10);
  padding: 0;
  width: 280px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.card-reco:hover {
  box-shadow: 0 12px 36px rgba(255,153,0,0.22), 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-8px);
}
.card-reco:hover .img-wrap img {
  transform: scale(1.06);
}
.card-reco a {
  color: inherit;
  text-decoration: none;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.img-wrap {
  width: 100%;
  height: 200px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: #2a2a3e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  box-shadow: none;
  position: relative;
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.no-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a3e, #3a3a5e);
  border-radius: 0;
}
.card-reco-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}
.reco-badge {
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
  backdrop-filter: blur(4px);
}
.reco-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 4px;
  color: #fff;
  letter-spacing: 0.3px;
}
.reco-alcool {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.35);
  border: none;
  border-radius: 20px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(6px);
  transition: all 0.25s;
  color: #fff;
  font-size: 0.92rem;
  opacity: 1;
  transform: scale(1);
}
.card-fav-btn .like-count {
  font-size: 0.85rem;
  font-weight: 600;
}
.card-fav-btn.active {
  background: rgba(255,60,60,0.85);
  color: #fff;
}
.card-fav-btn:hover {
  background: rgba(255,60,60,0.75);
  transform: scale(1.08);
}
.card-fav-btn:active {
  transform: scale(0.95) !important;
}
@media (max-width: 900px) {
  .reco-cards { gap: 18px;}
  .card-reco { width: 100%; min-width: 0;}
}
@media (max-width: 650px) {
  .reco-cards { flex-direction: column; gap: 14px;}
  .card-reco { width: 100%; min-width: 0;}
}
.reco-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
  justify-items: center;
  margin-bottom: 18px;
}
.pagination-reco {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  font-family: 'Lora', serif;
}
.page-link {
  padding: 8px 16px;
  border-radius: 10px;
  background: #fff;
  color: #232931;
  font-weight: bold;
  text-decoration: none;
  border: 1.5px solid #e8e0d6;
  font-size: 1.05rem;
  transition: all 0.2s;
  cursor: pointer;
}
.page-link.current {
  background: #ff9900;
  color: #fff;
  border-color: #ff9900;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(255,153,0,0.3);
}
.page-link:hover {
  background: #ff990015;
  color: #ff9900;
  border-color: #ff9900;
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .reco-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .card-reco { width: 100%; }
}
@media (max-width: 550px) {
  .reco-cards-grid { grid-template-columns: 1fr; }
}

/* ===== AUTH PAGES (Login / Register) ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 16px 30px 16px;
  background: #fdf6ee;
}
.auth-container {
  display: flex;
  width: 100%;
  max-width: 920px;
  min-height: 540px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(2,34,50,0.13);
  background: #fff;
}
.auth-left {
  flex: 0 0 340px;
  background: linear-gradient(135deg, #0a1628 0%, #1a2744 50%, #0e1f3d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.auth-left::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.auth-left-content {
  text-align: center;
  color: #e8ecf2;
  position: relative;
  z-index: 2;
}
.auth-logo-icon {
  font-size: 3rem;
  margin-bottom: 22px;
  color: #ff9900;
  opacity: 0.9;
}
.auth-left-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 14px 0;
  line-height: 1.3;
  color: #fff;
}
.auth-left-content p {
  font-size: 0.97rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 40px;
  background: #fff;
}
.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}
.auth-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #022232;
  margin: 0 0 6px 0;
}
.auth-subtitle {
  font-size: 0.95rem;
  color: #888;
  margin: 0 0 22px 0;
}
.auth-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.93rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-row {
  display: flex;
  gap: 14px;
}
.auth-row .auth-field {
  flex: 1;
}
.auth-field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #344054;
  margin-bottom: 5px;
}
.auth-field label i {
  color: #ff9900;
  margin-right: 5px;
  width: 16px;
  text-align: center;
}
.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  color: #232931;
  background: #f9fafb;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.auth-field input:focus {
  border-color: #ff9900;
  box-shadow: 0 0 0 3px rgba(255,153,0,0.10);
  background: #fff;
}
.auth-field input::placeholder {
  color: #b0b0b0;
}
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-input-wrap input {
  padding-right: 44px;
}
.toggle-pwd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #b0b0b0;
  cursor: pointer;
  font-size: 1.05rem;
  padding: 4px;
  transition: color 0.15s;
}
.toggle-pwd:hover {
  color: #ff9900;
}
.password-strength {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 5px;
  min-height: 18px;
}
.required {
  color: #dc2626;
  font-weight: bold;
}
.auth-submit {
  width: 100%;
  padding: 13px 0;
  background: linear-gradient(135deg, #ff9900, #ffb84d);
  color: #022232;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 12px rgba(255,153,0,0.25);
  margin-top: 4px;
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(255,153,0,0.35);
}
.auth-submit:active {
  transform: translateY(0);
}
.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 0.93rem;
  color: #888;
}
.auth-footer a {
  color: #ff9900;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}
.auth-footer a:hover {
  text-decoration: underline;
}

/* Auth responsive */
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
    max-width: 480px;
  }
  .auth-left {
    flex: 0 0 auto;
    padding: 32px 24px;
    min-height: auto;
  }
  .auth-left-content h2 { font-size: 1.35rem; }
  .auth-right { padding: 28px 24px; }
  .auth-row { flex-direction: column; gap: 16px; }
}
@media (max-width: 480px) {
  .auth-page { padding: 16px 8px; }
  .auth-left { padding: 24px 16px; }
  .auth-right { padding: 20px 16px; }
}

/* ===== HEADER ===== */
.site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: none;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.scrolled {
  background: rgba(2,34,50,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.site-header.scrolled-ia {
  background: rgba(255,138,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(255,138,0,0.25);
}
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s;
}
.header-logo:hover { transform: scale(1.04); }
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header-link:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.header-link-logout {
  color: rgba(255,255,255,0.55);
}
.header-link-logout:hover {
  color: #ff6b6b;
  background: rgba(255,100,100,0.1);
}
.btn-header-account {
  background: #ff9900;
  color: #fff;
  border-radius: 24px;
  padding: 9px 22px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.93rem;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 12px rgba(255,153,0,0.3);
}
.btn-header-account:hover {
  background: #e67c00;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(255,153,0,0.4);
}
/* Header on light pages (auth, profil) */
.auth-page .site-header,
.profil-page .site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.auth-page .site-header.scrolled,
.profil-page .site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.auth-page .header-link,
.profil-page .header-link {
  color: #555;
}
.auth-page .header-link:hover,
.profil-page .header-link:hover {
  background: rgba(0,0,0,0.05);
  color: #232931;
}
.auth-page .header-link-logout,
.profil-page .header-link-logout { color: #999; }
.auth-page .header-link-logout:hover,
.profil-page .header-link-logout:hover {
  color: #e53935;
  background: rgba(229,57,53,0.06);
}
@media (max-width: 700px) {
  .site-header { padding: 12px 16px; }
  .header-link span { display: none; }
  .header-nav { gap: 4px; }
  .header-link { padding: 8px 10px; font-size: 1.05rem; }
  .btn-header-account { padding: 8px 14px; font-size: 0.88rem; }
}

/* ===== PROFIL PAGE ===== */
.profil-page {
  background: #fdf6ee;
  min-height: 100vh;
  padding: 70px 24px 60px 24px;
}
.profil-top {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  gap: 32px;
  align-items: flex-start;
}
.profil-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(2,34,50,0.07);
  padding: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.profil-avatar-banner {
  background: linear-gradient(135deg, #0a1628 0%, #1a2744 100%);
  width: 100%;
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  margin-bottom: 40px;
}
.profil-avatar-letter {
  position: absolute;
  bottom: -32px;
  font-size: 2rem;
  color: #fff;
  font-weight: bold;
  background: #ff9900;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(255,153,0,0.3);
  border: 3px solid #fff;
}
.profil-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: #232931;
  margin-bottom: 4px;
}
.profil-since {
  color: #888;
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.profil-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}
.profil-stat {
  background: #fdf6ee;
  border-radius: 12px;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profil-stat-num {
  color: #ff9900;
  font-size: 1.3rem;
  font-weight: bold;
}
.profil-stat-label {
  color: #232931;
  font-size: 0.88rem;
}
.profil-btn-settings {
  background: #fff;
  color: #ff9900;
  border: 2px solid #ff9900;
  border-radius: 12px;
  padding: 10px 22px;
  font-weight: bold;
  font-size: 0.97rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}
.profil-btn-settings:hover {
  background: #ff9900;
  color: #fff;
}
.profil-ingredients {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(2,34,50,0.07);
  padding: 28px 32px;
}
.profil-section-title {
  font-family: 'Lora', serif;
  color: #232931;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0 0 18px 0;
}
.profil-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profil-tag {
  background: #ff9900;
  color: #fff;
  border-radius: 20px;
  padding: 7px 14px 7px 18px;
  font-weight: 600;
  font-size: 0.97rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.profil-tag i { font-size: 0.85rem; opacity: 0.8; }
.cave-remove-btn {
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 5px;
  border-radius: 50%;
  line-height: 1;
  transition: all 0.15s;
}
.cave-remove-btn:hover {
  background: rgba(255,255,255,0.5);
}
.cave-add-form {
  margin-bottom: 16px;
}
.cave-add-form select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #f0e6d6;
  border-radius: 12px;
  font-size: 0.97rem;
  color: #232931;
  background: #fdf6ee;
  cursor: pointer;
  transition: border-color 0.2s;
}
.cave-add-form select:focus {
  outline: none;
  border-color: #ff9900;
}
.profil-fav-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,68,68,0.85);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 0.9rem;
  z-index: 3;
  opacity: 0;
  transition: all 0.2s;
}
.profil-fav-card:hover .profil-fav-remove {
  opacity: 1;
}
.profil-fav-remove:hover {
  background: #ff2222;
  transform: scale(1.1);
}
.profil-fav-deg {
  display: block;
  font-size: 0.88rem;
  color: #ff9900;
  margin-top: 2px;
}
.profil-empty {
  color: #aaa;
  font-size: 0.97rem;
  margin: 0;
}
.profil-shopping {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(2,34,50,0.07);
  padding: 22px 18px;
  border: 1.5px solid #f0e6d6;
}
.profil-shopping-title {
  color: #232931;
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 12px 0;
}
.profil-shopping-title i { color: #ff9900; }
.profil-shopping-empty {
  color: #aaa;
  font-size: 0.95rem;
}

/* Favoris */
.profil-favoris-section {
  max-width: 1300px;
  margin: 36px auto 0 auto;
}
.profil-empty-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(2,34,50,0.07);
  padding: 40px 28px;
  text-align: center;
  color: #888;
}
.profil-favoris-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.profil-fav-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(2,34,50,0.08);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.profil-fav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 22px rgba(255,153,0,0.18);
}
.profil-fav-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.profil-fav-img {
  height: 160px;
  background: #f0f0f0;
  overflow: hidden;
}
.profil-fav-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profil-fav-info {
  padding: 14px 16px;
}
.profil-fav-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #232931;
}

/* Profil responsive */
@media (max-width: 1024px) {
  .profil-top {
    grid-template-columns: 1fr 1fr;
  }
  .profil-shopping {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  .profil-top {
    grid-template-columns: 1fr;
  }
  .profil-page { padding: 16px 10px 40px 10px; }
  .profil-ingredients { padding: 20px 18px; }
}