: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 */
}