@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #f4f7fb;
  --bg-soft: #ffffff;
  --bg-soft-2: #eef2ff;
  --text: #101828;
  --text-soft: #475467;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 22px 48px rgba(59, 130, 246, 0.18);
  --primary: #3b82f6;
  --primary-2: #6366f1;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --input-bg: #ffffff;
  --input-border: rgba(15, 23, 42, 0.12);
}

html.dark {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --bg-soft-2: #172033;
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 16px 40px rgba(2, 6, 23, 0.45);
  --shadow-hover: 0 22px 48px rgba(99, 102, 241, 0.22);
  --input-bg: #0f172a;
  --input-border: rgba(148, 163, 184, 0.25);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent 30%), var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.page-enter { opacity: 0; transform: translateY(10px); }
body.page-ready {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.24s ease, transform 0.24s ease, background-color 0.3s ease, color 0.3s ease;
}
body.page-leave {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, background-color 0.3s ease, color 0.3s ease;
}

.page-shell { min-height: 100vh; }
.page-content { width: 100%; flex: 1; }

.site-header {
  width: min(1240px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 0 rgba(59, 130, 246, 0.0);
  }
  50% {
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
  }
  100% {
    box-shadow: 0 0 0 rgba(59, 130, 246, 0.0);
  }
}

#checkoutStatus:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, color 0.3s ease;
}
.logo:hover { transform: translateY(-1px); }
.logo span { color: var(--primary); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.main-nav a, .admin-btn { text-decoration: none; }

.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.24);
  outline: none;
}

.nav-discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 16px;
  min-height: auto;

  border-radius: 999px;
  border: none;

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;

  color: var(--text);
  background: transparent;

  cursor: pointer;

  transition: transform 0.2s ease,
              background-color 0.25s ease,
              box-shadow 0.25s ease,
              color 0.25s ease;
}

.nav-discord-btn:hover,
.nav-discord-btn:focus-visible {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.24);
  transform: scale(1.05);
  outline: none;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.profile-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.profile-chip-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(99, 102, 241, 0.24);
}

.btn, .admin-btn, .file-trigger, .mod-action-btn, .purchase-btn, .download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.24);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.btn::after, .admin-btn::after, .file-trigger::after, .mod-action-btn::after, .purchase-btn::after, .download-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-140%);
}
.btn:hover::after, .admin-btn:hover::after, .file-trigger:hover::after, .mod-action-btn:hover::after, .purchase-btn:hover::after, .download-btn:hover::after {
  animation: shine 0.7s ease forwards;
}

@keyframes shine { to { transform: translateX(140%); } }

.btn:hover, .admin-btn:hover, .file-trigger:hover, .mod-action-btn:hover, .purchase-btn:hover, .download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(99, 102, 241, 0.26);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--input-border);
  box-shadow: none;
}

.danger-btn { background: linear-gradient(135deg, #ef4444, #f97316); box-shadow: 0 10px 24px rgba(239, 68, 68, 0.22); }
.purchase-btn { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 10px 24px rgba(249, 115, 22, 0.2); }
.download-btn { background: linear-gradient(135deg, #10b981, #14b8a6); box-shadow: 0 10px 24px rgba(16, 185, 129, 0.2); text-decoration: none; }
.full-width { width: 100%; }

.hero, .mods, .admin-layout, .login-shell, .profile-layout, .auth-grid, .verify-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
}

.admin-layout-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  padding-bottom: 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: center;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  padding-bottom: 32px;
}

.hero-left { padding: 18px 0; }

.badge, .badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.22);
}

.modal-badge-center { display: flex; margin: 0 auto; }
.badge-new { animation: badgePulse 1.6s ease-in-out infinite; }

@keyframes badgePulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.03); }
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p, .auth-subtext, .mod-description, .file-status, .empty-state, .modal-text, .purchase-label, .mod-price {
  color: var(--text-soft);
}

.latest-mod-wrapper { min-height: 340px; display: flex; align-items: stretch; }

.mod-card, .login-card, .admin-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.mod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.smooth-card { animation: fadeUp 0.45s ease both; }

.mod-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
}

.mod-card-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 14px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(59,130,246,0.08));
}

.image-slider { position: relative; }
.slider-image, .single-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slider-image { opacity: 0; transition: opacity 0.7s ease-in-out; pointer-events: none; }
.slider-image.active { opacity: 1; z-index: 2; }

.mod-card-content h3, .mod-card-content h4 { margin: 0 0 8px; font-size: 1.1rem; }
.mod-description { margin: 0 0 14px; line-height: 1.6; font-size: 0.92rem; }
.mod-price { display: inline-block; margin-bottom: 14px; font-size: 0.94rem; font-weight: 700; }
.mod-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.latest-mod-card {
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.latest-mod-card .badge-new { position: static; margin-bottom: 2px; }
.latest-mod-card .mod-card-content { display: flex; flex-direction: column; gap: 10px; }
.latest-mod-card .mod-card-content h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.latest-mod-card .mod-description { margin: 0; }
.latest-mod-card .mod-card-image-wrap { margin-top: 0; }

.profile-layout { width: min(860px, calc(100% - 32px)); margin: 28px auto 0; padding-bottom: 20px; }
.admin-card { padding: 24px; min-width: 0; }
.card-head { margin-bottom: 18px; }
.card-head h2 { margin: 12px 0 0; font-size: 1.6rem; }

.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group label { font-size: 0.88rem; font-weight: 700; color: var(--text); }

input, textarea, select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}
textarea { min-height: 120px; resize: vertical; }

.mods { padding-bottom: 20px; }
.section-head { margin-bottom: 18px; }
.mods-title { margin: 14px 0 0; font-size: 2.2rem; letter-spacing: -0.03em; }
.search-wrap { margin-bottom: 20px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.file-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-status { font-size: 0.88rem; word-break: break-word; }

.preview-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preview-item {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-soft-2);
  aspect-ratio: 1 / 1;
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }

.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-actions-center { justify-content: center; }
.profile-avatar-block { display: flex; justify-content: center; margin-bottom: 8px; }
.profile-page-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(99, 102, 241, 0.22);
  box-shadow: var(--shadow);
}

/* MOBILE UNIQUEMENT */
@media (max-width: 600px) {
  .profile-page-avatar {
    width: 90px;
    height: 90px;
  }
}
.empty-state { margin-top: 14px; text-align: center; padding: 16px; }
.hidden { display: none !important; }

.toast-container {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

#themeToggle {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  z-index: 9999;
}
#themeToggle:hover { transform: translateY(-3px) rotate(8deg); }

footer {
  margin-top: auto;
  text-align: center;
  padding: 26px 16px 24px;
  color: var(--text-soft);
}

.reveal-card { animation: fadeUp 0.45s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MODALS */
.modal { position: fixed; inset: 0; z-index: 9998; }
.modal.hidden { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(4px);
}
.modal-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}
.modal-panel {
  position: relative;
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 26px;
  padding: 28px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.modal-panel-standard { max-width: 560px; }
.modal-panel h2 { margin: 16px 0 10px; font-size: 1.7rem; text-align: center; }
.modal-text { text-align: center; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg-soft-2);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}
.purchase-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  margin: 18px 0;
}
.purchase-label { display: block; margin-bottom: 6px; font-size: 0.85rem; }
#paypal-button-container { margin-top: 16px; min-height: 48px; }

.file-trigger {
  background: var(--bg-soft-2);
  color: var(--text);
  border: 1px solid var(--input-border);
  box-shadow: none;
}
.file-trigger:hover { color: var(--text); box-shadow: var(--shadow); }
.file-trigger::after { background: linear-gradient(110deg, transparent 20%, rgba(99, 102, 241, 0.14) 50%, transparent 80%); }

.checkout-layout { width: min(760px, calc(100% - 32px)); margin: 28px auto 0; padding-bottom: 24px; }
.checkout-card { padding: 24px; }
.checkout-image-wrap {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  aspect-ratio: 16 / 9;
}
.checkout-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.checkout-image-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(59,130,246,0.08)); }
.checkout-price-box {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
}
.checkout-price-box strong { font-size: 1.5rem; }
.checkout-paypal-box {
  margin-top: 18px;
  padding: 12px;
  border-radius: 18px;
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  overflow: hidden;
}

#paypal-button-container,
#paypal-button-container > div,
#paypal-button-container iframe {
  border-radius: 14px;
}

html.dark .checkout-paypal-box,
html.dark #paypal-button-container,
html.dark #paypal-button-container > div {
  background: #0f172a !important;
}

html.dark #paypal-button-container {
  padding: 0;
}
.checkout-download-wrap { margin-top: 14px; width: 100%; }
.checkout-download-wrap .download-btn, .checkout-download-wrap .purchase-btn {
  width: 100%;
  min-height: 62px;
  border-radius: 18px;
  font-size: 1rem;
  justify-content: center;
  text-align: center;
}

.field-help { color: var(--text-soft); font-size: 0.84rem; line-height: 1.4; }

@media (max-width: 1100px) {
  .hero, .auth-grid, .admin-layout-wide { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .preview-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav, .header-user { flex-wrap: wrap; justify-content: center; }
  .purchase-summary { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .modal-shell { padding: 14px; }
  .modal-panel { padding: 22px 18px; max-height: calc(100vh - 28px); }
}

.checkout-status {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--input-border);
  background: rgba(15, 23, 42, 0.45);
  color: var(--text);
  font-weight: 600;
}

.checkout-status.pending {
  border-color: rgba(245, 158, 11, 0.35);
}

.checkout-status.success {
  border-color: rgba(16, 185, 129, 0.35);
}

.checkout-status.error {
  border-color: rgba(239, 68, 68, 0.35);
}


/* PayPal dark mode fix */
.checkout-paypal-box {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 18px;
}
html.dark .checkout-paypal-box,
:root.dark .checkout-paypal-box,
.dark .checkout-paypal-box {
  background: transparent !important;
}
#paypal-button-container > div {
  background: transparent !important;
}
#paypal-button-container iframe {
  border-radius: 16px !important;
}
.checkout-card {
  overflow: hidden;
}
.checkout-status {
  min-height: 24px;
}
/* ===== ADMIN : blocs séparés ===== */
.admin-layout-split {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  padding-bottom: 24px;
}

.admin-stack {
  display: grid;
  gap: 22px;
}

.admin-section-text {
  margin: 0 0 16px;
  color: var(--text-soft);
  line-height: 1.6;
}

.selected-user-summary {
  margin: 10px 0 18px;
}

.selected-user-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.selected-user-card strong {
  font-size: 1rem;
}

.selected-user-card p,
.selected-user-card span {
  margin: 0;
  color: var(--text-soft);
}

.owned-mods-list,
.access-mods-list {
  display: grid;
  gap: 12px;
}

.access-mod-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
}

.access-mod-item p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.access-mod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.small-btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.owned-mod-chip {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  font-weight: 600;
}

/* ===== CHECKOUT : 3 moyens de paiement ===== */
.payment-methods-wrap {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.payment-method-card {
  padding: 16px;
  border-radius: 20px;
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  overflow: hidden;
}

.payment-method-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.payment-method-head h3 {
  margin: 0;
  font-size: 1rem;
}

#paypal-button-container,
#card-button-container,
#bancontact-button-container {
  min-height: 48px;
}

#paypal-button-container > div,
#card-button-container > div,
#bancontact-button-container > div,
#paypal-button-container iframe,
#card-button-container iframe,
#bancontact-button-container iframe {
  border-radius: 16px !important;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .admin-layout-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .access-mod-item {
    grid-template-columns: 1fr;
  }

  .access-mod-actions {
    justify-content: flex-start;
  }

  .payment-method-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ===== AUTH / LOGIN FIX ===== */
.login-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-logo {
  display: inline-block;
  margin-bottom: 6px;
  text-decoration: none;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

@media (max-width: 760px) {
  .auth-grid { grid-template-columns: 1fr; }
  .login-card { padding: 22px 18px; }
}


/* Correctif page profil */
.profile-layout .upload-form .field-group { margin-bottom: 18px; }
.profile-layout .upload-form .field-group label { display: inline-block; margin-bottom: 8px; }
.profile-layout .upload-form .file-row { margin-top: 8px; }
.profile-layout .form-actions { margin-top: 26px; }
.field-group-separated { margin-top: 28px; margin-bottom: 0; }
.section-label { font-size: 1.05rem; font-weight: 800; color: var(--text); }


/* Correctif final bouton photo profil */
.profile-layout .profile-file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.profile-layout .profile-file-trigger {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 22px;
  white-space: nowrap;
}

.profile-layout .profile-file-status {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  line-height: 1.4;
  color: var(--text-soft);
}

.profile-layout #profileAvatar[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .profile-layout .profile-file-row {
    align-items: flex-start;
    gap: 10px;
  }

  .profile-layout .profile-file-status {
    min-height: auto;
  }
}
