﻿/* ========================
   CUSTOM PROPERTIES
======================== */
:root {
  --bg: #0c0c0c;
  --bg-alt: #131313;
  --bg-card: #181818;
  --accent: #9B5080;
  --accent-hover: #B5609A;
  --text: #ede9e3;
  --text-muted: #7a766f;
  --border: #282828;
  --radius: 8px;
  --container: 1200px;
}

/* Override GeneratePress qui définit --accent en :root */
body {
  --accent: #9B5080;
  --accent-hover: #B5609A;
}

/* ========================
   RESET & BASE
======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html,
body,
body.home,
#page,
#content,
.site,
.site-content {
  background: var(--bg) !important;
  color: var(--text) !important;
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Supprime le layout GeneratePress */
.site-header,
.site-footer,
.generate-back-to-top,
#generate-back-to-top { display: none !important; }

#page { padding: 0 !important; }
.site-main, #primary, .content-area { float: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }

/* Reset liens */
a, a:visited { color: var(--text) !important; }
a:hover { color: var(--accent) !important; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none !important; }
img { display: block; max-width: 100%; }
select { appearance: auto; }

/* ========================
   LAYOUT
======================== */
.ml-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.ml-section { padding: 56px 0; }
.ml-section--alt { background: var(--bg-alt); }

/* ========================
   HEADER
======================== */
.ml-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.ml-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.ml-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.ml-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ml-nav a {
  font-size: 14px;
  color: var(--text) !important;
  transition: color 0.2s;
}
.ml-nav a:not(.ml-btn):hover { color: var(--accent) !important; }
.ml-nav a.is-active { color: var(--accent) !important; }
.ml-nav .ml-btn { color: #fff !important; }

.ml-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.ml-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ========================
   BUTTONS
======================== */
.ml-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}

.ml-btn--primary {
  background: var(--accent) !important;
  color: #fff !important;
}
.ml-btn--primary:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
  color: #fff !important;
}

.ml-book .ml-btn--primary,
.ml-book .ml-btn--primary:hover,
.ml-book-preview .ml-btn--primary,
.ml-book-preview .ml-btn--primary:hover {
  color: var(--btn-text, #0c0c0c);
}

.ml-btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.ml-btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ml-btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 12px 16px;
}
.ml-btn--ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ========================
   FORMULAIRES
======================== */
.ml-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ml-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ml-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ml-form__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.ml-form__input {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text) !important;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  width: 100%;
}

.ml-form__input:focus {
  outline: none;
  border-color: var(--accent) !important;
}

.ml-form__input::placeholder {
  color: var(--text-muted);
}

.ml-form__textarea {
  resize: vertical;
}

.ml-form__checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ml-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}

.ml-form__checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
}

.ml-form__checkbox a {
  color: var(--accent) !important;
}

.ml-form__hint {
  font-size: 13px;
  color: var(--text-muted);
}

.ml-form__hint a {
  color: var(--accent) !important;
}

.ml-form-message {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  border: 1px solid var(--border);
}

.ml-form-message--success {
  border-color: rgba(120, 180, 120, 0.4);
  background: rgba(120, 180, 120, 0.08);
}

.ml-form-message--error {
  border-color: rgba(200, 90, 90, 0.4);
  background: rgba(200, 90, 90, 0.08);
}

.ml-verif-cta {
  border-color: rgba(155, 80, 128, 0.35);
  background: rgba(155, 80, 128, 0.07);
}
.ml-verif-cta strong { color: var(--accent); }
.ml-verif-cta ol { margin: 10px 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.ml-verif-cta li { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.ml-verif-cta li strong { color: var(--text); font-weight: 600; }

.ml-form-message p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.ml-form-message a {
  color: var(--accent) !important;
}

@media (max-width: 540px) {
  .ml-form__row {
    grid-template-columns: 1fr;
  }
}

/* ========================
   BOOK PERSONNALISÉ
======================== */
/* Couleurs libres : --accent et --bg sont fixées en inline-style par profil, le reste en dérive */
.ml-book {
  --accent-hover: color-mix(in srgb, var(--accent) 85%, white 15%);
  --bg-alt: color-mix(in srgb, var(--bg) 92%, white 8%);
  --bg-card: color-mix(in srgb, var(--bg) 88%, white 12%);
  --border: color-mix(in srgb, var(--bg) 78%, white 22%);
  --book-radius: var(--radius);
  background: var(--bg);
}

.ml-book .ml-btn,
.ml-book__tarif,
.ml-book__gallery-item {
  border-radius: var(--book-radius);
}

/* Typographies */
.ml-book--police-playfair  { --book-font: 'Playfair Display', serif; }
.ml-book--police-cormorant { --book-font: 'Cormorant Garamond', serif; }
.ml-book--police-italiana  { --book-font: 'Italiana', serif; }
.ml-book--police-marcellus { --book-font: 'Marcellus', serif; }

.ml-book__name,
.ml-book__section-title,
.ml-book__tarif strong {
  font-family: var(--book-font, 'Playfair Display', serif);
}

/* Ambiances */
.ml-book--ambiance-minimal {
  --book-radius: 8px;
}

.ml-book--ambiance-ornemental {
  --book-radius: 8px;
  background: radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 12%, var(--bg) 88%) 0%, var(--bg) 65%);
}
.ml-book--ambiance-ornemental .ml-book__section-title {
  position: relative;
  padding-bottom: 14px;
}
.ml-book--ambiance-ornemental .ml-book__section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.ml-book--ambiance-moderne {
  --book-radius: 0px;
}
.ml-book--ambiance-moderne .ml-book__section-title {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 17px;
}
.ml-book--ambiance-moderne .ml-book__hero-portrait {
  border-radius: 4px;
}

.ml-book--ambiance-romantique {
  --book-radius: 18px;
}
.ml-book--ambiance-romantique .ml-book__tagline {
  font-style: italic;
}

.ml-book__hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-card);
}

.ml-book__hero-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ml-book__hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 10%, transparent) 0%, color-mix(in srgb, var(--bg) 95%, transparent) 100%);
}

.ml-book__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  animation: ml-book-fade-up 0.6s ease both;
}

@keyframes ml-book-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ml-book__name {
  font-size: calc(40px * var(--book-font-scale, 1));
  color: var(--text);
  margin-bottom: 8px;
}

.ml-book__tagline {
  font-size: calc(17px * var(--book-font-scale, 1));
  color: color-mix(in srgb, var(--text) 85%, transparent);
  margin-bottom: 16px;
  font-style: italic;
}

.ml-book__badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ml-badge-verified--book {
  background: color-mix(in srgb, var(--text) 15%, transparent);
  color: var(--text) !important;
}

.ml-badge-verified--green {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #22c55e !important;
}

.ml-book__ville {
  font-size: calc(13px * var(--book-font-scale, 1));
  color: color-mix(in srgb, var(--text) 75%, transparent);
}

.ml-book__tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: calc(15px * var(--book-font-scale, 1));
  font-weight: 400;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--text) 85%, transparent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 20%, transparent);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.ml-book__tel:hover {
  color: var(--text);
  border-bottom-color: color-mix(in srgb, var(--text) 50%, transparent);
}

/* Bouton flottant "Contenu privé" sur les books */
.ml-prive-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e91e8c;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: 0 4px 20px rgba(233, 30, 140, .45);
  transition: transform .2s, box-shadow .2s;
}
.ml-prive-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(233, 30, 140, .6);
  color: #fff;
}
.ml-prive-fab__lock { font-size: 16px; }
@media (max-width: 480px) {
  .ml-prive-fab__text { display: none; }
  .ml-prive-fab { padding: 14px; border-radius: 50%; }
  .ml-prive-fab__lock { font-size: 20px; }
}
/* Lien CTA hero fallback */
.ml-book__prive-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: calc(13px * var(--book-font-scale, 1));
  color: #e91e8c;
  text-decoration: none;
  border: 1px solid rgba(233, 30, 140, .4);
  border-radius: 6px;
  padding: 8px 18px;
  transition: background .2s;
}
.ml-book__prive-cta:hover { background: rgba(233, 30, 140, .12); }

.ml-book__hero-portrait {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--text) 85%, transparent);
  margin-bottom: 16px;
}

/* Modèle "Onglets" */
.ml-book-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.ml-book-tabs__btn {
  padding: 12px 18px;
  font-size: calc(14px * var(--book-font-scale, 1));
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s, border-color 0.2s;
}
.ml-book-tabs__btn:hover { color: var(--text); }
.ml-book-tabs__btn.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Modèle "Menu latéral" */
.ml-book-sidebar-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
.ml-book-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border);
  padding-right: 24px;
  align-self: start;
}
.ml-book-sidebar__btn {
  text-align: left;
  padding: 12px 8px;
  font-size: calc(15px * var(--book-font-scale, 1));
  background: none;
  border: none;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s, border-color 0.2s;
}
.ml-book-sidebar__btn:hover { color: var(--text); }
.ml-book-sidebar__btn.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}
.ml-book-sidebar__cta {
  margin-top: 16px;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.ml-book-sidebar__cta:hover {
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .ml-book-sidebar-layout { grid-template-columns: 1fr; }
  .ml-book-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 16px;
    margin-bottom: 24px;
  }
}

.ml-book__body {
  padding: 56px 24px 40px;
}

.ml-book__section {
  margin-bottom: 48px;
}

.ml-book__section-title {
  font-size: calc(22px * var(--book-font-scale, 1));
  margin-bottom: 20px;
  color: var(--accent);
}

.ml-book__bio, .ml-book__dispos {
  font-size: calc(15px * var(--book-font-scale, 1));
  line-height: 1.8;
  color: var(--text);
  max-width: 680px;
}
.ml-book__bio p { margin: 0 0 16px; }
.ml-book__bio p:last-child { margin-bottom: 0; }
.ml-book__bio ul, .ml-book__bio ol { padding-left: 22px; margin: 0 0 16px; }
.ml-book__bio a { color: var(--accent); text-decoration: underline; }

.ml-book__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: calc(15px * var(--book-font-scale, 1));
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  transition: color 0.2s;
}
.ml-book__contact-item:last-child { border-bottom: none; }
.ml-book__contact-item:hover { color: var(--accent); }
.ml-book__contact-icon { font-size: 18px; flex-shrink: 0; width: 28px; text-align: center; }
.ml-book__contact-value { letter-spacing: 0.03em; }
.ml-book__liens { display: flex; flex-direction: column; gap: 4px; max-width: 420px; }
.ml-book__liens .ml-btn { align-self: flex-start; margin-top: 8px; }

.ml-book__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ml-book__gallery-item {
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
  transition: box-shadow 0.3s;
}

.ml-book__gallery-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.ml-book__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.ml-book__gallery-item:hover img {
  transform: scale(1.05);
}

.ml-book__video {
  max-width: 680px;
}

.ml-book__video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
}

.ml-book__tarifs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ml-book__tarif {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
  transition: transform 0.2s, border-color 0.2s;
}

.ml-book__tarif:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.ml-book-tabpanel {
  animation: ml-book-fade-up 0.35s ease both;
}

.ml-book__tarif span {
  font-size: calc(13px * var(--book-font-scale, 1));
  color: var(--text-muted);
}

.ml-book__tarif strong {
  font-size: calc(22px * var(--book-font-scale, 1));
  color: var(--accent);
  font-family: 'Playfair Display', serif;
}

.ml-book__liens {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ml-book__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.ml-book__footer {
  text-align: center;
  padding: 24px 0 48px;
  font-size: calc(13px * var(--book-font-scale, 1));
  color: var(--text-muted);
}

.ml-book__footer a {
  color: var(--accent) !important;
}

.ml-lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.ml-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.ml-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  transform: scale(0.97);
  transition: transform 0.2s ease;
}

.ml-lightbox.open img {
  transform: scale(1);
}

.ml-lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.ml-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 48px;
  line-height: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.ml-lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.ml-lightbox__nav--prev { left: 24px; }
.ml-lightbox__nav--next { right: 24px; }

@media (max-width: 768px) {
  .ml-book__name { font-size: calc(30px * var(--book-font-scale, 1)); }
  .ml-book__gallery { grid-template-columns: repeat(2, 1fr); }
  .ml-book__hero { min-height: 320px; }
}

/* ========================
   TABLEAU DE BORD (MON COMPTE)
======================== */
.ml-dashboard-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.ml-dashboard-status > *, .ml-dashboard-status .ml-dashboard-status__item {
  flex: 1 1 140px;
  min-width: 0;
}

.ml-dashboard-status__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ml-dashboard-status__item span {
  font-size: 12px;
  color: var(--text-muted);
}

.ml-dashboard-status__item strong {
  font-size: 16px;
}

.ml-dashboard-galerie {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ml-dashboard-galerie__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.ml-dashboard-galerie__item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.ml-dashboard-galerie__item span,
.ml-dashboard-galerie__item > label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.ml-set-cover-btn {
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: none;
  color: rgba(255,255,255,.4);
  border-radius: 3px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.ml-set-cover-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.ml-dashboard-galerie__item.is-cover .ml-set-cover-btn {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.ml-dashboard-galerie__item.is-cover img {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
.ml-cover-badge {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: .04em;
}

@media (max-width: 768px) {
  .ml-dashboard-status > *, .ml-dashboard-status .ml-dashboard-status__item {
    flex: 1 1 calc(50% - 6px);
    max-width: calc(50% - 6px);
  }
}

/* ========================
   OUTIL FLOUTAGE VISAGE
======================== */
.ml-flouteur {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.ml-flouteur__steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ml-flouteur__step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ml-flouteur__step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #0c0c0c;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ml-flouteur__step strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.ml-flouteur__step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.ml-flouteur__tool {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.ml-flouteur__file {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.ml-flouteur__canvas-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

#ml-flouteur-canvas {
  display: none;
  max-width: 100%;
  cursor: crosshair;
  touch-action: none;
}

.ml-flouteur__placeholder {
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 0;
}

.ml-flouteur__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.ml-flouteur__controls input[type="range"] {
  flex-shrink: 0;
  width: 140px;
}

@media (max-width: 768px) {
  .ml-flouteur {
    grid-template-columns: 1fr;
  }
}

/* ========================
   HERO
======================== */
.ml-hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: 20% 38%;
  background-repeat: no-repeat;
}

.ml-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.92) 38%, rgba(0,0,0,0.50) 65%, rgba(0,0,0,0.42) 100%);
  pointer-events: none;
  z-index: 0;
}

.ml-hero__inner { display: contents; }
.ml-hero__content { max-width: 680px; position: relative; z-index: 1; }
.ml-hero__visual { display: none; }
.ml-hero__visual { display: none; }
.ml-hero__img {
  display: none;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
}

.ml-hero__title {
  font-size: clamp(32px, 5vw, 62px);
  white-space: normal;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.ml-hero__tagline {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin-top: -12px;
  margin-bottom: 28px;
  font-style: italic;
  letter-spacing: 0.01em;
}
.ml-hero__subtitle {
  font-size: 22px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.7;
}

.ml-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 80px;
  margin-bottom: 48px;
}

.ml-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ml-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(184, 150, 110, 0.07);
  border: 1px solid rgba(184, 150, 110, 0.18);
  font-size: 13px;
  color: var(--accent);
}
.ml-hero__badge::before { content: '✓'; font-weight: 700; }

/* ========================
   SECTION HEADERS
======================== */
.ml-section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.ml-section-header--center { text-align: center; justify-content: center; }

.ml-section-link { font-size: 14px; color: var(--accent); white-space: nowrap; }
.ml-section-link:hover { color: var(--accent-hover); }

/* Stats homepage */
.ml-stats-section { padding: 0 0 8px; }
.ml-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.ml-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  border-right: 1px solid var(--border);
}
.ml-stat:last-child { border-right: none; }
.ml-stat__num { font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--accent); font-family: 'Playfair Display', serif; }
.ml-stat__label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Ville sur les cards homepage */
.ml-card__ville { font-size: 12px; color: var(--text-muted); margin: 2px 0 4px; }

.ml-section-title {
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 12px;
}

.ml-section-text {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
}
.ml-section-header--center .ml-section-text { margin: 0 auto; }

/* ========================
   COMPARAISON
======================== */
.ml-regles {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ml-regle {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.ml-regle:first-child { border-top: 1px solid var(--border); }
.ml-regle__je {
  font-size: 16px;
  color: var(--text);
}
.ml-regle__tu {
  font-size: 16px;
  color: var(--text-muted);
}
.ml-regle__arrow {
  text-align: center;
  color: var(--accent);
  font-size: 20px;
}
.ml-regle__label {
  font-weight: 700;
  color: var(--accent);
  margin-right: 4px;
}
.ml-regle__label--tu {
  color: #4a9edd;
}

.ml-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ml-compare__col {
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}

.ml-compare__col--bad {
  background: var(--bg-card);
}

.ml-compare__col--good {
  background: linear-gradient(135deg, #161616 0%, #1c1814 100%);
  border-color: rgba(184,150,110,0.3);
}

.ml-compare__header {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.ml-compare__col--good .ml-compare__header { color: var(--accent); }

.ml-compare__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ml-compare__list li {
  font-size: 14px;
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
  color: var(--text-muted);
}

.ml-compare__col--bad .ml-compare__list li::before {
  content: 'âœ•';
  position: absolute;
  left: 0;
  color: #a85a5a;
  font-weight: 700;
}

.ml-compare__col--good .ml-compare__list li {
  color: var(--text);
}

.ml-compare__col--good .ml-compare__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 768px) {
  .ml-compare { grid-template-columns: 1fr; gap: 16px; }
}

/* ========================
   POURQUOI
======================== */
.ml-why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ml-why__text {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ========================
   STEPS
======================== */
.ml-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.ml-step { display: flex; flex-direction: column; gap: 12px; }

.ml-step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(184, 150, 110, 0.08);
  border: 1px solid rgba(184, 150, 110, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.ml-step__title { font-size: 16px; font-weight: 600; font-family: 'Inter', sans-serif; }
.ml-step__text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ========================
   TRUST GRID
======================== */
.ml-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ml-trust-item {
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ml-trust-item::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ========================
   PROFILE CARDS
======================== */
.ml-profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ml-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  display: block;
  text-decoration: none !important;
}
.ml-card * {
  text-decoration: none !important;
}
.ml-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 150, 110, 0.3);
}

.ml-card__img {
  aspect-ratio: 5/6;
  width: 100%;
  object-fit: cover;
}

.ml-card__img-placeholder {
  aspect-ratio: 5/6;
  background: linear-gradient(160deg, #1c1c1c 0%, #222 60%, #1a1218 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.ml-card__img-placeholder::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 58%;
  height: 88%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160' fill='none'%3E%3Cellipse cx='50' cy='28' rx='18' ry='20' fill='%23333'/%3E%3Cpath d='M20 160 Q18 110 30 90 Q38 75 50 73 Q62 75 70 90 Q82 110 80 160Z' fill='%232a2a2a'/%3E%3Cpath d='M30 90 Q20 95 15 115 L10 160 H30Z' fill='%23262626'/%3E%3Cpath d='M70 90 Q80 95 85 115 L90 160 H70Z' fill='%23262626'/%3E%3C/svg%3E") center bottom / contain no-repeat;
  opacity: 0.55;
}
.ml-card__img-placeholder::after {
  content: 'Photo à venir';
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: #3d3d3d;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.ml-card__body { padding: 16px; }

.ml-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
}

.ml-card__name {
  font-size: 16px;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ml-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(184, 150, 110, 0.08);
  border: 1px solid rgba(184, 150, 110, 0.25);
  border-radius: 100px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.ml-card__meta { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.ml-card__date { font-size: 12px; color: var(--text-muted); opacity: 0.55; margin-top: 8px; }
.ml-card__tagline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.ml-card:hover .ml-card__tagline {
  opacity: 1;
  transform: translateY(0);
}

.ml-card__media { position: relative; overflow: hidden; }
.ml-card__media .ml-card__img { transition: transform 0.4s ease; }
.ml-card:hover .ml-card__media .ml-card__img { transform: scale(1.06); }

/* Ruban Premium — cartes listing */
.ml-card__ribbon {
  position: absolute;
  top: 18px;
  right: -26px;
  width: 120px;
  padding: 5px 0;
  text-align: center;
  background: linear-gradient(135deg, #d4aa70, #b8966e, #8f6f44);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 2;
}

/* Badge Vérifié — cartes listing */
.ml-card__verified {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(74, 222, 128, 0.45);
  border-radius: 20px;
  color: #4ade80;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  z-index: 2;
}

.ml-card__tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.ml-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.ml-card__tag--premium {
  background: linear-gradient(135deg, #d8b888, #b8966e);
  color: #1a1408;
}
.ml-card__tag--verified {
  background: rgba(12, 12, 12, 0.55);
  border: 1px solid rgba(184, 150, 110, 0.4);
  color: var(--accent);
}

.ml-card__badge-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ml-card__badge-video svg {
  width: 44px;
  height: 44px;
  opacity: .55;
  filter: drop-shadow(0 0 6px rgba(0,0,0,.5));
}
.ml-card__services {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.ml-card__service {
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
}
.ml-card__service--prive {
  color: #e91e8c;
  border-color: rgba(233, 30, 140, .3);
  background: rgba(233, 30, 140, .07);
  font-weight: 600;
}
.ml-card__live {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(46, 184, 92, 0.85);
  color: #06250f;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.ml-card--premium {
  border-color: rgba(184, 150, 110, 0.4);
  box-shadow: 0 0 0 1px rgba(184, 150, 110, 0.12);
}
.ml-card--premium:hover {
  border-color: rgba(184, 150, 110, 0.6);
  box-shadow: 0 14px 30px -10px rgba(184, 150, 110, 0.35);
}

.ml-card__age { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }

.ml-card__langues { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ml-card__lang {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--bg-alt, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  color: var(--text-muted);
}

@keyframes mlCardFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.ml-profiles-grid .ml-card { animation: mlCardFadeIn 0.5s ease both; }
.ml-profiles-grid .ml-card:nth-child(1) { animation-delay: 0.02s; }
.ml-profiles-grid .ml-card:nth-child(2) { animation-delay: 0.05s; }
.ml-profiles-grid .ml-card:nth-child(3) { animation-delay: 0.08s; }
.ml-profiles-grid .ml-card:nth-child(4) { animation-delay: 0.11s; }
.ml-profiles-grid .ml-card:nth-child(5) { animation-delay: 0.14s; }
.ml-profiles-grid .ml-card:nth-child(6) { animation-delay: 0.17s; }
.ml-profiles-grid .ml-card:nth-child(7) { animation-delay: 0.2s; }
.ml-profiles-grid .ml-card:nth-child(8) { animation-delay: 0.23s; }

/* ========================
   CITIES
======================== */
.ml-cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ml-city {
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}
.ml-city:hover {
  border-color: rgba(184, 150, 110, 0.35);
  color: var(--accent);
}

.ml-city__name { font-size: 17px; font-family: 'Playfair Display', serif; }

.ml-city__arrow { color: var(--text-muted); transition: transform 0.2s; }
.ml-city:hover .ml-city__arrow { transform: translateX(4px); color: var(--accent); }

/* ========================
   PREMIUM
======================== */
.ml-premium {
  background: linear-gradient(135deg, #161616 0%, #1c1814 100%);
  border: 1px solid rgba(184, 150, 110, 0.18);
  border-radius: 12px;
  padding: 64px;
}

.ml-premium__title {
  font-size: clamp(20px, 2.5vw, 30px);
  margin-bottom: 16px;
}

.ml-premium__text {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 16px;
  max-width: 520px;
  line-height: 1.7;
}

.ml-premium__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 36px;
}

.ml-premium__list li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ml-premium__list li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ========================
   FAQ
======================== */
.ml-faq { max-width: 720px; margin: 0 auto; }

.ml-faq-item { border-bottom: 1px solid var(--border); }

.ml-faq-question {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  gap: 16px;
  user-select: none;
}
.ml-faq-question:hover { color: var(--accent); }

.ml-faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
  color: var(--text-muted);
}
.ml-faq-item.open .ml-faq-icon {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(45deg);
}

.ml-faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.ml-faq-item.open .ml-faq-answer { display: block; }

/* ========================
   PROSE (pages légales)
======================== */
.ml-prose { color: var(--text); line-height: 1.8; font-size: 15px; }
.ml-prose h2 { font-size: 20px; font-weight: 600; margin: 40px 0 12px; color: var(--text); }
.ml-prose h3 { font-size: 16px; font-weight: 600; margin: 28px 0 8px; color: var(--text); }
.ml-prose p { margin-bottom: 16px; color: var(--text-muted); }
.ml-prose ul, .ml-prose ol { padding-left: 20px; margin-bottom: 16px; color: var(--text-muted); }
.ml-prose li { margin-bottom: 6px; }
.ml-prose a { color: var(--accent); }

/* ========================
   FOOTER
======================== */
.ml-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.ml-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.ml-footer__brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 12px;
}

.ml-footer__tagline { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.ml-footer__heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.ml-footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ml-footer__links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.ml-footer__links a:hover { color: var(--text); }

.ml-footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================
   BREADCRUMB
======================== */
.ml-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ml-breadcrumb a { color: var(--text-muted) !important; transition: color 0.2s; }
.ml-breadcrumb a:hover { color: var(--accent) !important; }
.ml-breadcrumb span:last-child { color: var(--text); }

/* ========================
   VILLE SEO TEXT
======================== */
.ml-ville-seo {
  padding: 32px 0 60px;
  border-top: 1px solid var(--border);
}
.ml-ville-seo p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
}

/* ========================
   ARCHIVE HEADER
======================== */
.ml-archive-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
}

.ml-archive-title { font-size: 36px; margin-bottom: 10px; }
.ml-archive-subtitle { font-size: 15px; color: var(--text-muted); line-height: 1.6; max-width: 600px; }

/* ========================
   FILTERS
======================== */
.ml-filters {
  padding: 24px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.ml-filter {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.ml-filter:hover, .ml-filter:focus {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
.ml-filter--reset {
  text-decoration: none;
  color: var(--text-muted);
  border-color: rgba(255,255,255,0.1);
}
.ml-filter--reset:hover {
  color: #e05555;
  border-color: #e05555;
}

/* ========================
   SINGLE PROFIL
======================== */
.ml-profil-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  padding: 60px 0 80px;
}

.ml-profil-gallery__placeholder {
  aspect-ratio: 3/4;
  width: 100%;
  border-radius: 8px;
}

.ml-profil-gallery__main {
  aspect-ratio: 3/4;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.ml-profil-gallery__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.ml-profil-gallery__thumbs::-webkit-scrollbar { height: 4px; }
.ml-profil-gallery__thumbs::-webkit-scrollbar-track { background: transparent; }
.ml-profil-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.ml-profil-gallery__thumb {
  flex: 0 0 72px;
  scroll-snap-align: start;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}

.ml-profil-gallery__thumb:hover {
  opacity: 1;
}

.ml-profil-gallery__thumb img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.ml-profil-gallery__thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.ml-profil-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.ml-profil-gallery__nav:hover { background: rgba(0,0,0,0.7); }
.ml-profil-gallery__nav--prev { left: 10px; }
.ml-profil-gallery__nav--next { right: 10px; }
.ml-profil-gallery__nav[hidden] { display: none; }

.ml-profil-gallery__photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

/* Ruban Premium — coin supérieur droit */
.ml-profil-ribbon {
  position: absolute;
  top: 26px;
  right: -32px;
  width: 148px;
  padding: 7px 0;
  text-align: center;
  background: linear-gradient(135deg, #d4aa70, #b8966e, #8f6f44);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  z-index: 2;
}

/* Badge Vérifié — premier chip avec tooltip */
.ml-profil-verified-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid rgba(74, 222, 128, 0.45);
  border-radius: 20px;
  color: #4ade80;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: default;
}

.ml-profil-verified-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 260px;
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: normal;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.ml-profil-verified-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 18px;
  border: 6px solid transparent;
  border-top-color: rgba(74, 222, 128, 0.3);
}

.ml-profil-verified-badge:hover .ml-profil-verified-tooltip {
  display: block;
}

.ml-profil-info__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.ml-profil-name { font-size: clamp(30px, 3vw, 44px); margin-bottom: 6px; letter-spacing: 0.01em; }

.ml-profil-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 400;
}

.ml-profil-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.ml-profil-meta__item {
  font-size: 13px;
  color: var(--text-muted);
}

.ml-profil-meta__item--cnx {
  color: var(--text);
}

.ml-profil-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ml-badge-verified--premium {
  background: rgba(184, 150, 110, 0.2);
  flex-shrink: 0;
}

.ml-profil-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.ml-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
}

.ml-chip--accent {
  border-color: rgba(184, 150, 110, 0.35);
  color: var(--accent);
}

.ml-chip--indispo {
  border-color: rgba(180, 100, 60, 0.35);
  color: #c47a3a;
}

.ml-chip--ghost {
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.ml-profil-langues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.ml-profil-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.ml-profil-physique {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ml-form__section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-top: 8px;
}

.ml-profil-contact {
  padding: 24px;
  background: linear-gradient(135deg, #161616 0%, #1c1814 100%);
  border: 1px solid rgba(184, 150, 110, 0.18);
  border-radius: var(--radius);
}

.ml-profil-contact__hint {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.ml-report-link {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.4;
  margin-top: 28px;
  display: block;
  text-align: center;
  transition: opacity 0.2s;
}
.ml-report-link:hover { opacity: 0.7; }

/* ========================
   PILLS VILLES HOMEPAGE
======================== */
.ml-villes-section { padding-bottom: 8px; }
.ml-villes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ml-ville-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}
.ml-ville-pill:hover { border-color: var(--accent); color: var(--accent); }
.ml-ville-pill span {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: 100px;
  padding: 1px 8px;
}

/* Bloc texte SEO homepage */
.ml-seo-text { padding-top: 8px; }
.ml-seo-text__inner {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.ml-seo-text__inner h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--text);
}
.ml-seo-text__inner p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.ml-seo-text__inner a { color: var(--accent); }
.ml-seo-text__inner a:hover { color: var(--accent-hover); }

/* ========================
   PAGE VILLES
======================== */
.ml-villes-groupe {
  margin-bottom: 40px;
}

.ml-villes-lettre {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.ml-villes-liste {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.ml-ville-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-muted) !important;
  transition: all 0.15s;
  gap: 8px;
}

.ml-ville-link:hover {
  background: var(--bg-card);
  color: var(--text) !important;
}

.ml-ville-link__name { flex: 1; }

.ml-ville-link__count {
  font-size: 12px;
  color: var(--accent);
  background: rgba(184,150,110,0.08);
  border: 1px solid rgba(184,150,110,0.15);
  border-radius: 100px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .ml-villes-liste { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .ml-villes-liste { grid-template-columns: 1fr 1fr; }
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
  .ml-profiles-grid { grid-template-columns: repeat(3, 1fr); }
  .ml-steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .ml-premium { padding: 40px; }
}

@media (max-width: 768px) {
  .ml-container { padding: 0 16px; }
  .ml-section { padding: 48px 0; }
  .ml-hero { padding: 60px 0 48px; }
  .ml-hero__inner { grid-template-columns: 1fr; }
  .ml-hero__visual { display: none; }
  .ml-hero__title { font-size: 28px; }
  .ml-hero__subtitle { font-size: 16px; }
  .ml-section-title { font-size: 22px; }
  .ml-why__inner { grid-template-columns: 1fr; gap: 24px; }
  .ml-profiles-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ml-trust-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ml-cities-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ml-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ml-profil-layout { grid-template-columns: 1fr; gap: 32px; }
  .ml-profil-gallery__main { aspect-ratio: 4/3; }
  .ml-archive-title { font-size: 26px; }

  /* Mobile nav */
  .ml-nav-toggle { display: flex; }
  .ml-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(12,12,12,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 4px;
    z-index: 99;
  }
  .ml-nav.open { display: flex; }
  .ml-nav a {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .ml-nav a:last-child { border-bottom: none; margin-top: 8px; }
  .ml-nav .ml-btn {
    width: 100%;
    justify-content: center;
    padding: 12px !important;
    font-size: 15px !important;
  }
}

.ml-feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.ml-feature-item {
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
}
.ml-feature-list--standard .ml-feature-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.ml-feature-list--premium .ml-feature-item {
  background: rgba(155, 80, 128, 0.12);
  border: 1px solid rgba(155, 80, 128, 0.3);
  color: var(--text);
}

.ml-premium-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ml-premium-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}
.ml-premium-table th,
.ml-premium-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.ml-premium-table th {
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-card);
}
.ml-premium-table th:nth-child(2),
.ml-premium-table td:nth-child(2),
.ml-premium-table th:nth-child(3),
.ml-premium-table td:nth-child(3) {
  text-align: center;
  width: 180px;
}
.ml-premium-table th:nth-child(3) { color: var(--accent); }
.ml-premium-table td:nth-child(3) { color: var(--text); font-weight: 600; }
.ml-premium-table tr:last-child td { border-bottom: none; }

.ml-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ml-pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.ml-pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.ml-pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.ml-pricing-card__name {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}
.ml-pricing-card__price {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.ml-pricing-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.ml-pricing-card__list li::before { content: '✓ '; color: var(--accent); font-weight: 700; }

@media (max-width: 700px) {
  .ml-pricing-grid { grid-template-columns: 1fr; }
}

.ml-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(46, 184, 92, 0.15);
  color: #4cd17c;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}

.ml-live-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
}
.ml-live-toggle--active {
  border-color: rgba(76, 209, 124, 0.5);
  background: rgba(76, 209, 124, 0.06);
}
.ml-live-toggle strong {
  color: var(--text);
  font-size: 15px;
}
.ml-live-toggle p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.ml-book-editor__cols {
  display: block;
}
.ml-tarif-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.ml-tarif-row .ml-form__input { flex: 1; margin: 0; }
.ml-tarif-row .ml-tarif-prix  { flex: 0 0 130px; }
.ml-tarif-remove {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.4);
  width: 30px; height: 30px;
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.ml-tarif-remove:hover { color: #e74c3c; border-color: #e74c3c; }
.ml-book-editor__left { min-width: 0; }
/* Popup aperçu au survol */
#ml-tpl-hover-preview {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 580px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  z-index: 9990;
  background: #111;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  transform: translateY(-50%) scale(.97);
  display: flex;
  flex-direction: column;
}
#ml-tpl-hover-preview.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.ml-tpl-hover-preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.ml-tpl-hover-preview__bar a {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .2s;
}
.ml-tpl-hover-preview__bar a:hover { color: #fff; }
.ml-tpl-hover-preview__footer {
  flex-shrink: 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.85);
  border-top: 1px solid rgba(255,255,255,.07);
}
.ml-tpl-hover-preview__footer a {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  letter-spacing: .06em;
  transition: color .2s;
}
.ml-tpl-hover-preview__footer a:hover { color: #fff; }
#ml-book-preview-iframe {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
  min-height: 0;
}


.ml-account-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin: 32px 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ml-account-tabs::-webkit-scrollbar { display: none; }
.ml-account-tabs__btn {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  background: none !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s, border-bottom-color 0.2s;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0 !important;
}
.ml-account-tabs__btn:focus,
.ml-account-tabs__btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
}
.ml-account-tabs__btn:hover { color: var(--text); }
.ml-account-tabs__btn--locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  opacity: 0.55;
}
.ml-account-tabs__btn--locked:hover { opacity: 0.8; color: var(--text); }
.ml-tab-lock { font-size: 12px; }
.ml-account-tabs__btn.is-active {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent) !important;
}
.ml-account-tabpanel {
  padding-top: 8px;
}

.ml-richtext {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ml-richtext__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.ml-richtext__btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s, color 0.15s;
}
.ml-richtext__btn:hover {
  background: var(--bg-card);
  color: var(--text);
}
.ml-richtext__sep {
  width: 1px;
  background: var(--border);
  margin: 4px 4px;
}
.ml-richtext__select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  padding: 5px 6px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.ml-richtext__color {
  width: 32px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  cursor: pointer;
}
.ml-richtext__emoji-popup {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
  padding: 8px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.ml-richtext__emoji {
  background: transparent;
  border: none;
  font-size: 18px;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}
.ml-richtext__emoji:hover {
  background: var(--bg-card);
}
.ml-richtext__area {
  background: var(--bg-card);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  padding: 16px 18px;
  min-height: 260px;
  max-height: 180px;
  overflow-y: auto;
}
.ml-richtext__area:focus {
  outline: none;
}
.ml-richtext__area ul, .ml-richtext__area ol {
  padding-left: 22px;
  margin: 8px 0;
}
.ml-richtext__area p {
  margin: 0 0 12px;
}

.ml-book-sections {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ml-book-sections__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: grab;
}
.ml-book-sections__contenu {
  flex: 1 1 100%;
  resize: vertical;
  cursor: auto;
}
.ml-book-sections__item.dragging { opacity: 0.4; }
.ml-book-sections__handle {
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: -2px;
  user-select: none;
}

.ml-book-preview-wrap {
  position: sticky;
  top: 24px;
}
.ml-book-preview-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

/* Iframe preview */
#ml-book-preview-iframe {
  background: #111;
}

/* Notice légale homepage */
.ml-legal-homepage {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255,255,255,.25);
  margin-top: 20px;
}

/* Notice légale dashboard */
.ml-legal-notice {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding: 10px 14px;
  margin: 16px 0 4px;
  max-width: 640px;
}

/* ── Contenu privé — dashboard libertine ─────────────────────────────── */
.cp-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 640px) {
  .cp-admin-grid { grid-template-columns: repeat(2, 1fr); }
}

.cp-admin-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.cp-admin-item--locked {
  border-color: rgba(233, 30, 140, .3);
}

.cp-admin-thumb {
  position: relative;
  aspect-ratio: 1;
  background: #111;
  overflow: hidden;
}
.cp-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
}
.cp-admin-thumb__video,
.cp-admin-thumb__empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: rgba(255,255,255,.2);
}
.cp-admin-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 14px;
  background: rgba(0,0,0,.65);
  border-radius: 50%;
  padding: 3px 5px;
}

.cp-admin-caption {
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 8px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-admin-actions {
  display: flex;
  gap: 4px;
  padding: 0 8px 8px;
  flex-wrap: wrap;
}

.cp-admin-edit-form {
  display: none;
  padding: 0 8px 10px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.cp-admin-edit-form.open { display: block; }
.cp-admin-edit-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px;
  font-size: 12px;
  resize: vertical;
  margin-bottom: 6px;
  box-sizing: border-box;
  font-family: inherit;
}
.cp-admin-edit-form select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 6px 8px;
  font-size: 12px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

/* Stats bar dans le dashboard */
.ml-dashboard-status__item {
  flex: 1 1 120px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ml-dashboard-status__item span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ml-dashboard-status__item strong {
  font-size: 18px;
  color: var(--text);
}
.ml-book-preview {
  --bg-card: color-mix(in srgb, var(--bg, #1c1c1c) 90%, white 10%);
  --border: color-mix(in srgb, var(--bg, #1c1c1c) 78%, white 22%);
  border: 1px solid var(--border);
  border-radius: var(--book-radius, var(--radius));
  overflow: hidden;
  background: var(--bg-card);
}
.ml-book-preview__hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 2px solid var(--accent);
}
.ml-book-preview__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ml-book-preview__name {
  font-weight: 700;
  font-size: calc(15px * var(--book-font-scale, 1));
  color: var(--text);
  font-family: var(--book-font, 'Playfair Display', serif);
}
.ml-book-preview__tagline {
  font-size: calc(13px * var(--book-font-scale, 1));
  color: var(--accent);
  margin-top: 2px;
}
.ml-book-preview__sections {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ml-book-preview__section h4 {
  font-size: calc(12px * var(--book-font-scale, 1));
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 4px;
  font-family: var(--book-font, 'Playfair Display', serif);
}
.ml-book-preview__section p {
  font-size: calc(13px * var(--book-font-scale, 1));
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.ml-book-preview__empty {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.ml-book-preview__layout { display: flex; flex-direction: column; }
.ml-book-preview__layout--sidebar { flex-direction: row; gap: 12px; }

.ml-book-preview__nav { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 10px; }
.ml-book-preview__nav--tabs { border-bottom: 1px solid var(--border); padding-bottom: 0; }
.ml-book-preview__nav--sidebar {
  flex-direction: column;
  flex-wrap: nowrap;
  border-right: 1px solid var(--border);
  padding-right: 8px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.ml-book-preview__nav-btn {
  font-size: 11px;
  padding: 6px 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-align: left;
  white-space: nowrap;
}
.ml-book-preview__nav--sidebar .ml-book-preview__nav-btn {
  border-bottom: none;
  border-left: 2px solid transparent;
}
.ml-book-preview__nav-btn.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.ml-book-preview__nav--sidebar .ml-book-preview__nav-btn.is-active { border-left-color: var(--accent); }
.ml-book-preview__panels { flex: 1; min-width: 0; }

.ml-galerie-upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.ml-galerie-upload-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-alt);
}
.ml-galerie-upload-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ml-galerie-upload-item__blur {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: rgba(15, 12, 10, 0.78);
  color: #fff;
  cursor: pointer;
}
.ml-galerie-upload-item__blur:hover { background: var(--accent); }
.ml-galerie-upload-item__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(46, 184, 92, 0.92);
  color: #fff;
}

.ml-blur-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 7, 0.78);
  padding: 24px;
}
.ml-blur-modal[hidden] { display: none; }
.ml-blur-modal__inner {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 640px;
  width: 100%;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ml-blur-modal__title {
  margin: 0 0 4px;
  font-size: 16px;
  flex-shrink: 0;
}
.ml-blur-modal__hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.ml-blur-modal__canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 12px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.ml-blur-modal__canvas-wrap canvas {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  cursor: crosshair;
  display: block;
}
.ml-blur-modal__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.ml-blur-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 880px) {
  .ml-book-editor__cols { grid-template-columns: 1fr; }
  .ml-book-editor__right { position: static; max-height: none; }
}

@media (max-width: 540px) {
  .ml-profiles-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ml-trust-grid { grid-template-columns: 1fr; }
  .ml-cities-grid { grid-template-columns: 1fr; }
  .ml-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .ml-hero__actions { flex-direction: column; align-items: flex-start; }
  .ml-hero__btn { width: 100%; justify-content: center; }
  .ml-premium { padding: 28px 20px; }
  .ml-premium__list { grid-template-columns: 1fr; }
  .ml-steps { grid-template-columns: 1fr; }
  .ml-profil-meta { grid-template-columns: 1fr; }
  .ml-footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
  .ml-section-header { margin-bottom: 32px; }
  .ml-hero__badges { gap: 8px; }
  .ml-hero__badge { font-size: 12px; padding: 5px 10px; }
}

/* ========================
   ANIMATIONS
======================== */

/* 1 — Hover carte amélioré */
.ml-card {
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.ml-card:hover {
  transform: translateY(-7px);
  border-color: rgba(184, 150, 110, 0.4);
  box-shadow: 0 18px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(184,150,110,0.15);
}

/* 2 — Fade-in au scroll */
.ml-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.ml-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3 — Point live pulsé */
.ml-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #052e12;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  animation: ml-pulse-dot 1.8s ease-in-out infinite;
}
@keyframes ml-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(5,46,18,0.6); }
  50%       { opacity: 0.7; transform: scale(1.35); box-shadow: 0 0 0 4px rgba(5,46,18,0); }
}

/* Hero — curseur clignotant pour le typewriter */
.ml-hero__title::after {
  content: '|';
  display: inline-block;
  color: var(--accent);
  margin-left: 3px;
  animation: ml-blink 0.85s step-end infinite;
}
.ml-hero__title.typing-done::after { display: none; }
@keyframes ml-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
