/* ============================================================
   config/static/css/blocks_addon.css
   Styles complémentaires pour les blocs StreamField
   À importer dans base.html après obsidian.css
   ============================================================ */

/* ── Utilitaires taille de texte ─────────────────────────── */
.lm-text--sm  { font-size: 0.82rem; }
.lm-text--lg  { font-size: 1.1rem; }
.lm-text--xl  { font-size: 1.4rem; }
.lm-text--2xl { font-size: 1.8rem; }

/* ── Utilitaires alignement ──────────────────────────────── */
.lm-align--center { text-align: center; }
.lm-align--right  { text-align: right; }
.lm-align--left   { text-align: left; }

/* ── Titre h3/h4 ─────────────────────────────────────────── */
.lm-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1rem;
}
.lm-titre em { font-style: italic; color: var(--gold-p); }
.lm-titre--sm {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

/* ── Paragraphe ─────────────────────────────────────────────*/
.lm-para {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 72ch;
}
.lm-align--center .lm-para,
.lm-para.lm-align--center { margin-left: auto; margin-right: auto; }

/* ── Citation ────────────────────────────────────────────── */
.lm-citation {
  border-left: 3px solid var(--gold);
  padding: 1.2rem 2rem;
  margin: 2rem 0;
}
.lm-citation__texte {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
.lm-citation__auteur {
  display: block;
  font-size: 0.75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.8rem;
  font-style: normal;
}

/* ── Bouton — wrapper alignement ─────────────────────────── */
.lm-bouton-wrap { margin: 1.5rem 0; }
.lm-bouton-wrap.lm-align--center { text-align: center; }
.lm-bouton-wrap.lm-align--right  { text-align: right; }

/* Tailles de boutons */
.lm-btn-primary.lm-btn--sm,
.lm-btn-ghost.lm-btn--sm { padding: 0.7rem 1.8rem; font-size: 0.6rem; }
.lm-btn-primary.lm-btn--lg,
.lm-btn-ghost.lm-btn--lg  { padding: 1.4rem 3.5rem; font-size: 0.78rem; }

/* Couleurs custom via CSS vars locales */
.lm-btn-custom-* {
  background: var(--btn-bg-custom, var(--gold));
  color: var(--btn-text-custom, var(--bg));
}

/* ── Image ───────────────────────────────────────────────── */
.lm-image { margin: 2rem auto; }
.lm-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.lm-image--large  { max-width: 1200px; }
.lm-image--normal { max-width: 800px; }
.lm-image--pleine { max-width: 100%; }
.lm-image__legende {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: .1em;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ── Espaceur ────────────────────────────────────────────── */
.lm-espaceur--sm  { height: 1rem; }
.lm-espaceur--md  { height: 3rem; }
.lm-espaceur--lg  { height: 6rem; }
.lm-espaceur--xl  { height: 10rem; }

/* ── Séparateur ──────────────────────────────────────────── */
.lm-separateur { margin: 3rem auto; text-align: center; }
.lm-separateur--ligne {
  height: 1px;
  background: var(--border);
  max-width: 600px;
}
.lm-separateur--or {
  height: 1px;
  background: var(--gold);
  opacity: 0.35;
  max-width: 400px;
}
.lm-separateur--ornement {
  height: auto;
  background: none;
}
.lm-separateur__ornement {
  font-size: 1rem;
  color: var(--gold);
  opacity: 0.5;
  letter-spacing: 1rem;
}

/* ── Deux colonnes ───────────────────────────────────────── */
.lm-colonnes {
  display: grid;
  gap: 3rem;
  margin: 2rem 0;
}
.lm-colonnes--1-1 { grid-template-columns: 1fr 1fr; }
.lm-colonnes--2-1 { grid-template-columns: 2fr 1fr; }
.lm-colonnes--1-2 { grid-template-columns: 1fr 2fr; }

@media (max-width: 768px) {
  .lm-colonnes--1-1,
  .lm-colonnes--2-1,
  .lm-colonnes--1-2 { grid-template-columns: 1fr; }
}

/* ── Wrapper page builder (padding du contenu) ───────────── */
.lm-page-builder {
  padding: 4rem;
}
@media (max-width: 900px) {
  .lm-page-builder { padding: 2rem; }
}

/* ── Section Tarif Detail ────────────────────────────────────────────────── */
.lm-tarif-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5rem 4rem;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.lm-tarif-detail__img { overflow: hidden; }
.lm-tarif-detail__img img { width: 100%; height: 100%; object-fit: cover; }
.lm-tarif-detail__body { display: flex; flex-direction: column; gap: 1.5rem; justify-content: center; }
.lm-tarif-detail__nom { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 300; line-height: 1.1; color: var(--text); }
.lm-tarif-detail__nom em { font-style: italic; color: var(--gold-p); }
.lm-tarif-detail__intro { font-size: 0.9rem; line-height: 1.9; color: var(--muted); }
.lm-tarif-detail__prix { display: flex; gap: 2rem; flex-wrap: wrap; }
.lm-tarif-detail__prix-item { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.lm-tarif-detail__duree { font-size: 0.65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.lm-tarif-detail__montant { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 300; color: var(--gold-l); line-height: 1; }

@media (max-width: 768px) {
  .lm-tarif-detail { grid-template-columns: 1fr; padding: 3rem 2rem; gap: 2rem; }
}


/* ============================================================
   MASSAGE DETAIL PAGE
   ============================================================ */

/* ── Hero plein écran ── */
.lm-massage-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 0 6rem 5rem;
  overflow: hidden;
}

.lm-massage-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lm-massage-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.lm-massage-hero:hover .lm-massage-hero__bg img {
  transform: scale(1.04);
}

.lm-massage-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,7,6,0.92) 0%,
    rgba(8,7,6,0.45) 50%,
    rgba(8,7,6,0.15) 100%
  );
  z-index: 1;
}

html[data-theme="light"] .lm-massage-hero__overlay {
  background: linear-gradient(
    to top,
    rgba(26,22,17,0.88) 0%,
    rgba(26,22,17,0.40) 50%,
    rgba(26,22,17,0.10) 100%
  );
}

.lm-massage-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.lm-massage-hero__back {
  font-size: 0.65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(247,242,232,0.55);
  transition: color .3s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.lm-massage-hero__back:hover {
  color: var(--gold);
}

.lm-massage-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 1;
  color: #f7f2e8;
  margin-bottom: 1.5rem;
}

.lm-massage-hero__prix {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.lm-massage-hero__prix-item {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247,242,232,0.7);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.lm-massage-hero__prix-item em {
  font-style: normal;
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: .2em;
}

.lm-massage-hero__prix-sep {
  color: rgba(247,242,232,0.25);
  font-size: 1.2rem;
}

.lm-massage-hero__actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Contenu texte ── */
.lm-massage-body {
  padding: 7rem 6rem;
  background: var(--bg);
}

.lm-massage-body__inner {
  max-width: 820px;
  margin: 0 auto;
}

.lm-massage-body__intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.lm-massage-body__content {
  margin-bottom: 4rem;
}

.lm-massage-body__cta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ── Espace avant footer ── */
.lm-massage-footer-space {
  height: 6rem;
  background: var(--bg);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .lm-massage-hero {
    padding: 0 2rem 4rem;
    min-height: 60vh;
  }
  .lm-massage-hero__title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  .lm-massage-body {
    padding: 4rem 2rem;
  }
  .lm-massage-hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 540px) {
  .lm-massage-hero {
    min-height: 55vh;
    padding: 0 1.5rem 3rem;
  }
  .lm-massage-body {
    padding: 3rem 1.5rem;
  }
}


/* ============================================================
   TEXTE WYSIWYG — alignements + styles
   ============================================================ */
.lm-wysiwyg { line-height: 1.8; color: var(--text); }
.lm-wysiwyg.lm-align--left    { text-align: left; }
.lm-wysiwyg.lm-align--center  { text-align: center; }
.lm-wysiwyg.lm-align--right   { text-align: right; }
.lm-wysiwyg.lm-align--justify { text-align: justify; }
.lm-wysiwyg h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 300; margin: 2rem 0 1rem; color: var(--text); }
.lm-wysiwyg h3 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 400; margin: 1.5rem 0 .8rem; color: var(--text); }
.lm-wysiwyg h4 { font-family: 'Jost', sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin: 1.5rem 0 .8rem; color: var(--gold); }
.lm-wysiwyg p  { margin-bottom: 1.2em; }
.lm-wysiwyg strong { font-weight: 600; color: var(--text); }
.lm-wysiwyg em { font-style: italic; color: var(--gold-p); }
.lm-wysiwyg s  { text-decoration: line-through; opacity: .6; }
.lm-wysiwyg u  { text-decoration: underline; text-underline-offset: 3px; }
.lm-wysiwyg ul, .lm-wysiwyg ol { padding-left: 1.5rem; margin-bottom: 1.2em; }
.lm-wysiwyg ul li { list-style: disc; margin-bottom: .4em; }
.lm-wysiwyg ol li { list-style: decimal; margin-bottom: .4em; }
.lm-wysiwyg blockquote { border-left: 2px solid var(--gold); padding: 1rem 1.5rem; margin: 1.5rem 0; font-style: italic; color: var(--muted); background: var(--bg2); }
.lm-wysiwyg a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.lm-wysiwyg a:hover { color: var(--gold-l); }


/* ============================================================
   MISE EN PAGE COLONNES
   ============================================================ */
.lm-mep {
  display: grid;
  width: 100%;
  padding: 3rem 4rem;
  box-sizing: border-box;
}

/* ── Gaps ── */
.lm-mep--gap-sm { gap: 1rem; }
.lm-mep--gap-md { gap: 2rem; }
.lm-mep--gap-lg { gap: 4rem; }
.lm-mep--gap-xl { gap: 6rem; }

/* ── Alignement vertical ── */
.lm-mep--valign-start   { align-items: start; }
.lm-mep--valign-center  { align-items: center; }
.lm-mep--valign-end     { align-items: end; }
.lm-mep--valign-stretch { align-items: stretch; }

/* ── 2 colonnes ── */
.lm-mep--2col-1-1   { grid-template-columns: 1fr 1fr; }
.lm-mep--2col-2-1   { grid-template-columns: 2fr 1fr; }
.lm-mep--2col-1-2   { grid-template-columns: 1fr 2fr; }
.lm-mep--2col-3-1   { grid-template-columns: 3fr 1fr; }
.lm-mep--2col-1-3   { grid-template-columns: 1fr 3fr; }

/* ── 3 colonnes ── */
.lm-mep--3col-1-1-1 { grid-template-columns: 1fr 1fr 1fr; }
.lm-mep--3col-2-1-1 { grid-template-columns: 2fr 1fr 1fr; }
.lm-mep--3col-1-2-1 { grid-template-columns: 1fr 2fr 1fr; }
.lm-mep--3col-1-1-2 { grid-template-columns: 1fr 1fr 2fr; }

/* ── 4 colonnes ── */
.lm-mep--4col-1-1-1-1 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.lm-mep--4col-2-1-1-1 { grid-template-columns: 2fr 1fr 1fr 1fr; }
.lm-mep--4col-1-1-1-2 { grid-template-columns: 1fr 1fr 1fr 2fr; }

/* ── Colonnes individuelles ── */
.lm-mep__col { min-width: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .lm-mep { padding: 2rem 1.5rem; }
  .lm-mep--2col-1-1, .lm-mep--2col-2-1, .lm-mep--2col-1-2,
  .lm-mep--2col-3-1, .lm-mep--2col-1-3,
  .lm-mep--3col-1-1-1, .lm-mep--3col-2-1-1, .lm-mep--3col-1-2-1, .lm-mep--3col-1-1-2,
  .lm-mep--4col-1-1-1-1, .lm-mep--4col-2-1-1-1, .lm-mep--4col-1-1-1-2 {
    grid-template-columns: 1fr;
  }
}


/* ── Couleurs inline (appliquées mot par mot dans l'éditeur Draftail) ── */
.couleur-or     { color: #c9a96e; }
.couleur-or-pale{ color: #f5e8cc; }
.couleur-noir   { color: #000000; }
.couleur-bleu   { color: #1a56db; }
.couleur-rouge  { color: #c0392b; }
.couleur-vert   { color: #27ae60; }
.couleur-blanc  { color: #f7f2e8; }
.couleur-brun   { color: #1a1611; }

/* Mode sombre — ajustements si nécessaire */
html[data-theme="dark"] .couleur-noir { color: #e0e0e0; }
html[data-theme="dark"] .couleur-brun { color: #e8ddd0; }

/* ── Admin Draftail — boutons couleurs colorés ── */
.Draftail-toolbar [data-draftail-style-button="COULEUR_OR"]     { color: #c9a96e !important; font-weight: bold; }
.Draftail-toolbar [data-draftail-style-button="COULEUR_NOIR"]   { color: #000000 !important; background: #eee; font-weight: bold; }
.Draftail-toolbar [data-draftail-style-button="COULEUR_BLEU"]   { color: #1a56db !important; font-weight: bold; }
.Draftail-toolbar [data-draftail-style-button="COULEUR_ROUGE"]  { color: #c0392b !important; font-weight: bold; }
.Draftail-toolbar [data-draftail-style-button="COULEUR_VERT"]   { color: #27ae60 !important; font-weight: bold; }


/* ── Double bouton ── */
.lm-double-btn {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem 4rem;
}

.lm-btn-retour {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s, gap 0.3s;
  background: transparent;
  border: none;
  padding: 0;
}

.lm-btn-retour:hover {
  color: var(--gold);
  gap: 0.9rem;
}

.lm-btn-retour__fleche {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.3s;
}

.lm-btn-retour:hover .lm-btn-retour__fleche {
  transform: translateX(-3px);
}

@media (max-width: 540px) {
  .lm-double-btn {
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
}