:root {
  --color-primary: #B89A60;
  --color-black: #111111;
  --color-white: #ffffff;
  --color-muted: #6b6b6b;
  /* subtle grey for secondary text */
  --color-border: #eaeaea;
  /* light border */
}

/* Google Fonts: Merriweather (for headings and body) */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&display=swap');

/* Fix pour les caractères accentués en gras */
* {
  -webkit-font-feature-settings: "liga" off, "kern" off;
  font-feature-settings: "liga" off, "kern" off;
  font-synthesis: none;
  letter-spacing: normal;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}

html,
body {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  color: var(--color-white);
  background: var(--pbmit-global-2-color);
  ;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  font-synthesis: none;
}

/* Ensure page wrapper and content inherit the black background */
.page-wrapper,
.site-content,
.pbmit-bg-color-light,
.pbmit-bg-color-secondary,
body {
  background-color: var(--pbmit-global-2-color);
  !important;
}

/* Adjust default text colors for readability on black */
body,
p,
li,
a,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-white);
}

span.color-gold {
  color: var(--pbmit-global-color) !important;
}

[data-stylerecorder="true"]:hover {
  color: var(--pbmit-global-color) !important;
}

/* Muted text becomes a soft grey on black */
:root {
  --color-muted: #c9c9c9;
  --color-border: #222222;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  color: var(--pbmit-global-color);
  letter-spacing: 0.2px;
  font-synthesis: none;
  font-weight: 700;
}

/* Normalisation spécifique pour les textes avec accents */
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
a,
li,
div {
  font-weight: inherit !important;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  letter-spacing: normal;
}

/* Correction spécifique pour les caractères accentués */
body,
p,
span,
a,
li,
div,
h1,
h2,
h3,
h4,
h5,
h6 {
  -webkit-font-feature-settings: "liga" off, "kern" off, "calt" off;
  font-feature-settings: "liga" off, "kern" off, "calt" off;
}

/* Force le même rendu pour tous les caractères */
* {
  font-variant-ligatures: none !important;
  font-kerning: none !important;
  text-rendering: geometricPrecision !important;
}

/* Correction spécifique pour League Spartan et Nanum Myeongjo */
.pbmit-title,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-variant: normal !important;
  font-feature-settings: normal !important;
  -webkit-font-feature-settings: normal !important;
}

/* Primary accents */
.a-primary,
.text-primary {
  color: var(--color-primary) !important;
}

.bg-primary {
  background-color: var(--color-primary) !important;
}

.border-primary {
  border-color: var(--color-primary) !important;
}

/* Buttons general normalization to elegant style */
.btn,
.pbmit-rev-btn,
a.btn,
button {
  font-family: inherit;
}

.btn-primary,
.pbmit-rev-btn {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
}

.btn-primary:hover,
.pbmit-rev-btn:hover {
  filter: brightness(0.95);
}

/* Slider title override (remove Orbitron look) */
.pbmit-slide-title,
.pbmit-slide-title-stoke {
  font-family: 'Nanum Myeongjo', serif !important;
  text-transform: none;
}

/* Sections spacing and subtle elegance */
.section-welcome,
.section-services,
.section-classes {
  padding: 60px 0;
}

.section-welcome p,
.section-services p,
.section-classes p {
  color: var(--color-muted);
}

/* Service and class boxes with clean borders */
.service-box,
.class-box {
  background: var(--pbmit-global-2-color);
  border: 1px solid var(--pbmit-global-color);
  padding: 24px;
  border-radius: 10px;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}

.service-box:hover,
.class-box:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Make class boxes have uniform height with scrollable text area */
.class-box .class-image {
  flex-shrink: 0;
}

.class-box .class-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Limit the description area height and enable scrolling for overflow to keep blocks homogeneous */
.class-box .class-info .class-desc {
  position: relative;
  max-height: 260px;
  /* Only the text block scrolls */
  overflow: auto;
  scrollbar-width: thin;
  /* Firefox */
  overflow-y: scroll;
  /* always show vertical scrollbar when applicable */
  scrollbar-gutter: stable both-edges;
  /* keep space for scrollbar */
}

/* Strong visible scrollbar styles */
.class-box .class-info .class-desc::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.class-box .class-info .class-desc::-webkit-scrollbar-track {
  background: rgba(184, 154, 96, 0.15);
  border-radius: 8px;
}

.class-box .class-info .class-desc::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.6);
}

/* Firefox */
.class-box .class-info .class-desc {
  scrollbar-color: var(--color-primary) rgba(184, 154, 96, 0.15);
}

/* Subtle scroll hint (fade at bottom) */
.class-box .class-info .class-desc::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0), rgba(10, 10, 10, 0.9));
}

/* Ensure CTA button stays visible and non-scrolling */
.class-box .class-info .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* Marquee area adjustments if dark */
.pbmit-bg-color-blackish,
.pbmit-marquee-effect-section {
  background-color: var(--pbmit-global-2-color) !important;
}

.pbmit-marquee-effect-section h2,
.pbmit-marquee-effect-section .pbmit-element-title {
  color: var(--color-white) !important;
  font-family: 'Nanum Myeongjo', serif;
}

/* Links */
a {
  color: var(--color-primary);
}

a:hover {
  color: #a88752;
}

/* STUDI'OR intro styling to match services/classes */
.section-studior-intro p {
  color: var(--color-muted);
}

.section-studior-intro .pbmit-featured-wrapper {
  font-size: 22px;
  color: var(--color-primary);
  line-height: 1;
}

.section-studior-intro .service-box h4,
.section-studior-intro .service-box h5 {
  color: var(--color-white);
}

.section-about p,
.section-classes-intro p,
.section-classes-list p {
  color: var(--color-muted) !important;
}

.floating-btn {
  position: fixed;
  bottom: 20px;
  left: 100px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  text-decoration: none;
  background: linear-gradient(135deg, #ff006e, #ffbe0b);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 9999;

  /* clé : offset contrôlé par JS */
  --offsetY: 0px;
  transform: translate(-50%, var(--offsetY));

  animation: pulse 2s infinite;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.floating-btn:hover {
  /* on garde l'offset et on ajoute seulement le scale/rotate */
  transform: translate(-50%, var(--offsetY)) scale(1.15) rotate(5deg);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}


/* Animation d’impulsion qui respecte aussi l’offset */
@keyframes pulse {
  0% {
    transform: translate(-50%, var(--offsetY)) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 110, 0.6);
  }

  70% {
    transform: translate(-50%, var(--offsetY)) scale(1.08);
    box-shadow: 0 0 0 20px rgba(255, 0, 110, 0);
  }

  100% {
    transform: translate(-50%, var(--offsetY)) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 110, 0);
  }
}


/* Spacing utility for vertical gaps between major sections */
.section-gap {
  margin-top: 48px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .section-gap {
    margin-top: 72px;
    margin-bottom: 72px;
  }
}

@media (min-width: 1200px) {
  .section-gap {
    margin-top: 88px;
    margin-bottom: 88px;
  }
}

.diamond-list {
  list-style: none;
  /* Supprime les puces par défaut */
  padding-left: 1.2em;
  /* espace à gauche pour le symbole personnalisé */
}

.diamond-list li {
  position: relative;
  margin-bottom: 0.5em;
  /* petit espacement vertical */
}

.diamond-list li::before {
  content: "◆";
  position: absolute;
  left: -1.2em;
  background: linear-gradient(45deg, #ffdf00, #d4af37, #b8860b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.9em;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  animation: shine 2s infinite ease-in-out;
}

@keyframes shine {

  0%,
  100% {
    color: #daa520;
  }

  50% {
    color: #ffd700;
  }
}


.carousel-item img {
  width: 100%;
  height: 200px;
  /* 👈 adjust this height as needed */
  object-fit: cover;
  /* crop nicely while keeping proportions */
  object-position: center;
  /* center the image crop */
  border-radius: 12px;
  /* optional rounded corners */
}

/* Guide pages: exercise cards */
.guide-exercise {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pbmit-global-color);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
  transition: border-color .2s ease;
}

.guide-exercise:hover {
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.07);
}

.guide-exercise h3,
.guide-exercise h4 {
  color: var(--pbmit-global-color);
  margin-bottom: 16px;
}

.guide-exercise p {
  color: var(--color-muted) !important;
  margin-bottom: 8px;
  line-height: 1.7;
}

.guide-exercise strong {
  color: var(--color-white) !important;
}

.guide-exercise .badge {
  font-size: 0.8rem;
  padding: 6px 12px;
  margin-top: 12px;
}

.guide-section-title {
  color: var(--pbmit-global-color) !important;
  border-bottom: 2px solid var(--pbmit-global-color);
  padding-bottom: 10px;
  margin-top: 48px;
  margin-bottom: 24px;
}

.btn-outline-primary {
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
}

/* Guide pagination */
.pagination .page-link {
  background-color: transparent;
  border-color: var(--pbmit-global-color);
  color: var(--color-primary);
}

.pagination .page-item.active .page-link {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.pagination .page-link:hover {
  background-color: rgba(184, 154, 96, 0.2);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Blog article content */
.post-content h2 {
  color: var(--pbmit-global-color);
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.post-content h3 {
  color: var(--pbmit-global-color);
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.post-content p {
  color: var(--color-muted) !important;
  line-height: 1.8;
  margin-bottom: 16px;
}

.post-content ul,
.post-content ol {
  color: var(--color-muted);
  margin-bottom: 16px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.post-content strong {
  color: var(--color-white) !important;
}

.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.post-content a:hover {
  color: #a88752;
}

.post-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 16px;
  margin: 24px 0;
  font-style: italic;
  color: var(--color-muted);
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table thead th {
  color: var(--color-primary) !important;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px;
  border-bottom: 2px solid var(--color-primary);
  white-space: nowrap;
}

.admin-table tbody td {
  color: var(--color-white) !important;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.admin-table .post-title-cell {
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table .post-title-cell a {
  color: var(--color-white) !important;
  text-decoration: none;
}

.admin-table .post-title-cell a:hover {
  color: var(--color-primary) !important;
}

.admin-table .post-date {
  color: var(--color-muted) !important;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Admin stats bar */
.admin-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px 24px;
  flex: 1;
  text-align: center;
}

.admin-stat-card .stat-number {
  font-size: 2rem;
  color: var(--color-primary);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.admin-stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Admin form inputs */
.admin-form .form-control,
.admin-form .form-select {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.admin-form .form-control:focus,
.admin-form .form-select:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(184, 154, 96, 0.15);
  color: var(--color-white);
}

.admin-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.admin-form label {
  color: var(--color-primary) !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.admin-form textarea.form-control {
  min-height: 400px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
}

.admin-form textarea.form-control-excerpt {
  min-height: 80px;
  font-family: inherit;
}

.admin-form .form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  width: 20px;
  height: 20px;
}

.admin-form .form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.admin-form .form-check-label {
  color: var(--color-white) !important;
  margin-left: 4px;
}

/* Admin alert */
.admin-alert-success {
  background-color: rgba(25, 135, 84, 0.15);
  border: 1px solid rgba(25, 135, 84, 0.4);
  color: #75b798;
  border-radius: 8px;
  padding: 12px 18px;
}

/* Admin danger zone */
.admin-danger-zone {
  background: rgba(220, 53, 69, 0.06);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 10px;
  padding: 24px;
}

.admin-danger-zone h4 {
  color: #dc3545 !important;
  font-size: 1rem;
  margin-bottom: 8px;
}

.admin-danger-zone p {
  color: rgba(220, 53, 69, 0.7) !important;
  font-size: 0.9rem;
}

/* Admin action buttons */
.admin-actions .btn {
  padding: 5px 14px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-outline-danger {
  color: #dc3545 !important;
  border-color: rgba(220, 53, 69, 0.4) !important;
}

.btn-outline-danger:hover {
  background-color: #dc3545 !important;
  color: #fff !important;
}

.btn-outline-secondary {
  color: var(--color-muted) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--color-white) !important;
}