/* =============================================
   TIKKOUN — TAROT DE MARSEILLE INITIATIQUE
   Master Stylesheet
   ============================================= */

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

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

body {
  font-family: 'Comfortaa', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── CSS Variables ─── */
:root {
  --bg:           #080812;
  --bg-2:         #0e0e22;
  --bg-card:      #14142e;
  --card-bg:      #14142e;   /* alias — var(--card-bg) dans les styles inline */
  --bg-light:     #1c1c3a;
  --gold:         #c9a84c;
  --gold-light:   #e2c87e;
  --gold-dark:    #7d6020;
  --gold-glow:    rgba(201, 168, 76, 0.25);
  --text:         #e0d4bc;
  --text-muted:   #9a8c74;  /* WCAG AA ≥4.5:1 sur tous les fonds sombres */
  --text-light:   #f5f0e8;
  --purple:       #3c186a;
  --purple-light: #6b3db3;
  --border:       rgba(201, 168, 76, 0.18);
  --border-hover: rgba(201, 168, 76, 0.5);
  --shadow:       0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-card:  0 4px 20px rgba(0, 0, 0, 0.4);
  --radius:       8px;
  --radius-lg:    16px;
  --nav-h:        72px;
  --transition:   0.3s ease;
  --max-width:    1200px;
}

/* ─── Sunny Mode ─── */
[data-theme="sunny"] {
  --bg:           #faf8f3;
  --bg-2:         #f0ebe0;
  --bg-card:      #ffffff;
  --card-bg:      #ffffff;
  --bg-light:     #e8e1d5;
  --gold:         #9a6e18;
  --gold-light:   #c9a84c;
  --gold-dark:    #6a4c10;
  --gold-glow:    rgba(154, 110, 24, 0.2);
  --text:         #3d3528;
  --text-muted:   #695a45;  /* WCAG AA ≥4.5:1 sur bg-light sunny */
  --text-light:   #1a150e;
  --purple:       #5c3494;
  --purple-light: #8554c8;
  --border:       rgba(154, 110, 24, 0.28);
  --border-hover: rgba(154, 110, 24, 0.55);
  --shadow:       0 8px 40px rgba(0, 0, 0, 0.09);
  --shadow-card:  0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Nav — fond hardcodé */
[data-theme="sunny"] .nav {
  background: rgba(250, 248, 243, 0.97) !important;
}
[data-theme="sunny"] .nav-dropdown {
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Boutons — texte foncé sur fond or */
[data-theme="sunny"] .btn-primary,
[data-theme="sunny"] .nav-cta { color: #1a150e !important; }

/* Footer */
[data-theme="sunny"] .footer { background: #e8e3d8; }

/* Hero */
[data-theme="sunny"] .hero {
  background:
    radial-gradient(ellipse at 50% 65%, rgba(154, 110, 24, 0.07) 0%, transparent 65%),
    var(--bg);
}
[data-theme="sunny"] .hero::after { display: none; }
[data-theme="sunny"] .page-hero::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(154, 110, 24, 0.07) 0%, transparent 65%);
}

/* Card-back — fond anthracite hardcodé (#25252c) : texte forcé en gold clair
   pour éviter le foncé-sur-foncé. Utilise html[] pour battre les overrides de couleur (.suit-X). */
html[data-theme="sunny"] .card-back .card-num,
html[data-theme="sunny"] .card-back .card-name { color: #c9a84c; }

/* Disque numérique (majeure-num) : fond sombre semi-transparent illisible en sunny → beige clair */
[data-theme="sunny"] .majeure-num {
  background: var(--bg-light, #e8e1d5);
  color: var(--gold-dark, #6a4c10);
}

/* Tags sur les fiches — contrastes sunny */
[data-theme="sunny"] .tag-plus {
  background: rgba(154,110,24,0.10);
  color: #7a5210;
  border-color: rgba(154,110,24,0.38);
}
[data-theme="sunny"] .tag-plus:hover {
  background: rgba(154,110,24,0.18);
  box-shadow: 0 0 14px rgba(154,110,24,0.15);
}
[data-theme="sunny"] .tag-moins {
  background: rgba(180,40,60,0.09);
  color: #a0243a;
  border-color: rgba(180,40,60,0.30);
}
[data-theme="sunny"] .tag-moins:hover {
  background: rgba(180,40,60,0.16);
  box-shadow: 0 0 14px rgba(180,40,60,0.14);
}

/* CTA section */
[data-theme="sunny"] .cta-section {
  background: linear-gradient(135deg,
    rgba(154, 110, 24, 0.07) 0%,
    rgba(250, 248, 243, 0.95) 50%,
    rgba(154, 110, 24, 0.04) 100%);
}

/* ─── Theme Toggle ─── */
.theme-toggle {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 0.65rem;
  line-height: 1;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.07);
}

img { max-width: 100%; display: block; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-light); }

/* ─── Typography ─── */
h1, h2, h3, h4, h5 {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-light);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--text); }

.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }

.section-label {
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  position: relative;
}
.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  background-image: url('../img/Tikkoun -  Stars only picto.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.divider::before { right: calc(100% + 8px); }
.divider::after  { left:  calc(100% + 8px); }

/* ─── Layout ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section     { padding: 5rem 0; }
.section-alt { background: var(--bg-2); }
.section-sm  { padding: 3rem 0; }

/* ── Scroll-margin : évite que la nav sticky masque le focus ── */
section, [id], .fiche-header, .page-hero {
  scroll-margin-top: calc(var(--nav-h, 72px) + 1rem);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled, .btn[disabled] {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--gold-glow);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold-light);
  border-color: var(--gold-light);
}
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8, 8, 18, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.35rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav-logo:hover { color: var(--gold-light); }
.nav-logo-img {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.8rem;
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.07);
}
.nav-link .chevron {
  font-size: 0.55rem;
  transition: transform var(--transition);
  opacity: 0.7;
}
.nav-item:hover .chevron { transform: rotate(180deg); }

/* ── Pont invisible : couvre le gap entre le lien et le dropdown
   sans lui le survol est perdu avant d'atteindre la zone cliquable ── */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -0.5rem;
  right: -0.5rem;
  height: 0.75rem;   /* ≥ gap de 0.5rem + marge de sécurité */
  background: transparent;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: #0f0f28;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  /* Ouverture rapide (0.15s) · fermeture avec 300ms de grâce */
  transition: opacity 0.15s ease, visibility 0s linear 0.3s, transform 0.15s ease;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top: none;
  border-bottom-color: var(--border);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  /* Pas de délai à l'ouverture */
  transition: opacity 0.15s ease, visibility 0s linear 0s, transform 0.15s ease;
}
.nav-dropdown a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.76rem;
  color: var(--text-muted);
  border-radius: 4px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-dropdown a:hover {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0.85rem;
}

.nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4em !important;
  background: var(--gold) !important;
  color: var(--bg) !important;
  font-family: 'Comfortaa', sans-serif !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: var(--radius) !important;
  font-size: 0.77rem !important;
  letter-spacing: 0.05em !important;
  transition: all var(--transition) !important;
  margin-left: 0.5rem;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--bg) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px var(--gold-glow) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  z-index: 10;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 65%, rgba(60, 24, 106, 0.45) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 40%),
    var(--bg);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 60%, rgba(255,255,255,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 10%, rgba(255,255,255,0.22) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 80%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 55%, rgba(255,255,255,0.12) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 75%, rgba(201,168,76,0.2) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 65% 25%, rgba(201,168,76,0.15) 0%, transparent 100%);
  pointer-events: none;
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.hero-symbol {
  margin-bottom: 1.5rem;
  display: block;
  opacity: 0.85;
  animation: float 7s ease-in-out infinite;
}
.hero-symbol img {
  height: 80px;
  width: auto;
  display: block;
  margin: 0 auto;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.hero h1 { font-family: 'Comfortaa', sans-serif; }
.hero h1 .sub {
  display: block;
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0.45em;
  color: var(--gold);
  margin-top: 1rem;
  text-transform: uppercase;
}
.hero-tagline {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 2rem auto 0;
  line-height: 1.85;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-family: 'Comfortaa', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.6;
  animation: pulse 3s ease-in-out infinite;
  cursor: pointer;
  z-index: 1;
}
.hero-scroll::after { content: '↓'; font-size: 1.1rem; }
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.9; }
}

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(60,24,106,0.3) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero h1,
.page-hero p { position: relative; z-index: 1; }
.page-hero p {
  max-width: 580px;
  margin: 1rem auto 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* ─── Section headers ─── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
}

/* ─── Tarot card grid ─── */
.tarot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}
.tarot-card {
  position: relative;
  aspect-ratio: 2 / 3.3;
  border: 2px solid var(--gold);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  overflow: visible;
  perspective: 1200px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tarot-card:hover {
  border-color: var(--gold-light);
  box-shadow: 0 14px 38px rgba(0,0,0,0.55), 0 0 28px var(--gold-glow);
}

/* ── Flip mechanism ── */
.card-flip-inner {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}
.tarot-card:hover .card-flip-inner,
.tarot-card:focus-within .card-flip-inner {
  transform: rotateY(180deg);
}
.card-back,
.card-front {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Dos : anthracite + picto centré */
.card-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.5rem;
  background: #25252c;
}
.card-back .card-num {
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  align-self: flex-start;
  flex-shrink: 0;
}
.card-back-picto {
  flex: 1;
  width: 58%;
  min-height: 0;
  object-fit: contain;
  opacity: 0.88;
}
.card-back .card-name {
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.64rem;
  color: var(--text);
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
  flex-shrink: 0;
}

/* Face : illustration de la carte */
.card-front {
  transform: rotateY(180deg);
}
.card-face-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Suit colours for card art backgrounds */
.art-major   { background: linear-gradient(180deg, #1a0a35 0%, #3c186a 100%); }
.art-epees   { background: linear-gradient(180deg, #0d1a2e 0%, #1a3455 100%); }
.art-coupes  { background: linear-gradient(180deg, #0d1e2e 0%, #0d3040 100%); }
.art-deniers { background: linear-gradient(180deg, #0f1a0d 0%, #1a2e1a 100%); }
.art-batons  { background: linear-gradient(180deg, #1e1205 0%, #3d2508 100%); }

/* ── Suit card grids (family pages) — texte jaune-or, bordure défaut gold ── */
.suit-deniers .card-back .card-num,
.suit-deniers .card-back .card-name,
.suit-coupes  .card-back .card-num,
.suit-coupes  .card-back .card-name,
.suit-batons  .card-back .card-num,
.suit-batons  .card-back .card-name,
.suit-epees   .card-back .card-num,
.suit-epees   .card-back .card-name { color: var(--gold); }

/* Centre le numéro dans les grilles colorées */
.suit-deniers .card-back .card-num,
.suit-coupes  .card-back .card-num,
.suit-batons  .card-back .card-num,
.suit-epees   .card-back .card-num { align-self: center; font-size: 0.68rem; }

/* ── Arcanes Majeures — couleurs verso ── */
.suit-majeures .card-back .card-num,
.suit-majeures .card-back .card-name { color: var(--gold); }
.suit-majeures .card-back .card-num  { align-self: center; font-size: 0.68rem; }

/* ── Bouton révélation collective ── */
.reveal-bar { display: flex; justify-content: flex-end; margin-bottom: 1rem; }

/* ── État révélé : toutes les cartes retournées ── */
.all-revealed .tarot-card .card-flip-inner { transform: rotateY(180deg); }

/* ── Page Les Majeures — grille éditoriale face visible ── */
.majeure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}
.majeure-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid var(--gold-dark);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.majeure-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
  border-color: var(--gold);
}
.majeure-img-wrap img {
  width: 100%;
  display: block;
}
.majeure-body {
  padding: 0.65rem 0.8rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  border-top: 1px solid var(--gold-dark);
}
.majeure-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.majeure-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.majeure-kw {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  line-height: 1.35;
}
.majeure-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}
.majeure-body p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 600px) {
  .majeure-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .majeure-body { padding: 0.55rem 0.65rem 0.7rem; }
  .majeure-body h3 { font-size: 0.82rem; }
  .majeure-body p { display: none; }
}

/* ─── Service cards ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ─── Pricing / Abonnements ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, var(--bg-light) 0%, var(--bg-card) 100%);
}
.pricing-card.featured::before {
  content: 'Recommandé';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg);
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pricing-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.pricing-price {
  font-family: 'Comfortaa', sans-serif;
  font-size: 2.4rem;
  color: var(--gold);
  margin: 1rem 0 0.25rem;
  font-weight: 700;
  line-height: 1;
}
.pricing-price sup {
  font-size: 1rem;
  vertical-align: top;
  margin-top: 0.3rem;
  display: inline-block;
}
.pricing-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}
.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-features li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%23c4a55a' stroke-width='1.2'/%3E%3Ccircle cx='6' cy='6' r='1.5' fill='%23c4a55a'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* ─── Formations ─── */
.formation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  display: flex;
  gap: 2rem;
  transition: all var(--transition);
  margin-bottom: 1.25rem;
}
.formation-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}
.formation-level {
  flex-shrink: 0;
  width: 90px;
  text-align: center;
}
.level-label {
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.level-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Comfortaa', sans-serif;
  font-size: 1rem;
  color: var(--gold);
  margin: 0 auto 0.5rem;
  background: rgba(201,168,76,0.05);
}
.level-name {
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.formation-content { flex: 1; }
.formation-content h3 { margin-bottom: 0.6rem; }
.formation-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.formation-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.formation-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.meta-icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%23c4a55a' stroke-width='1.2'/%3E%3Ccircle cx='6' cy='6' r='1.5' fill='%23c4a55a'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* ─── Tirages ─── */
.tirage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.tirage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.tirage-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.tirage-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.tirage-card > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.75;
  flex: 1;
}
.tirage-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.tirage-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.7rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--gold);
  font-family: 'Comfortaa', sans-serif;
  letter-spacing: 0.04em;
}

/* ─── Suit cards ─── */
.suit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}
.suit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.suit-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 20px var(--gold-glow);
}
.suit-symbol {
  display: block;
  width: 80px;
  height: 80px;
  position: relative;
  margin: 0 auto 1rem;
}
.suit-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0; left: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.suit-symbol .picto-base  { opacity: 1; transform: scale(1); }
.suit-symbol .picto-hover { opacity: 0; transform: scale(1.08); }
.suit-card:hover .suit-symbol .picto-base  { opacity: 0; transform: scale(0.92); }
.suit-card:hover .suit-symbol .picto-hover { opacity: 1; transform: scale(1); }
.suit-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.suit-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─── Product cards ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--purple) 50%, var(--bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.product-info { padding: 1.5rem; }
.product-info h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.product-info p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}
.product-price {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 700;
}

/* ─── Forms ─── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-group select { cursor: pointer; }
.form-group textarea { min-height: 130px; resize: vertical; }

/* ─── Accordion ─── */
.accordion { margin-bottom: 0.6rem; }
.accordion-header {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--transition);
  text-align: left;
}
.accordion-header:hover {
  border-color: var(--border-hover);
  color: var(--gold);
}
.accordion-header .acc-icon {
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.accordion.open .accordion-header {
  border-color: var(--gold);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  color: var(--gold);
}
.accordion.open .accordion-header .acc-icon { transform: rotate(45deg); }
.accordion-body {
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-top: none;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  padding: 1.5rem;
  display: none;
}
.accordion.open .accordion-body { display: block; }
.accordion-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0;
}

/* ─── Quote block ─── */
.quote-block {
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.quote-block p {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.85;
  margin: 0;
}

/* ─── CTA section ─── */
.cta-section {
  background: linear-gradient(135deg, rgba(60,24,106,0.45) 0%, rgba(8,8,18,0.8) 50%, rgba(201,168,76,0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
}

/* ─── Info boxes ─── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.info-box .ib-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background-image: url('../img/Tikkoun -  Stars only picto.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto 0.75rem;
}
.info-box h4 { font-size: 0.9rem; margin-bottom: 0.4rem; }
.info-box p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
a.info-box { text-decoration: none; color: inherit; display: block; transition: border-color 0.2s, transform 0.2s; }
a.info-box:hover { border-color: var(--gold-dark); transform: translateY(-3px); }

/* ─── Breadcrumb ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  font-size: 0;
  background: var(--gold);
  border-radius: 50%;
  vertical-align: middle;
  opacity: 0.75;
  margin: 0 0.1em;
}

/* ─── Footer ─── */
.footer {
  background: #050510;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo {
  display: block;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-logo-img {
  height: 90px;
  width: auto;
  display: block;
}
.footer-brand p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.footer-social { display: flex; gap: 0.65rem; }
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all var(--transition);
  text-decoration: none;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.footer-col h4 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: color var(--transition);
  text-decoration: none;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--nav-h)); /* backdrop-filter sur .nav crée un containing block — bottom:0 se résoudrait à 0px */
    z-index: 9999;
    background: rgba(6, 6, 16, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition);
    gap: 0;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-link {
    padding: 0.9rem 0.5rem;
    font-size: 0.88rem;
    justify-content: space-between;
  }
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--gold-dark);
    background: transparent;
    margin-left: 1rem;
    padding: 0;
    pointer-events: all;
    display: none;
  }
  .nav-item.open .nav-dropdown { display: block; }
  .nav-dropdown::before { display: none; }
  .nav-dropdown a {
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
  }
  .nav-toggle { display: flex; }
  .nav-cta { margin: 0.5rem 0; }
  [data-theme="sunny"] .nav-menu { background: rgba(250, 248, 243, 0.98); }

  .formation-card { flex-direction: column; gap: 1.25rem; }
  .formation-level {
    width: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-section { padding: 3rem 1.5rem; }
}

@media (max-width: 540px) {
  .tarot-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.7rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-scroll { display: none; } /* évite chevauchement avec les boutons CTA en colonne */
}

/* ═══════════════════════════════════════════
   FICHE ARCANE — page individuelle
   ═══════════════════════════════════════════ */

/* Grille principale image / contenu */
.card-page-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.card-img-col {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.card-img-large {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 3px solid var(--gold);
  box-shadow: 0 0 60px rgba(201,168,76,0.18), 0 20px 60px rgba(0,0,0,0.55);
  display: block;
}

/* Badges Conscience / Phase */
.card-meta-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.card-meta-badge {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Navigation prev / next */
.card-nav-arrows {
  display: flex;
  justify-content: space-between;
  margin-top: 1.25rem;
  gap: 0.5rem;
}
.card-nav-btn {
  font-size: 0.72rem;
  color: var(--gold);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.card-nav-btn:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  color: var(--gold-light);
}

/* En-tête de la carte */
.card-type-tag {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.card-page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.card-number-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 1.75rem;
}

/* Table synthèse */
.synthese-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 2rem;
  margin-bottom: 2rem;
}
.synthese-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.2rem;
}
.synthese-value {
  font-size: 0.88rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* Texte narratif */
.card-narrative { line-height: 1.88; }
.card-narrative p { margin-bottom: 1rem; color: var(--text); }

/* Attribution */
.card-attribution {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

/* ── Section analyse : Les plus / Interprétation / Les moins ── */
.analysis-grid {
  display: grid;
  grid-template-columns: 210px 1fr 210px;
  gap: 2.5rem;
  align-items: start;
}
.analysis-col-title {
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.tags-cloud {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tag {
  font-size: 0.72rem;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  display: inline-block;
  width: fit-content;
  transition: all var(--transition);
}
.tag-plus {
  background: rgba(255,200,40,0.14);
  color: #ffd340;
  border: 1px solid rgba(255,200,40,0.40);
}
.tag-plus:hover {
  background: rgba(255,200,40,0.24);
  box-shadow: 0 0 16px rgba(255,200,40,0.22);
}
.tag-moins {
  background: rgba(255,60,90,0.13);
  color: #ff4d6d;
  border: 1px solid rgba(255,60,90,0.33);
}
.tag-moins:hover {
  background: rgba(255,60,90,0.21);
  box-shadow: 0 0 16px rgba(255,60,90,0.20);
}
.interpretation-text { line-height: 1.92; }
.interpretation-text p { margin-bottom: 1.1rem; color: var(--text); }
.interpretation-text p:first-child {
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ── Pages Séries Mineures ── */
.serie-phase-band {
  display: inline-block;
  background: var(--gold-dark);
  color: var(--text-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1.1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}
.serie-cards-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.serie-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
  max-width: 160px;
  min-width: 100px;
  transition: transform 0.22s ease;
}
.serie-card-link:hover { transform: translateY(-5px); }
.serie-card-link img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  border: 1.5px solid var(--gold-dark);
}
.serie-card-suit {
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.serie-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
}
.serie-intro p {
  line-height: 1.88;
  color: var(--text);
  margin-bottom: 1rem;
}
.serie-intro p:last-child { margin-bottom: 0; }
.serie-suits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.serie-suit-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--gold-dark);
}
.serie-suit-block.suit-deniers { border-left-color: #c0392b; }
.serie-suit-block.suit-coupes  { border-left-color: #27ae60; }
.serie-suit-block.suit-batons  { border-left-color: #e67e22; }
.serie-suit-block.suit-epees   { border-left-color: #2980b9; }
.serie-suit-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin: 0 0 0.6rem;
}
.serie-suit-block p:not(.serie-suit-title) {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0;
}
@media (max-width: 680px) {
  .serie-suits-grid { grid-template-columns: 1fr; }
  .serie-card-link { flex: 0 0 calc(50% - 0.5rem); max-width: none; }
}

/* ── Proverbe ── */
.proverbe-section { text-align: center; }
.proverbe-ornement {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.proverbe-svg {
  width: 30px;
  height: 30px;
  opacity: 0.7;
}
.proverbe-text {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-light);
  font-style: italic;
  line-height: 1.65;
  margin: 0 0 0.75rem;
}
.proverbe-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}

/* ── Navigation familles ── */
.familles-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.famille-card {
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: all var(--transition);
  text-align: center;
  min-width: 110px;
}
.famille-card:hover {
  border-color: var(--border-hover);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
  transform: translateY(-2px);
}
.famille-card.active-famille {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.famille-symbol {
  display: block;
  width: 60px;
  height: 60px;
  position: relative;
  margin: 0 auto 0.6rem;
  opacity: 1;
}
.famille-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 4px;
  transition: opacity var(--transition), transform var(--transition);
}
.famille-symbol .picto-base  { opacity: 1;  transform: scale(1); }
.famille-symbol .picto-hover { opacity: 0;  transform: scale(1.06); }
.famille-card:hover .famille-symbol .picto-base  { opacity: 0;  transform: scale(0.94); }
.famille-card:hover .famille-symbol .picto-hover { opacity: 1;  transform: scale(1); }
.famille-card.active-famille .famille-symbol .picto-base  { opacity: 0;  transform: scale(0.94); }
.famille-card.active-famille .famille-symbol .picto-hover { opacity: 1;  transform: scale(1); }

/* ── Liens sur les cartes du grid majeures ── */
a.majeure-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ── Responsive fiche arcane ── */
@media (max-width: 900px) {
  .card-page-grid {
    grid-template-columns: 1fr;
  }
  .card-img-col {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .card-img-large { max-width: 260px; }
  .analysis-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .analysis-grid > :nth-child(2) { order: -1; }
}
@media (max-width: 540px) {
  .synthese-block { grid-template-columns: 1fr; }
  .familles-grid { gap: 0.6rem; }
  .famille-card { min-width: 90px; padding: 0.75rem 1rem; }
}

/* ═══════════════════════════════════════════
   FICHE ARCANE — 9 blocs
   ═══════════════════════════════════════════ */

/* ── Bloc 1+2 : En-tête identité | paramètres ── */
.fiche-header {
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3rem;
  position: relative;
}
.fiche-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(60,24,106,0.30) 0%, transparent 60%);
  pointer-events: none;
}

.fiche-header-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.fiche-title {
  font-size: clamp(3rem, 5.5vw, 5rem);
  color: var(--text-light);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.5rem;
}

.fiche-number {
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.22em;
  display: block;
  font-weight: 300;
}

/* Bloc paramètres — fond or Tikkoun, grille multi-colonnes */
.fiche-params {
  background: linear-gradient(
    140deg,
    var(--gold-light) 0%,
    var(--gold) 100%
  );
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 0.8rem 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2.5rem;
  align-content: start;
}

.param-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.34rem 0;
  border-bottom: 1px solid rgba(8, 8, 18, 0.18);
}
.param-row:last-child { border-bottom: none; }

.param-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(8, 8, 18, 0.62);
  flex-shrink: 0;
  white-space: nowrap;
}

.param-value {
  font-size: 0.82rem;
  color: var(--bg);
  font-weight: 600;
  text-align: right;
}

/* ── Bloc 3 : Bande navigation entre cartes ── */
.fiche-nav-band {
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.fiche-card-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.fiche-card-nav .btn {
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
}
.fiche-card-nav .btn:hover {
  background: var(--gold-light);
  color: var(--bg);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--gold-glow);
}

/* ── Blocs 4+5+5bis : Image | Narratif + Attribution ── */
.fiche-main-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4.5rem;
  align-items: start;
}

.fiche-img-col {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.fiche-narrative {
  font-size: 1.04rem;
  line-height: 2;
}
.fiche-narrative p {
  color: var(--text);
  margin-bottom: 1.4rem;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .fiche-header-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .fiche-params {
    grid-template-columns: repeat(2, 1fr);
  }
  .fiche-main-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .fiche-img-col {
    position: static;
    display: flex;
    justify-content: center;
  }
  .fiche-img-col .card-img-large { max-width: 220px; }
}
@media (max-width: 600px) {
  .fiche-title { font-size: 2.8rem; }
  .fiche-params { grid-template-columns: 1fr; }
  .fiche-card-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
  }
  .fiche-card-nav .btn {
    flex: 1;
    font-size: 0.78rem;
    padding: 0.45rem 0.4rem;
    text-align: center;
    justify-content: center;
    line-height: 1.3;
  }
  /* Bouton famille/parent (toujours :nth-child(2)) → 2e ligne, pleine largeur */
  .fiche-card-nav .btn:nth-child(2) {
    order: 3;
    flex: 0 0 100%;
    font-size: 0.74rem;
    padding: 0.35rem 0.5rem;
    opacity: 0.7;
  }
}

/* ─── Formation icon hover ─── */
.formation-icon {
  position: relative;
  width: 4rem;
  height: 4rem;
  display: block;
  margin: 0.75rem auto 1rem;
}
.formation-icon img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity var(--transition), transform var(--transition);
}
.formation-icon .picto-base  { opacity: 1; transform: scale(1); }
.formation-icon .picto-hover { opacity: 0; transform: scale(1.08); }
.service-card:hover .formation-icon .picto-base,
.formation-card:hover .formation-icon .picto-base  { opacity: 0; transform: scale(0.92); }
.service-card:hover .formation-icon .picto-hover,
.formation-card:hover .formation-icon .picto-hover { opacity: 1; transform: scale(1); }

/* Picto dans la colonne formation-level (taille adaptée) */
.formation-level .formation-icon { width: 3rem; height: 3rem; margin: 0.9rem auto 0; }

/* ─── Product carousel ─── */
.product-img.carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-light);
  font-size: 0;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-img.carousel .carousel-track img {
  object-fit: contain;
  background: #07070f;
}
/* Carousels mockup-photo (modèles portant le t-shirt) */
.product-img.carousel.carousel-photo .carousel-track img {
  object-fit: cover;
  background: transparent;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5, 5, 14, 0.65);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  width: 2rem; height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.carousel-btn:hover { background: rgba(5, 5, 14, 0.92); }
.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }
.carousel-dots {
  position: absolute;
  bottom: 0.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background var(--transition);
}
.carousel-dot.active { background: var(--gold); }

/* ─── Mini-panier ────────────────────────────────────────────── */

/* Bouton nav */
.cart-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
  border-radius: 50%;
  flex-shrink: 0;
}
.cart-toggle:hover { color: var(--gold); }
.cart-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: var(--gold);
  color: #0d0d1f;
  font-size: 0.58rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Overlay */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

/* Drawer */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  max-width: 95vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-drawer-title { font-size: 1rem; font-weight: 700; margin: 0; }
.cart-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.4rem;
  padding: 0.1rem 0.4rem;
  line-height: 1;
  transition: color 0.15s;
  border-radius: 4px;
}
.cart-close:hover { color: var(--text); }

/* Liste items */
.cart-items { flex: 1; overflow-y: auto; padding: 0.5rem 1.25rem; }
.cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 64px; height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg-light);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.83rem; font-weight: 600;
  margin-bottom: 0.15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-opts { font-size: 0.74rem; color: var(--text-muted); margin-bottom: 0.45rem; text-transform: capitalize; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cart-item-price { font-size: 0.88rem; font-weight: 700; color: var(--gold); }
.ci-qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.ci-qty-btn {
  background: none; border: none;
  color: var(--gold);
  padding: 0.18rem 0.5rem;
  cursor: pointer; font-size: 1rem; line-height: 1;
  font-family: inherit;
  transition: background 0.15s;
}
.ci-qty-btn:hover { background: var(--bg-light); }
.ci-qty-val { font-size: 0.8rem; font-weight: 600; min-width: 1.4rem; text-align: center; }
.ci-remove {
  background: none; border: none;
  cursor: pointer; color: var(--text-muted);
  padding: 0.18rem 0.5rem; font-size: 0.85rem; line-height: 1;
  border-left: 1px solid var(--border);
  transition: color 0.15s;
}
.ci-remove:hover { color: #e05c5c; }
.cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; gap: 1rem; padding: 2rem;
  color: var(--text-muted); text-align: center;
}
.cart-empty-icon { display: flex; opacity: 0.35; }

/* Footer panier */
.cart-footer {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1rem; font-size: 0.88rem;
}
.cart-total-row strong { font-size: 1.25rem; color: var(--gold); }
.cart-checkout { width: 100%; text-align: center; display: block; }
.cart-note { font-size: 0.71rem; color: var(--text-muted); text-align: center; margin-top: 0.6rem; opacity: 0.7; }

/* ── Bouton auth nav ──────────────────────────────────────────── */
.auth-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; color: var(--text-muted);
  text-decoration: none; flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
  border: none; cursor: pointer; padding: 0;
}
.auth-btn:hover { color: var(--gold); background: var(--bg-light); }
.auth-btn.logged-in { background: var(--gold); color: #0d0d1f; overflow: hidden; }
.auth-initials { font-size: 0.72rem; font-weight: 700; line-height: 1; }
.auth-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* ── Page Mon compte ──────────────────────────────────────────── */
.auth-panel {
  max-width: 420px; margin: 0 auto; padding: 2rem 0;
}
.auth-tabs {
  display: flex; gap: 0; margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--border);
}
.auth-tab {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); padding: 0.5rem 1.25rem 0.75rem;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form .co-field { margin-bottom: 0; }
.auth-error {
  font-size: 0.8rem; color: #e05c5c;
  background: rgba(224,92,92,0.1); border: 1px solid rgba(224,92,92,0.25);
  border-radius: 6px; padding: 0.6rem 0.9rem; display: none;
}
.auth-error.show { display: block; }
.auth-success {
  font-size: 0.8rem; color: #4cba6e;
  background: rgba(76,186,110,0.1); border: 1px solid rgba(76,186,110,0.25);
  border-radius: 6px; padding: 0.6rem 0.9rem; display: none;
}
.auth-success.show { display: block; }

/* Profil utilisateur */
.profile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
@media (max-width: 640px) {
  .profile-grid { grid-template-columns: 1fr; }
  /* Le 1er bloc a grid-column:span 2 en inline style → !important requis pour l'écraser */
  .profile-grid .profile-block { grid-column: span 1 !important; }
}
.profile-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem;
}
.profile-block-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold); margin-bottom: 1rem;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold); color: #0d0d1f;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem;
}
.profile-name { font-size: 1.1rem; font-weight: 700; }
.profile-email { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }
.tier-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 4px; padding: 0.2rem 0.6rem; margin-top: 0.75rem;
}
.tier-freemium  { background: var(--bg-light); color: var(--text-muted); }
.tier-apprentice { background: #1a3a6a; color: #7eb8ff; }
.tier-expert    { background: #3a1a6a; color: #b87eff; }
.tier-master    { background: var(--gold); color: #0d0d1f; }
.wallet-balance { font-size: 2rem; font-weight: 700; color: var(--gold); }
.wallet-eur     { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Table commandes */
/* ── Commandes : cartes détaillées ─────────────────────────── */
.order-card {
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; margin-bottom: 1rem; font-size: 0.83rem;
}
.order-card:last-child { margin-bottom: 0; }
.order-card-header {
  display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap;
  padding: 0.65rem 1rem; background: rgba(201,168,76,0.05);
  border-bottom: 1px solid var(--border);
}
.order-date { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }
.order-ref  {
  font-family: monospace; font-size: 0.78rem; color: var(--gold);
  background: rgba(201,168,76,0.1); padding: 0.1rem 0.4rem; border-radius: 3px;
}
.order-card-header .order-status { margin-left: auto; }
.order-items { padding: 0.4rem 1rem; border-bottom: 1px solid rgba(201,168,76,0.08); }
.order-item-row {
  display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.35rem 0; border-bottom: 1px solid rgba(201,168,76,0.05);
}
.order-item-row:last-child { border-bottom: none; }
.order-item-type {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.1rem 0.35rem; border-radius: 3px; flex-shrink: 0;
}
.order-item-type.tshirt { background: rgba(0,231,254,0.1);    color: #00e7fe; }
.order-item-type.cartes { background: rgba(201,168,76,0.12);   color: var(--gold); }
.order-item-name  { flex: 1; color: var(--text); line-height: 1.35; }
.order-item-qty   { color: var(--text-muted); flex-shrink: 0; }
.order-item-price { font-weight: 600; flex-shrink: 0; text-align: right; min-width: 4.5rem; }
.order-totals { padding: 0.5rem 1rem; }
.order-total-row {
  display: flex; justify-content: space-between;
  padding: 0.18rem 0; color: var(--text-muted); font-size: 0.8rem;
}
.order-total-row.grand-total {
  color: var(--text); font-weight: 700; font-size: 0.88rem;
  border-top: 1px solid rgba(201,168,76,0.15);
  margin-top: 0.25rem; padding-top: 0.35rem;
}
.order-tracking {
  padding: 0.5rem 1rem;
  background: rgba(0,231,254,0.04);
  border-top: 1px solid rgba(0,231,254,0.1);
  display: flex; align-items: center; gap: 0.5rem;
}
.order-track-btn {
  font-size: 0.8rem; color: #00e7fe; text-decoration: none; font-weight: 600;
}
.order-track-btn:hover { text-decoration: underline; }
.order-track-note { font-size: 0.78rem; color: var(--text-muted); }

/* Badge statut */
.order-status {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: 4px; padding: 0.1rem 0.45rem; white-space: nowrap;
}
.order-status.pending_payment { background: rgba(248,194,23,0.15); color: #f8c217; }
.order-status.paid            { background: rgba(76,186,110,0.15);  color: #4cba6e; }
.order-status.processing      { background: rgba(0,180,254,0.12);   color: #00b4fe; }
.order-status.shipped         { background: rgba(0,231,254,0.12);   color: #00e7fe; }
.order-status.delivered       { background: rgba(76,186,110,0.2);   color: #4cba6e; }
.order-status.cancelled       { background: rgba(224,92,92,0.12);   color: #e05c5c; }
.order-status.refunded        { background: rgba(150,150,150,0.12); color: #999; }

/* ── Mobile 480px — profil + commandes client ── */
@media (max-width: 480px) {
  .profile-block  { padding: 1rem; }
  .profile-grid   { gap: 0.75rem; }
  .wallet-balance { font-size: 1.5rem; }

  .order-card-header { gap: 0.35rem; padding: 0.5rem 0.75rem; }
  .order-items       { padding: 0.35rem 0.75rem; }
  .order-totals      { padding: 0.35rem 0.75rem; }
  .order-tracking    { padding: 0.35rem 0.75rem; }
  .order-item-price  { min-width: 3.5rem; }
}

/* ══════════════════════════════════════════════════════════════
   Dashboard admin — styles dédiés (préfixe .adm-)
   ══════════════════════════════════════════════════════════════ */
.adm-body    { min-height: 100vh; background: var(--bg); color: var(--text); font-family: 'Comfortaa', sans-serif; --surface: #16162a; }
.adm-header  {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.85rem 1.5rem; background: var(--surface);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
}
.adm-logo    { font-size: 1rem; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; }
.adm-stats   { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-left: 1rem; }
.adm-stat    { font-size: 0.78rem; color: var(--text-muted); }
.adm-stat strong { color: var(--text); font-weight: 700; }
.adm-logout  { margin-left: auto; font-size: 0.78rem; }

.adm-main    { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.adm-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.adm-filter  {
  font-size: 0.78rem; padding: 0.3rem 0.75rem; border-radius: 20px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  font-family: inherit; transition: all 0.15s;
}
.adm-filter:hover  { border-color: var(--gold); color: var(--gold); }
.adm-filter.active { background: rgba(201,168,76,0.15); border-color: var(--gold); color: var(--gold); font-weight: 600; }

/* Carte commande admin */
.adm-order-card {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  margin-bottom: 1rem; background: var(--surface);
}
.adm-order-card:last-child { margin-bottom: 0; }
.adm-oc-header {
  display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap;
  padding: 0.65rem 1rem; background: rgba(201,168,76,0.05);
  border-bottom: 1px solid var(--border);
}
.adm-oc-customer { margin-left: auto; text-align: right; font-size: 0.8rem; }
.adm-oc-customer strong { display: block; color: var(--text); }
.adm-oc-customer a    { display: block; color: var(--gold); text-decoration: none; font-size: 0.75rem; }
.adm-oc-customer span { display: block; color: var(--text-muted); font-size: 0.75rem; }

.adm-oc-body {
  display: grid; grid-template-columns: 1fr 280px; gap: 0;
}
@media (max-width: 700px) { .adm-oc-body { grid-template-columns: 1fr; } }

.adm-oc-left  { padding: 0.75rem 1rem; border-right: 1px solid var(--border); }
@media (max-width: 700px) { .adm-oc-left { border-right: none; border-bottom: 1px solid var(--border); } }
.adm-oc-right { padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.65rem; }

/* Champs actions admin */
.adm-field label { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.adm-field select,
.adm-field input[type="url"] {
  width: 100%; padding: 0.45rem 0.6rem; border-radius: 5px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-family: inherit; font-size: 0.82rem;
}
.adm-field select:focus,
.adm-field input[type="url"]:focus { border-color: var(--gold); outline: none; }
.adm-save-feedback { font-size: 0.72rem; color: #4cba6e; min-height: 1rem; }
.adm-save-feedback.err { color: #e05c5c; }
.adm-pf-badge {
  font-size: 0.72rem; color: #00b4fe; background: rgba(0,180,254,0.08);
  border: 1px solid rgba(0,180,254,0.2); border-radius: 4px; padding: 0.2rem 0.5rem;
  display: inline-block;
}

/* Auth admin */
.adm-login-wrap { max-width: 360px; margin: 6rem auto; padding: 0 1.5rem; }
.adm-login-wrap h1 { font-size: 1.4rem; margin-bottom: 1.5rem; }

/* RGPD — zone dans mon-compte.html */
.gdpr-block { margin-top: 1.25rem; }
.gdpr-consent-status { font-size: 0.85rem; margin: 0.5rem 0 0.75rem; }
.gdpr-consent-status.ok  { color: #4cba6e; }
.gdpr-consent-status.nok { color: #f8c217; }
.gdpr-delete-zone { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(224,92,92,0.2); }
.gdpr-delete-zone p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.5; }

/* ── Navigation sections admin (Commandes / Mockups / …) ── */
.adm-section-nav {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  background: var(--surface); padding: 0 1.5rem; position: sticky; top: 56px; z-index: 90;
}
.adm-snav {
  padding: 0.7rem 1.25rem; font-size: 0.82rem; font-family: 'Comfortaa', sans-serif;
  border: none; background: none; color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.adm-snav:hover  { color: var(--text); }
.adm-snav.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }

/* ── Section mockups admin — scoped sous #sec-mockups ── */
#sec-mockups { padding: 1.5rem; max-width: 1200px; margin: 0 auto; }
#sec-mockups h2 { font-size: 1.1rem; color: var(--gold); margin-bottom: 0.3rem; }
#sec-mockups .adm-mk-sub { color: var(--text-muted); font-size: 0.75rem; margin-bottom: 1.25rem; }
#sec-mockups hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

#sec-mockups .adm-mk-toolbar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
#sec-mockups .adm-mk-toolbar label { font-size: .72rem; color: var(--text-muted); }
#sec-mockups .adm-mk-toolbar select { padding: .45rem .7rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: inherit; font-size: .83rem; width: 240px; }
#sec-mockups .adm-mk-toolbar select:focus { outline: none; border-color: var(--gold); }

#sec-mockups .adm-mk-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
#sec-mockups .adm-mk-tab { padding: .45rem 1rem; border-radius: 8px; border: 1.5px solid var(--border); cursor: pointer; font-size: .8rem; transition: all .15s; background: none; color: var(--text); font-family: inherit; }
#sec-mockups .adm-mk-tab:hover  { border-color: rgba(201,168,76,.5); }
#sec-mockups .adm-mk-tab.active { border-color: var(--gold); background: rgba(201,168,76,.1); color: var(--gold); }

#sec-mockups .adm-mk-view-filters { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; }
#sec-mockups .adm-mk-vf { padding: .28rem .65rem; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; font-size: .72rem; transition: all .15s; background: none; color: var(--text); font-family: inherit; }
#sec-mockups .adm-mk-vf.on { border-color: var(--gold); background: rgba(201,168,76,.1); color: var(--gold); }

#sec-mockups .adm-mk-color-headers { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
#sec-mockups .adm-mk-chip { display: flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border-radius: 20px; border: 1.5px solid var(--border); cursor: pointer; font-size: .72rem; transition: all .15s; background: none; color: var(--text); font-family: inherit; }
#sec-mockups .adm-mk-chip:hover  { border-color: rgba(201,168,76,.5); }
#sec-mockups .adm-mk-chip.active { border-color: var(--gold); }
#sec-mockups .adm-mk-chip .dot   { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
#sec-mockups .adm-mk-chip .ck    { color: #37d016; font-size: .7rem; display: none; }
#sec-mockups .adm-mk-chip.saved .ck { display: inline; }

#sec-mockups .adm-mk-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .65rem; }
#sec-mockups .adm-mk-img-card { border: 2px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; transition: border-color .15s, transform .1s; position: relative; }
#sec-mockups .adm-mk-img-card:hover    { border-color: rgba(201,168,76,.55); transform: scale(1.02); }
#sec-mockups .adm-mk-img-card.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
#sec-mockups .adm-mk-img-card img      { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #111; }
#sec-mockups .adm-mk-view-tag  { position: absolute; top: 4px; left: 4px; background: rgba(13,13,31,.75); color: var(--text-muted); font-size: .58rem; padding: .12rem .38rem; border-radius: 4px; }
#sec-mockups .adm-mk-sel-badge { display: none; position: absolute; top: 5px; right: 5px; background: var(--gold); color: #0d0d1f; border-radius: 50%; width: 20px; height: 20px; font-size: .7rem; font-weight: 700; align-items: center; justify-content: center; }
#sec-mockups .adm-mk-img-card.selected .adm-mk-sel-badge { display: flex; }

#sec-mockups .adm-mk-color-section { margin-bottom: 2rem; }
#sec-mockups .adm-mk-color-hd { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; cursor: pointer; user-select: none; }
#sec-mockups .adm-mk-swatch   { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
#sec-mockups .adm-mk-color-hd h3 { font-size: .88rem; font-weight: 600; margin: 0; }
#sec-mockups .adm-mk-saved-label { font-size: .7rem; color: #37d016; margin-left: auto; }
#sec-mockups .adm-mk-color-section.collapsed .adm-mk-color-body { display: none; }

#sec-mockups .adm-mk-save-panel { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); padding: .85rem 1.25rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; z-index: 10; }
#sec-mockups .adm-mk-save-count { font-size: .8rem; color: var(--text-muted); }
#sec-mockups .adm-mk-save-count strong { color: var(--gold); }
#sec-mockups .adm-mk-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem 1rem; border-radius: 8px; border: none; font-family: inherit; font-size: .8rem; cursor: pointer; transition: opacity .15s; white-space: nowrap; }
#sec-mockups .adm-mk-btn:disabled { opacity: .35; cursor: not-allowed; }
#sec-mockups .adm-mk-btn-gold    { background: var(--gold); color: #0d0d1f; font-weight: 700; }
#sec-mockups .adm-mk-btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
#sec-mockups .adm-mk-btn-outline:hover:not(:disabled) { border-color: var(--gold); }
#sec-mockups .adm-mk-btn-sm { padding: .3rem .65rem; font-size: .73rem; }
#sec-mockups #adm-mk-log { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .6rem .9rem; font-size: .72rem; line-height: 1.8; max-height: 160px; overflow-y: auto; font-family: monospace; color: var(--text-muted); margin-top: .75rem; width: 100%; }
#sec-mockups .adm-mk-lok  { color: #37d016; }
#sec-mockups .adm-mk-lerr { color: #e05050; }
#sec-mockups .adm-mk-linf { color: var(--gold); }
#sec-mockups .adm-mk-empty { color: var(--text-muted); font-size: .8rem; padding: 1rem 0; }

/* ── Share modal ──────────────────────────────────────────────────── */
#tik-share-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(0,0,0,.75);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.tik-share-modal {
  background: var(--bg-2, #12122a);
  border: 1px solid var(--border, #2a2a44);
  border-top: 3px solid var(--gold, #c4a55a);
  border-radius: 14px;
  padding: 1.8rem 2rem 1.5rem;
  max-width: 480px; width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.tik-share-header {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
}
.tik-share-thumb {
  width: 52px; height: 52px; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--border, #2a2a44); flex-shrink: 0;
}
.tik-share-close {
  position: absolute; top: .9rem; right: 1rem;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted, #888); font-size: 1.1rem;
  line-height: 1; padding: .2rem .35rem; border-radius: 4px;
  transition: color .15s;
}
.tik-share-close:hover { color: var(--text, #e0e0e0); }
.tik-share-title {
  font-size: 1rem; font-weight: 700;
  color: var(--gold, #c4a55a); margin: 0; letter-spacing: .03em;
}
.tik-share-label {
  display: block; font-size: .78rem;
  color: var(--text-muted, #888); margin-bottom: .4rem;
}
.tik-share-textarea {
  width: 100%; resize: vertical; min-height: 80px;
  padding: .6rem .75rem; border-radius: 7px;
  border: 1px solid var(--border, #2a2a44);
  background: var(--bg, #0d0d1f); color: var(--text, #e0e0e0);
  font-size: .85rem; font-family: inherit; line-height: 1.55;
  box-sizing: border-box; transition: border-color .2s;
}
.tik-share-textarea:focus { outline: none; }
.tik-share-platforms {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin-top: 1.1rem;
}
.tik-sh-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: 7px;
  font-size: .8rem; font-weight: 600; cursor: pointer;
  font-family: inherit; border: none;
  text-decoration: none; transition: opacity .15s, transform .1s;
  white-space: nowrap;
}
.tik-sh-btn:hover { opacity: .88; transform: translateY(-1px); }
.tsh-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.tik-sh-fb  { background: #1877f2; color: #fff; }
.tik-sh-fb  .tsh-icon { background: rgba(255,255,255,.18); }
.tik-sh-x   { background: #000; color: #fff; border: 1px solid #333; }
.tik-sh-x   .tsh-icon { background: rgba(255,255,255,.12); }
.tik-sh-wa  { background: #25d366; color: #fff; }
.tik-sh-wa  .tsh-icon { background: rgba(255,255,255,.18); }
.tik-sh-li  { background: #0a66c2; color: #fff; }
.tik-sh-li  .tsh-icon { background: rgba(255,255,255,.18); }
.tik-sh-cp  { background: var(--bg-card, #16162a); color: var(--gold, #c4a55a); border: 1px solid var(--border, #2a2a44); }
.tik-sh-cp:hover { border-color: var(--gold, #c4a55a); }
.tik-sh-cp  .tsh-icon { background: rgba(196,165,90,.12); }
.tik-share-note {
  font-size: .72rem; color: var(--text-muted, #888);
  margin: .9rem 0 0; line-height: 1.5;
}

/* ── Share CTA sur fiches cartes ─────────────────────────────────── */
.share-card-section { padding-top: 0 !important; padding-bottom: 1rem !important; }
.share-card-btn { font-size: .82rem; padding: .45rem 1.2rem; }

[data-theme="sunny"] .tik-share-modal {
  background: var(--bg-2, #faf8f3);
  border-color: var(--border, #ddd8c8);
}
[data-theme="sunny"] .tik-share-textarea {
  background: #fff;
  border-color: var(--border, #ddd8c8);
  color: var(--text, #1a1a2e);
}
[data-theme="sunny"] .tik-sh-cp {
  background: var(--bg-card, #f0ebe0);
  border-color: var(--border, #ddd8c8);
}
