/* =====================================================================
   LOOP & SHOP — Design System
   Palette issue du logo : or neon (#F9C846) sur bleu nuit (#0B1B3A)
   ===================================================================== */

/* ------------------------------ Tokens ------------------------------ */
:root {
  /* Marque */
  --brand:          #F9C846;
  --brand-600:      #EDB72C;
  --brand-700:      #D9A118;
  --brand-soft:     #FFF6DE;
  --brand-glow:     rgba(249, 200, 70, .45);

  /* Encre / fonds sombres */
  --ink:            #0B1B3A;
  --ink-700:        #12294F;
  --ink-600:        #1B3766;
  --ink-500:        #2B4A80;

  /* Neutres */
  --white:          #FFFFFF;
  --paper:          #FBFBFC;
  --surface:        #FFFFFF;
  --surface-2:      #F5F6F9;
  --surface-3:      #EDEFF4;
  --line:           #E4E7EE;
  --line-strong:    #D2D7E2;

  /* Texte */
  --text:           #0F172A;
  --text-2:         #475069;
  --text-3:         #7A849B;
  --text-inv:       #FFFFFF;

  /* Etats */
  --success:        #12A150;
  --success-soft:   #E6F7EE;
  --danger:         #E5484D;
  --danger-soft:    #FDECEC;
  --warning:        #F0A202;
  --warning-soft:   #FEF4E0;
  --info:           #2F6FED;
  --info-soft:      #EAF1FE;
  --whatsapp:       #25D366;

  /* Rayons */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Ombres */
  --sh-xs: 0 1px 2px rgba(11, 27, 58, .06);
  --sh-sm: 0 2px 8px rgba(11, 27, 58, .06);
  --sh:    0 8px 24px rgba(11, 27, 58, .08);
  --sh-lg: 0 18px 48px rgba(11, 27, 58, .12);
  --sh-gold: 0 10px 30px rgba(249, 200, 70, .35);

  /* Typo */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1320px;
  --gutter: 24px;
  --header-h: 84px;

  /* Transitions */
  --t-fast: .16s cubic-bezier(.4, 0, .2, 1);
  --t:      .28s cubic-bezier(.4, 0, .2, 1);
  --t-slow: .5s cubic-bezier(.16, 1, .3, 1);
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.022em;
  color: var(--ink);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-700); }

img, svg, video { max-width: 100%; height: auto; display: block; }

/* Les icones restent en ligne avec le texte qui les accompagne */
svg.icon {
  display: inline-block;
  vertical-align: -0.16em;
  flex-shrink: 0;
}
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--brand); color: var(--ink); }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid var(--surface-2); }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ------------------------------ Layout ------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1560px; }

.section { padding-block: clamp(48px, 6vw, 92px); }
.section--sm { padding-block: clamp(32px, 4vw, 56px); }
.section--soft { background: var(--surface-2); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.85); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0 !important; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.hidden { display: none !important; }

/* --------------------------- Section head --------------------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 10px;
}
.section-head__eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.section-head--center .section-head__eyebrow::before { display: none; }
.section-head__title { margin: 0; }
.section-head__sub { color: var(--text-2); margin: 6px 0 0; max-width: 62ch; }
.section-head__link {
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t-fast), gap var(--t-fast);
}
.section-head__link:hover { border-color: var(--brand); gap: 11px; color: var(--ink); }

/* ------------------------------ Boutons ------------------------------ */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  font-family: var(--font-heading);
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-disabled { opacity: .5; pointer-events: none; }

.btn--primary { --btn-bg: var(--brand); --btn-fg: var(--ink); box-shadow: 0 4px 14px rgba(249,200,70,.32); }
.btn--primary:hover { --btn-bg: var(--brand-600); box-shadow: var(--sh-gold); }

.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: var(--ink-700); box-shadow: 0 12px 28px rgba(11,27,58,.28); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--outline:hover { --btn-bd: var(--ink); --btn-bg: var(--ink); --btn-fg: #fff; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent; }
.btn--ghost:hover { --btn-bg: var(--surface-2); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: var(--brand); }

.btn--wa { --btn-bg: var(--whatsapp); --btn-fg: #fff; box-shadow: 0 4px 14px rgba(37,211,102,.3); }
.btn--wa:hover { --btn-bg: #1fb855; box-shadow: 0 12px 28px rgba(37,211,102,.4); }

.btn--danger { --btn-bg: var(--danger); --btn-fg: #fff; }

.btn--sm { padding: 9px 18px; font-size: .84rem; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: 44px; height: 44px; border-radius: 50%; }

.btn__spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.btn.is-loading .btn__spinner { display: block; }
.btn.is-loading { pointer-events: none; opacity: .8; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ Badges ------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--text-2);
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--sale     { background: var(--danger); color: #fff; }
.badge--new      { background: var(--ink); color: var(--brand); }
.badge--hot      { background: linear-gradient(120deg, #FF6B35, #F7931E); color: #fff; }
.badge--gold     { background: var(--brand); color: var(--ink); }
.badge--success  { background: var(--success-soft); color: var(--success); }
.badge--danger   { background: var(--danger-soft); color: var(--danger); }
.badge--warning  { background: var(--warning-soft); color: #9a6700; }
.badge--info     { background: var(--info-soft); color: var(--info); }
.badge--muted    { background: var(--surface-3); color: var(--text-3); }
.badge--primary  { background: var(--brand-soft); color: var(--brand-700); }
.badge--out      { background: rgba(15,23,42,.72); color: #fff; }

/* ------------------------------ Cartes ------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
}
.card__body { padding: 24px; }
.card__head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card__title { margin: 0; font-size: 1.02rem; font-weight: 800; }

/* ============================ FORMULAIRES ============================ */
.field { margin-bottom: 18px; }
.field__label {
  display: block;
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.field__label .req { color: var(--danger); }
.field__hint { font-size: .78rem; color: var(--text-3); margin-top: 6px; }
.field__error { font-size: .78rem; color: var(--danger); margin-top: 6px; font-weight: 600; }

.input, .select, .textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: .94rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249,200,70,.18);
}
.input.is-error, .select.is-error, .textarea.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(229,72,77,.12);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237A849B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
  cursor: pointer;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1.5;
  user-select: none;
}
.check input[type="checkbox"], .check input[type="radio"] {
  width: 20px; height: 20px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Input groupe (coupon, newsletter) */
.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; }

/* ------------------------------ Alertes ------------------------------ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert--success { background: var(--success-soft); color: #0a7a3c; border-color: rgba(18,161,80,.2); }
.alert--error   { background: var(--danger-soft);  color: #b3373b; border-color: rgba(229,72,77,.2); }
.alert--warning { background: var(--warning-soft); color: #8a5d00; border-color: rgba(240,162,2,.25); }
.alert--info    { background: var(--info-soft);    color: #1e4fb8; border-color: rgba(47,111,237,.2); }

/* ------------------------------ Etoiles ------------------------------ */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star {
  width: 14px; height: 14px;
  display: inline-block;
  background: var(--line-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.star.is-full { background: var(--brand); }
.star.is-half { background: linear-gradient(90deg, var(--brand) 50%, var(--line-strong) 50%); }

/* =========================== FIL D'ARIANE =========================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: var(--text-3);
  padding: 18px 0;
  list-style: none;
  margin: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 7px; }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--line-strong); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ============================= PAGINATION ============================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: .9rem;
  background: var(--white);
  border: 1px solid var(--line);
  transition: all var(--t-fast);
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.pagination .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .is-disabled { opacity: .35; pointer-events: none; }
.pagination .dots { border: 0; background: none; min-width: auto; }

/* ============================ ETAT VIDE ============================ */
.empty {
  text-align: center;
  padding: 72px 24px;
  max-width: 480px;
  margin-inline: auto;
}
.empty__icon {
  width: 84px; height: 84px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-700);
}
.empty__title { font-size: 1.3rem; margin-bottom: 8px; }
.empty__text { color: var(--text-2); margin-bottom: 26px; }

/* ============================== SKELETON ============================== */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================== TOASTS ============================== */
.toasts {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: var(--sh-lg);
  pointer-events: auto;
  animation: toastIn .35s cubic-bezier(.16,1,.3,1);
}
.toast--success { background: #0d7a3f; }
.toast--error   { background: #c2373b; }
.toast--info    { background: var(--ink); }
.toast.is-out { animation: toastOut .3s forwards; }

@keyframes toastIn  { from { opacity: 0; transform: translateX(40px) scale(.95); } }
@keyframes toastOut { to   { opacity: 0; transform: translateX(40px) scale(.95); } }

/* ============================ ANIMATIONS ============================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1200px) {
  .grid--6 { grid-template-columns: repeat(4, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  :root { --gutter: 20px; --header-h: 68px; }
  .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  :root { --gutter: 16px; }
  .grid--2, .grid--3, .grid--4, .grid--5, .grid--6 { grid-template-columns: repeat(2, 1fr); }
  .grid { gap: 14px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; max-width: none; }
}
