/* =====================================================
   NEOpromos — Design beige clair / classy
   ===================================================== */

:root {
  --beige: #F7F3EB;
  --beige-2: #EFE9DF;
  --beige-3: #E5DCCE;
  --cream: #FBF8F2;
  --charcoal: #2C2C2C;
  --muted: #6B6560;
  --gold: #B89B6C;
  --gold-soft: #D4C3A3;
  --line: #E4DCD0;
  --white: #FFFEFB;
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", var(--font);
  --shadow: 0 8px 28px rgba(44, 44, 44, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.55;
  position: relative;
}

/* Fond sable */
.bg-screen {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: transparent url('/static/img/fond-sable-coquillages.jpg') center center / cover no-repeat fixed;
  opacity: 0.38;
}
.noise { display: none; }

main, .foot, .flashes {
  position: relative;
  z-index: 1;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ========== HEADER ========== */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.75rem;
  background: rgba(247, 243, 235, 0.98);
  border-bottom: 1px solid var(--line);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

.top-brand-block {
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  line-height: 1;
}

.brand-logo {
  height: 58px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.brand-mark, .brand-rest, .market-name-nav { display: none !important; }

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.top-nav a {
  color: var(--charcoal);
  font-size: 0.92rem;
  text-decoration: none;
}

.top-nav a:hover { color: var(--gold); }

/* ========== BOUTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  text-decoration: none !important;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover {
  background: #a68a5c;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal) !important;
  border: 1px solid var(--beige-3);
}

.btn-ghost:hover {
  background: var(--beige) !important;
  color: var(--gold) !important;
  border-color: var(--gold-soft);
}

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.88rem; }
.btn-lg { padding: 0.8rem 1.5rem; font-size: 1.05rem; }

/* ========== LAUNCH BANNER ========== */

/* ========== HERO ========== */


.hero-eyebrow, .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
  color: var(--charcoal);
}

.accent { color: var(--gold); }



.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.6rem;
}

.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--charcoal);
}

.stat-label { color: var(--muted); font-size: 0.85rem; }

/* ========== GRILLE PROMOS ========== */
.grid-promos {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.4rem !important;
  max-width: 1140px !important;
  width: 100% !important;
  margin: 1.75rem auto 2.5rem !important;
  padding: 0 1.5rem !important;
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .grid-promos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
  .grid-promos { grid-template-columns: 1fr !important; }
}

/* ========== CARTES ========== */
.card-promo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}

.card-promo:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(44, 44, 44, 0.1);
}

.card-media {
  display: block;
  position: relative;
  background: var(--beige-2);
  min-height: 160px;
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-media-placeholder {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold-soft);
  background: repeating-linear-gradient(
    45deg,
    var(--beige),
    var(--beige) 10px,
    var(--beige-2) 10px,
    var(--beige-2) 20px
  );
}

.price-stack {
  position: absolute;
  bottom: 10px;
  right: 10px;
  text-align: right;
  background: rgba(255,255,255,0.92);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
}

.price-was {
  display: block;
  font-size: 0.78rem;
  text-decoration: line-through;
  color: var(--muted);
}

.price-now {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
}

.card-body {
  padding: 1.1rem 1.15rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.tag {
  font-size: 0.72rem;
  background: var(--beige);
  color: var(--muted);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.place { font-size: 0.8rem; color: var(--muted); }

.card-promo h2 {
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.card-promo h2 a {
  color: var(--charcoal);
  text-decoration: none;
}

.card-promo h2 a:hover { color: var(--gold); }

.commerce-name {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

/* Placeholders */
.card-placeholder {
  border: 2px dashed var(--beige-3);
  background: var(--cream);
}

.card-placeholder .card-body {
  text-align: center;
}

.card-placeholder h2 a {
  color: var(--charcoal);
}

/* ========== EMPTY + CTA ========== */
.empty {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 500px;
  margin: 2rem auto;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1140px;
  margin: 0 auto 3rem;
  padding: 1.75rem 2rem;
  background: rgba(247, 243, 235, 0.95);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.cta-band h2 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  color: var(--charcoal);
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

/* ========== FOOTER ========== */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.4rem 1.75rem;
  background: var(--beige);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover { color: var(--gold); }

.foot-links {
  display: flex;
  gap: 1.25rem;
}

/* ========== FLASHES ========== */
.flashes { padding: 0.75rem 1.5rem; }
.flash {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}
.flash-success { background: #e8f5e9; color: #2e7d32; }
.flash-error, .flash-danger { background: #fce8e6; color: #c62828; }
.flash-info { background: #e3f2fd; color: #1565c0; }

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
  .top { padding: 0.75rem 1rem; }
  .brand-logo { height: 46px; }
  
  .cta-band { margin: 0 1rem 2rem; padding: 1.4rem 1.25rem; }
  .foot { flex-direction: column; text-align: center; }
}




/* Restaurer une bonne taille de carte */
.card-promo {
  min-width: 0;
}
.card-media img {
  height: 200px !important;
  object-fit: cover;
}
.card-media-placeholder {
  min-height: 200px !important;
}


/* Force phrase sur une seule ligne */



/* Taille cartes correcte */
.card-media img,
.card-media-placeholder {
  height: 200px !important;
  min-height: 200px !important;
}





/* ===== HERO FINAL PROPRE ===== */
.hero {
  max-width: 1140px !important;
  width: 100% !important;
  margin: 1.75rem auto 0 !important;
  padding: 2.4rem 2rem 2rem !important;
  text-align: center;
  background: rgba(251, 248, 242, 0.94);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(44, 44, 44, 0.07);
  box-sizing: border-box;
}

.hero-lead {
  color: #6B6560 !important;
  font-size: 1.08rem !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0.8rem auto 0 !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  word-break: normal !important;
  hyphens: none !important;
}


/* Alignement strict hero = grille */
.hero,
.grid-promos {
  max-width: 1100px !important;
  width: calc(100% - 3rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.hero {
  margin-top: 1.75rem !important;
  padding: 2.2rem 2rem !important;
}

.grid-promos {
  margin-top: 1.5rem !important;
  margin-bottom: 2.5rem !important;
  padding: 0 !important;
}

/* ===== PAGE AUTH / LOGIN ===== */
.page-auth main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 180px);
}

.auth-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.5rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(251, 248, 242, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem 2rem 2rem;
  box-shadow: 0 12px 40px rgba(44, 44, 44, 0.08);
  text-align: left;
}

.auth-card h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.auth-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  padding: 0.75rem 1rem;
  border: 1px solid var(--beige-3);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--charcoal);
  transition: border-color 0.15s;
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 155, 108, 0.2);
}

.auth-form .btn {
  margin-top: 0.35rem;
  width: 100%;
}

.auth-hint {
  margin: 1.4rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.auth-hint a {
  color: var(--gold);
  font-weight: 500;
}

.auth-contact {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-contact p {
  margin: 0 0 0.6rem;
}

.auth-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.auth-contact-links a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.88rem;
}

.auth-contact-links a:hover {
  color: var(--gold);
}


/* Message succès login */
.page-auth .flashes {
  width: 100%;
  max-width: 520px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
}

.page-auth .flash-success {
  background: rgba(251, 248, 242, 0.97);
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 8px 28px rgba(44, 44, 44, 0.07);
  color: var(--charcoal);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
}

.page-auth .flash-success .flash-sub {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}


/* Flash ok (catégorie utilisée par le login) */
.page-auth .flash-ok {
  background: rgba(251, 248, 242, 0.97);
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 8px 28px rgba(44, 44, 44, 0.07);
  color: var(--charcoal);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.page-auth .flash-ok .flash-sub {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.page-auth .flashes {
  width: 100%;
  max-width: 520px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}


/* ===== DASHBOARD COMMERÇANT ===== */
.page-merchant main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.merchant-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  padding: 1.5rem 1.75rem;
  background: rgba(251, 248, 242, 0.95);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(44, 44, 44, 0.06);
}

.merchant-head h1 {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.merchant-head .eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.merchant-head .muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.lead-slots {
  margin: 1.25rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.slot-card {
  background: rgba(251, 248, 242, 0.97);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(44, 44, 44, 0.05);
}

.slot-card.slot-current {
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 2px rgba(184, 155, 108, 0.2);
}

.slot-card header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.slot-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.slot-dates {
  font-size: 0.8rem;
  color: var(--muted);
}

.slot-card h3 {
  margin: 0.3rem 0 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--charcoal);
}

.slot-card .price-stack.inline {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.slot-card .price-was {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: var(--muted);
}

.slot-card .price-now {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1rem;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  width: fit-content;
}

.badge-published { background: #e8f5e9; color: #2e7d32; }
.badge-scheduled { background: #e3f2fd; color: #1565c0; }
.badge-pending_moderation { background: #fff8e1; color: #f57f17; }
.badge-rejected { background: #fce8e6; color: #c62828; }
.badge-draft, .badge-hidden { background: var(--beige-2); color: var(--muted); }

.reject-note {
  font-size: 0.85rem;
  color: #c62828;
  margin: 0;
}

.slot-card .muted.small {
  font-size: 0.82rem;
  margin: 0;
}

.slot-thumb img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 0.3rem;
}

.empty-slot {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.6rem;
}

.btn-dup {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--beige-3);
  background: #fff;
  color: var(--charcoal);
  cursor: pointer;
}

.btn-dup:hover {
  border-color: var(--gold-soft);
  color: var(--gold);
}

.panel {
  background: rgba(251, 248, 242, 0.95);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--charcoal);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th, .table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}


/* Prix visibles sur le dashboard commerçant */
.slot-card .price-stack,
.slot-card .price-stack.inline {
  position: static !important;
  display: flex !important;
  align-items: baseline;
  gap: 0.5rem;
  background: transparent !important;
  padding: 0 !important;
  margin: 0.25rem 0 0.15rem !important;
  text-align: left !important;
  bottom: auto !important;
  right: auto !important;
}

.slot-card .price-was {
  font-size: 0.85rem !important;
  text-decoration: line-through;
  color: var(--muted) !important;
  display: inline !important;
}

.slot-card .price-now {
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  color: var(--gold) !important;
  display: inline !important;
}


/* ===== PAGE DÉTAIL PROMO ===== */
.detail {
  max-width: 1100px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
}

.detail .back {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.detail .back:hover {
  color: var(--gold);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
  background: rgba(251, 248, 242, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 10px 36px rgba(44, 44, 44, 0.07);
}

.detail-media {
  border-radius: 14px;
  overflow: hidden;
  background: var(--beige-2);
}

.detail-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.detail-body {
  padding: 0.5rem 0.25rem;
}

.detail-body .tag {
  margin-bottom: 0.75rem;
}

.detail-body h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.commerce-name.big {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.price-stack.large {
  position: static !important;
  display: flex !important;
  align-items: baseline;
  gap: 0.75rem;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 1.25rem !important;
}

.price-stack.large .price-was {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: var(--muted);
}

.price-stack.large .price-now {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
}

.detail-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.detail-facts li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--charcoal);
}

.detail-facts li strong {
  display: inline-block;
  min-width: 5rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.detail-facts a {
  color: var(--gold);
}

.detail-desc-full {
  margin-top: 1.5rem;
  padding: 1.4rem 1.5rem;
  background: rgba(251, 248, 242, 0.95);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.detail-desc {
  margin: 0;
  color: var(--charcoal);
  line-height: 1.65;
  font-size: 1rem;
  white-space: pre-wrap;
}

@media (max-width: 800px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.1rem;
  }
}


/* ===== FORMULAIRE PROMO ===== */
.form-wrap {
  max-width: 640px;
  margin: 1.75rem auto 3rem;
  padding: 0 1.5rem;
}

.form-wrap .back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.form-wrap .back:hover { color: var(--gold); }

.form-wrap h1 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.form-wrap > .muted {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.promo-form {
  background: rgba(251, 248, 242, 0.97);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem 1.6rem 1.6rem;
  box-shadow: 0 10px 36px rgba(44, 44, 44, 0.07);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.promo-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
}

.promo-form input[type="text"],
.promo-form input[type="number"],
.promo-form input:not([type="file"]):not([type="hidden"]):not([type="submit"]),
.promo-form textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--beige-3);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--charcoal);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.promo-form input:focus,
.promo-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 155, 108, 0.2);
}

.promo-form textarea {
  resize: vertical;
  min-height: 90px;
}

.promo-form input[type="file"] {
  font-size: 0.9rem;
  color: var(--muted);
}

.promo-form .hint {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

.promo-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.thumb-preview {
  margin-top: 0.5rem;
}

.thumb-preview img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.btn-danger {
  background: transparent;
  color: #c62828 !important;
  border: 1px solid #e57373;
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger:hover {
  background: #fce8e6;
}

.flash-warn {
  background: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffe082;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
}

@media (max-width: 560px) {
  .promo-form .row-2 {
    grid-template-columns: 1fr;
  }
}

/* === FIX mobile grid (override late 3-col rule) === */
@media (max-width: 960px) {
  .grid-promos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
  .grid-promos { grid-template-columns: 1fr !important; }
}


/* === HEADER FIXED (final) === */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

.top {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  z-index: 1000 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.4rem !important;
  padding: 0.55rem 0.75rem !important;
  margin: 0 !important;
  background: rgba(247, 243, 235, 0.98) !important;
  border-bottom: 1px solid var(--line) !important;
  overflow: hidden !important;
}

.top-brand-block {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 130px) !important;
  overflow: hidden !important;
}

.brand {
  display: block !important;
  max-width: 100% !important;
  padding-top: 0 !important;
}

.brand-logo {
  display: block !important;
  height: 46px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.top-nav {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.35rem !important;
  max-width: 130px !important;
}

.top-nav a.btn.btn-ghost {
  display: inline-flex !important;
  visibility: visible !important;
  white-space: nowrap !important;
  font-size: 0.68rem !important;
  padding: 0.3rem 0.5rem !important;
  line-height: 1.15 !important;
}

.top-nav a.btn.btn-ghost[target="_blank"] {
  display: none !important;
}

main, .flashes {
  padding-top: 64px !important;
}
main {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

@media (min-width: 601px) {
  .brand-logo {
    height: 58px !important;
  }
  .top-brand-block {
    max-width: none !important;
  }
  .top-nav {
    max-width: none !important;
  }
  .top-nav a.btn.btn-ghost {
    font-size: 0.85rem !important;
    padding: 0.45rem 0.85rem !important;
  }
  .top-nav a.btn.btn-ghost[target="_blank"] {
    display: inline-flex !important;
  }
  main, .flashes {
    padding-top: 76px !important;
  }
}

/* ========== AUTH: sélecteur Particulier / Professionnel ========== */
.auth-form input[type="text"],
.auth-form input[type="tel"],
.auth-form select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--beige-3);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--charcoal);
  transition: border-color 0.15s;
}
.auth-form input[type="text"]:focus,
.auth-form input[type="tel"]:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 155, 108, 0.2);
}
.auth-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6560' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
.auth-form textarea,
.auth-form input[type="url"],
.auth-form input[type="time"] {
  padding: 0.75rem 1rem;
  border: 1px solid var(--beige-3);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--charcoal);
  transition: border-color 0.15s;
  width: 100%;
}
.auth-form input[type="time"] {
  width: auto;
  padding: 0.5rem 0.75rem;
}
.auth-form textarea:focus,
.auth-form input[type="url"]:focus,
.auth-form input[type="time"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 155, 108, 0.2);
}
input[type="file"] {
  font: inherit;
  font-size: .9rem;
  color: var(--charcoal);
}
input[type="file"]::file-selector-button {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  margin-right: .75rem;
  transition: background 0.15s;
}
input[type="file"]::file-selector-button:hover {
  background: #a68a5c;
}
.panel-opacity-70 {
  background: rgba(255, 255, 255, 0.7) !important;
}
@media (max-width: 640px) {
  .auth-form { max-width: 100% !important; }
  .horaires-row { flex-wrap: wrap; }
}

.auth-type-toggle {
  display: flex;
  gap: 0.4rem;
  background: var(--beige);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem;
  margin-bottom: 1.5rem;
}
.auth-type-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.auth-type-btn:hover {
  color: var(--charcoal);
}
.auth-type-btn.is-active {
  background: var(--gold);
  color: #fff;
}

.auth-panel[hidden] {
  display: none;
}

.auth-photo-note {
  margin: -0.3rem 0 0.2rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}

.cf-turnstile {
  display: flex;
  justify-content: center;
}

/* UNIQUEMENT le bouton header Poster une promo */
header a.btn-poster-promo,
.top-nav a.btn-poster-promo,
a.btn.btn-poster-promo {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  background: #B89B6C !important;
  background-color: #B89B6C !important;
  color: #ffffff !important;
  border: 1px solid #B89B6C !important;
  box-shadow: none !important;
}
header a.btn-poster-promo:hover,
header a.btn-poster-promo:visited,
header a.btn-poster-promo:active,
.top-nav a.btn-poster-promo:hover,
.top-nav a.btn-poster-promo:visited,
.top-nav a.btn-poster-promo:active {
  background: #B89B6C !important;
  color: #ffffff !important;
  border-color: #B89B6C !important;
}
@media (max-width: 600px) {
  header a.btn-poster-promo,
  .top-nav a.btn-poster-promo,
  a.btn.btn-poster-promo {
    font-size: 0.72rem !important;
    padding: 0.28rem 0.62rem !important;
    line-height: 1.1 !important;
    max-width: 42vw;
  }
}
@media (min-width: 601px) {
  header a.btn-poster-promo,
  .top-nav a.btn-poster-promo {
    font-size: 0.85rem !important;
    padding: 0.45rem 0.85rem !important;
  }
}
@media (max-width: 600px) {
  .hero-lead {
    white-space: normal !important;
    overflow: visible !important;
  }
}

/* Quand un message flash est présent, main suit .flashes (déjà compensé pour le header fixe) */
.flashes + main {
  padding-top: 0 !important;
}


/* AUTH INPUTS FINAL OVERRIDE */
.page-auth .auth-form input[type="email"],
.page-auth .auth-form input[type="password"],
.page-auth .auth-form input[type="text"],
.page-auth .auth-form input[type="tel"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    padding: 0.85rem 1rem;
    margin-top: 0.45rem;
    border: 1px solid #ddd1bf;
    border-radius: 11px;
    background: #fff;
    font: inherit;
    font-size: 1rem;
    line-height: 1.3;
    color: #2d2d2d;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.page-auth .auth-form input[type="email"]:focus,
.page-auth .auth-form input[type="password"]:focus,
.page-auth .auth-form input[type="text"]:focus,
.page-auth .auth-form input[type="tel"]:focus {
    border-color: #bf9c67;
    box-shadow: 0 0 0 3px rgba(191, 156, 103, 0.14);
}

.page-auth .auth-form input[type="checkbox"] {
    width: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
    appearance: auto;
    -webkit-appearance: auto;
}
