:root {
  --bg: #f4f1e8;
  --paper: #fbfaf6;
  --ink: #16302b;
  --green: #4e7a61;
  --gold: #c56a1a;
  --line: rgba(22, 48, 43, 0.12);
  --shadow: 0 12px 40px rgba(16, 37, 34, 0.1);
}

body.mce-content-body,
.fi-fo-rich-editor-content.fi-prose {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.75;
}

body.mce-content-body h1,
body.mce-content-body h2,
body.mce-content-body h3,
body.mce-content-body h4,
.fi-fo-rich-editor-content.fi-prose h1,
.fi-fo-rich-editor-content.fi-prose h2,
.fi-fo-rich-editor-content.fi-prose h3,
.fi-fo-rich-editor-content.fi-prose h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
}

body.mce-content-body a,
.fi-fo-rich-editor-content.fi-prose a,
body.mce-content-body .rule-link,
.fi-fo-rich-editor-content.fi-prose .rule-link {
  color: #16302b;
  text-decoration: underline;
  text-decoration-color: rgba(197, 106, 26, 0.45);
  text-underline-offset: 4px;
}

body.mce-content-body .rule-link:hover,
.fi-fo-rich-editor-content.fi-prose .rule-link:hover {
  text-decoration-color: #c56a1a;
}

body.mce-content-body .card-premium,
.fi-fo-rich-editor-content.fi-prose .card-premium {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(251, 250, 246, 0.98) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 1.25rem;
}

body.mce-content-body .section-title-kicker,
.fi-fo-rich-editor-content.fi-prose .section-title-kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green);
}

body.mce-content-body .table-wrap,
.fi-fo-rich-editor-content.fi-prose .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  margin: 16px 0 14px;
}

body.mce-content-body table,
body.mce-content-body .styled-table,
body.mce-content-body .reglement-table,
.fi-fo-rich-editor-content.fi-prose table,
.fi-fo-rich-editor-content.fi-prose .styled-table,
.fi-fo-rich-editor-content.fi-prose .reglement-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.96rem;
}

body.mce-content-body thead th,
.fi-fo-rich-editor-content.fi-prose thead th {
  background: linear-gradient(180deg, #f1f6f3, #e8f2ec);
  color: #1d2a20;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid rgba(22, 48, 43, 0.18);
  border-right: 1px solid rgba(22, 48, 43, 0.1);
  padding: 14px 16px;
  vertical-align: bottom;
}

body.mce-content-body thead th:last-child,
.fi-fo-rich-editor-content.fi-prose thead th:last-child {
  border-right: none;
}

body.mce-content-body tbody td,
.fi-fo-rich-editor-content.fi-prose tbody td {
  padding: 13px 16px;
  border-top: 1px solid rgba(22, 48, 43, 0.08);
  border-right: 1px solid rgba(22, 48, 43, 0.08);
  vertical-align: top;
  color: #374151;
}

body.mce-content-body tbody td:last-child,
.fi-fo-rich-editor-content.fi-prose tbody td:last-child {
  border-right: none;
}

body.mce-content-body .quote-box,
.fi-fo-rich-editor-content.fi-prose .quote-box {
  background: #f6fbf8;
  border-left: 4px solid var(--green);
  border-radius: 0 14px 14px 0;
  padding: 16px 18px;
  color: #374151;
  line-height: 1.8;
  margin: 12px 0 14px;
  font-style: italic;
}

body.mce-content-body .event-actions,
.fi-fo-rich-editor-content.fi-prose .event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}

body.mce-content-body .btn-event,
.fi-fo-rich-editor-content.fi-prose .btn-event {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  min-width: 220px;
  text-align: center;
  box-sizing: border-box;
}

body.mce-content-body .btn-event-primary,
.fi-fo-rich-editor-content.fi-prose .btn-event-primary {
  background: #b22222;
  color: #fff;
  border: 2px solid #b22222;
}

body.mce-content-body .btn-event-secondary,
.fi-fo-rich-editor-content.fi-prose .btn-event-secondary {
  background: #fff;
  color: #b22222;
  border: 2px solid #b22222;
}

@media (max-width: 768px) {
  body.mce-content-body .event-actions,
  .fi-fo-rich-editor-content.fi-prose .event-actions {
    flex-direction: column;
  }

  body.mce-content-body .btn-event,
  .fi-fo-rich-editor-content.fi-prose .btn-event {
    width: 100%;
  }
}

/* Compatibility layer for Tailwind utility classes used in CTA snippets */
body.mce-content-body .text-center,
.fi-fo-rich-editor-content.fi-prose .text-center {
  text-align: center;
}

body.mce-content-body .mt-2,
.fi-fo-rich-editor-content.fi-prose .mt-2 {
  margin-top: 0.5rem;
}

body.mce-content-body .mb-4,
.fi-fo-rich-editor-content.fi-prose .mb-4 {
  margin-bottom: 1rem;
}

body.mce-content-body .ml-4,
.fi-fo-rich-editor-content.fi-prose .ml-4 {
  margin-left: 1rem;
}

body.mce-content-body .inline-flex,
.fi-fo-rich-editor-content.fi-prose .inline-flex {
  display: inline-flex;
}

body.mce-content-body .items-center,
.fi-fo-rich-editor-content.fi-prose .items-center {
  align-items: center;
}

body.mce-content-body .justify-center,
.fi-fo-rich-editor-content.fi-prose .justify-center {
  justify-content: center;
}

body.mce-content-body .rounded-full,
.fi-fo-rich-editor-content.fi-prose .rounded-full {
  border-radius: 9999px;
}

body.mce-content-body .px-8,
.fi-fo-rich-editor-content.fi-prose .px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

body.mce-content-body .py-4,
.fi-fo-rich-editor-content.fi-prose .py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

body.mce-content-body .px-5,
.fi-fo-rich-editor-content.fi-prose .px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

body.mce-content-body .py-3,
.fi-fo-rich-editor-content.fi-prose .py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

body.mce-content-body .text-sm,
.fi-fo-rich-editor-content.fi-prose .text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

body.mce-content-body .font-semibold,
.fi-fo-rich-editor-content.fi-prose .font-semibold {
  font-weight: 600;
}

body.mce-content-body .text-white,
.fi-fo-rich-editor-content.fi-prose .text-white {
  color: #ffffff;
}

body.mce-content-body .shadow-lg,
.fi-fo-rich-editor-content.fi-prose .shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body.mce-content-body .transition,
.fi-fo-rich-editor-content.fi-prose .transition {
  transition: all 0.15s ease;
}

body.mce-content-body .bg-\[\#c56a1a\],
.fi-fo-rich-editor-content.fi-prose .bg-\[\#c56a1a\] {
  background-color: #c56a1a;
}

body.mce-content-body .bg-\[\#16302b\],
.fi-fo-rich-editor-content.fi-prose .bg-\[\#16302b\] {
  background-color: #16302b;
}

body.mce-content-body .shadow-\[\#16302b\]\/15,
.fi-fo-rich-editor-content.fi-prose .shadow-\[\#16302b\]\/15 {
  box-shadow: 0 10px 15px -3px rgb(22 48 43 / 0.15), 0 4px 6px -4px rgb(22 48 43 / 0.15);
}

body.mce-content-body .hover\:bg-\[\#af5e17\]:hover,
.fi-fo-rich-editor-content.fi-prose .hover\:bg-\[\#af5e17\]:hover {
  background-color: #af5e17;
}

body.mce-content-body .hover\:bg-\[\#1c3d36\]:hover,
.fi-fo-rich-editor-content.fi-prose .hover\:bg-\[\#1c3d36\]:hover {
  background-color: #1c3d36;
}

body.mce-content-body .hover\:translate-y-\[-1px\]:hover,
.fi-fo-rich-editor-content.fi-prose .hover\:translate-y-\[-1px\]:hover {
  transform: translateY(-1px);
}

/* MMC shared styles: front site + back-office editor */
.mmc-page {
  width: 100%;
  background: linear-gradient(180deg, #f7f3eb 0%, #ffffff 100%);
  padding: 32px 16px;
  color: #1f2a1f;
  font-family: Inter, Arial, sans-serif;
  box-sizing: border-box;
}

.mmc-page * {
  box-sizing: border-box;
}

.mmc-container {
  max-width: 1180px;
  margin: 0 auto;
}

.mmc-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 28px;
}

.mmc-hero-main {
  background:
    linear-gradient(135deg, rgba(32,54,38,0.65), rgba(57,86,57,0.55)),
    url('/images/monte-des-caves.jpg') center/cover no-repeat;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  min-height: 360px;
  box-shadow: 0 24px 60px rgba(22,31,22,0.16);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mmc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}

.mmc-hero-main h1 {
  margin: 0 0 14px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.02;
  font-weight: bold;
  letter-spacing: -0.03em;
}

.mmc-hero-main p {
  max-width: 760px;
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
}

.mmc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mmc-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 13px;
  line-height: 1.2;
}

.mmc-side {
  display: grid;
  gap: 16px;
}

.mmc-card {
  background: #ffffff;
  border: 1px solid #ece5d8;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(40,49,35,0.07);
}

.mmc-card--soft {
  background: #f5efe3;
  border: 1px solid #eadfca;
  box-shadow: none;
}

.mmc-card--dark {
  background: #203626;
  color: #fff;
  border: none;
  box-shadow: none;
}

.mmc-card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b826f;
  margin-bottom: 10px;
}

.mmc-card--soft .mmc-card-label {
  color: #7f7358;
}

.mmc-card--dark .mmc-card-label {
  color: rgba(255,255,255,0.7);
}

.mmc-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mmc-fact-label {
  font-size: 13px;
  color: #7b826f;
  margin-bottom: 6px;
}

.mmc-fact-value-lg {
  font-size: 21px;
  font-weight: bold;
  color: #203626;
  line-height: 1.25;
}

.mmc-fact-value-md {
  font-size: 17px;
  font-weight: bold;
  color: #203626;
  line-height: 1.4;
}

.mmc-card--dark p,
.mmc-card--soft p,
.mmc-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.mmc-card--soft p {
  color: #3c4338;
}

.mmc-card--dark p {
  color: rgba(255,255,255,0.9);
}

.mmc-intro {
  max-width: 900px;
  margin: 0 auto 28px auto;
  text-align: center;
}

.mmc-intro p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: #384236;
}

.mmc-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 0 0 28px 0;
}

.mmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: center;
}

.mmc-btn-primary {
  background: #c56a1a;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(197,106,26,0.22);
}

.mmc-btn-primary:hover {
  transform: translateY(-1px);
  background: #af5e17;
}

.mmc-btn-secondary {
  background: #16302b;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(22,48,43,0.18);
}

.mmc-btn-secondary:hover {
  transform: translateY(-1px);
  background: #1c3d36;
}

.mmc-two-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.mmc-panel {
  background: #ffffff;
  border: 1px solid #ece5d8;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(40,49,35,0.06);
}

.mmc-panel h2 {
  margin: 0 0 14px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 5vw, 2.2rem);
  color: #203626;
  line-height: 1.1;
}

.mmc-panel p {
  margin: 0 0 14px 0;
  font-size: 15px;
  line-height: 1.8;
  color: #465044;
}

.mmc-panel p:last-child {
  margin-bottom: 0;
}

.mmc-records {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.mmc-record {
  background: #f7f3eb;
  border: 1px solid #ebe1cf;
  border-radius: 18px;
  padding: 16px;
}

.mmc-record-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b826f;
  margin-bottom: 6px;
}

.mmc-record-value {
  font-size: 26px;
  font-weight: bold;
  color: #203626;
  line-height: 1.2;
}

.mmc-challenge {
  background: linear-gradient(180deg, #203626 0%, #27432f 100%);
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 20px 55px rgba(19,34,22,0.18);
}

.mmc-challenge-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.mmc-challenge-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.68);
  margin-bottom: 8px;
}

.mmc-challenge h2 {
  margin: 0 0 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 2.5rem);
  line-height: 1.1;
}

.mmc-challenge p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
}

.mmc-challenge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.mmc-challenge-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 20px;
}

.mmc-challenge-item .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.62);
  margin-bottom: 10px;
}

.mmc-challenge-item .title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.25;
}

.mmc-challenge-item .text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.84);
}

.mmc-closing {
  background: #ffffff;
  border: 1px solid #ece5d8;
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(40,49,35,0.06);
}

.mmc-closing h2 {
  margin: 0 0 14px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 2.25rem);
  color: #203626;
  line-height: 1.15;
}

.mmc-closing p {
  max-width: 860px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.85;
  color: #465044;
}

@media (min-width: 768px) {
  .mmc-page {
    padding: 40px 20px;
  }

  .mmc-hero-main {
    padding: 34px;
    min-height: 420px;
  }

  .mmc-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .mmc-two-cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .mmc-records {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (min-width: 992px) {
  .mmc-page {
    padding: 48px 24px;
  }

  .mmc-hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    margin-bottom: 32px;
  }

  .mmc-hero-main {
    padding: 42px;
  }

  .mmc-card {
    padding: 26px;
    border-radius: 24px;
  }

  .mmc-panel {
    padding: 30px;
    border-radius: 26px;
  }

  .mmc-challenge {
    padding: 34px;
    border-radius: 30px;
    margin-bottom: 28px;
  }

  .mmc-challenge-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* ===== Page Accès ===== */

.mmc-hero-main--access {
  background:
    linear-gradient(135deg, rgba(32,54,38,0.68), rgba(57,86,57,0.58)),
    url('/images/acces-trail.jpg') center/cover no-repeat;
}

.mmc-icon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.mmc-icon-card {
  background: #ffffff;
  border: 1px solid #ece5d8;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(40,49,35,0.07);
}

.mmc-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5efe3;
  color: #203626;
  font-size: 24px;
  margin-bottom: 14px;
}

.mmc-icon-card h2,
.mmc-icon-card h3 {
  margin: 0 0 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.15;
  color: #203626;
}

.mmc-icon-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #465044;
}

.mmc-map-visual {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mmc-map-points {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.mmc-map-point {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 14px 16px;
}

.mmc-map-point strong {
  color: #ffffff;
}

.mmc-map-point span {
  display: block;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.6;
}

.mmc-note {
  background: #f7f3eb;
  border: 1px solid #ebe1cf;
  border-radius: 18px;
  padding: 16px;
  margin-top: 18px;
}

.mmc-note h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: #203626;
}

.mmc-note p {
  margin: 0;
}

.mmc-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.mmc-step {
  background: #f7f3eb;
  border: 1px solid #ebe1cf;
  border-radius: 18px;
  padding: 18px;
}

.mmc-step-number {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #203626;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
}

.mmc-step h3 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  color: #203626;
}

.mmc-step p {
  margin: 0;
}

@media (min-width: 768px) {
  .mmc-icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mmc-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}