/* =====================================================================
   Pages d'information V2 (livraison, CGV, guides, franchise…)
   Chargée seulement sur les pages CMS, par templates/cms/page.tpl.
   Partie 1 : règles V2. Parties 2 et 3 : styles des guides et de la page
   franchise du site actuel, repris tels quels avec la palette MLF.
   ===================================================================== */

/* Les guides portent leur grand titre dans le contenu : pas de second titre au-dessus. */
#main:has(.rte-content h1, .cs-hero, .fr-hero) > .page-header { display: none; }

.page-cms .rte-content { max-width: 860px; margin: 0 auto 3rem; font-size: 16px; line-height: 1.7; color: var(--mlf-ink); }
.page-cms .rte-content:has(.cs-page, .fr-page) { max-width: none; }
:where(.page-cms .rte-content) > h1 { font-family: var(--mlf-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; color: var(--mlf-navy); margin: .4rem 0 1.2rem; letter-spacing: -0.015em;}
:where(.page-cms .rte-content) h2 { font-family: var(--mlf-display); font-weight: 700; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; color: var(--mlf-navy); margin: 2.4rem 0 .8rem; letter-spacing: -0.015em;}
:where(.page-cms .rte-content) h3 { font-family: var(--mlf-sans); font-size: 18px; font-weight: 600; color: var(--mlf-navy); margin: 1.8rem 0 .5rem; }
.page-cms .rte-content a:not([class]) { color: var(--mlf-navy); text-decoration: underline; text-underline-offset: 3px; }
.page-cms .rte-content a:not([class]):hover { color: var(--mlf-blue); }
.page-cms .rte-content table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 15px; }
.page-cms .rte-content th, .page-cms .rte-content td { border-bottom: 1px solid var(--mlf-line); padding: 10px 14px; text-align: left; vertical-align: top; }
.page-cms .rte-content thead th { background: var(--mlf-soft); font-weight: 600; }
.page-cms .rte-content blockquote { border-left: 4px solid var(--mlf-navy) !important; background: var(--mlf-soft) !important; border-radius: 0 var(--mlf-rad) var(--mlf-rad) 0; }

.mlf-guide-byline { color: var(--mlf-muted); font-size: 14px; margin: 0 0 1rem; }
.page-cms .cs-page ~ .mlf-guide-byline, .page-cms .mlf-guide-byline:has(+ .cs-page), .page-cms .mlf-guide-byline:has(+ .fr-page) { max-width: min(1400px, calc(100% - 32px)); margin: 0 auto 1rem; }
.mlf-maillage-links { border: 1px solid var(--mlf-line); border-radius: var(--mlf-rad-lg); background: var(--mlf-soft); padding: 22px 26px; margin: 2.5rem 0 0; }
.mlf-maillage-links h3 { margin-top: 0 !important; }
.mlf-maillage-links p:last-child { margin-bottom: 0; }

/* Pages légales */
.legal-page { max-width: 860px; }
.legal-page .legal-meta { margin-top: 0; color: var(--mlf-muted); font-size: 14px; }
.legal-pdf-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; background: var(--mlf-navy); color: #fff !important; border-radius: var(--mlf-pill); font-size: 14px; font-weight: 600; text-decoration: none !important; }
.legal-pdf-btn:hover { background: var(--mlf-navy-800); }
.legal-pdf-btn svg { flex-shrink: 0; }

/* Les variables attendues par les styles repris du site actuel */
.cs-page, .fr-page {
  --navy: var(--mlf-navy); --navy-800: var(--mlf-navy-800); --navy-700: var(--mlf-navy-700);
  --red: var(--mlf-red); --red-700: #9e002d; --ff-display: var(--mlf-display); }
/* (11 octobre 2026) font-weight 700 retiré ici : il mettait tout le texte des guides et de la franchise en gras. */

/* ---------- Partie 2 : guides (conseils.css du site actuel) ---------- */

/* ============================================================
   PAGES CONSEILS v2 — Premium Editorial Layout
   ============================================================ */

/* ---- PAGE WRAPPER ---- */
.cs-page {
  max-width: 100%;
  overflow: hidden;
}

/* ---- HERO ---- */
.cs-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  margin-bottom: 0;
}
.cs-hero__img-wrap {
  position: absolute;
  inset: 0;
}
.cs-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cs-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10,15,22,.78) 0%,
    rgba(10,15,22,.45) 55%,
    rgba(10,15,22,.10) 100%
  );
}
.cs-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 min(8vw,80px) 60px;
  max-width: 620px;
}
.cs-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin: 0 0 14px;
}
.cs-hero__title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 16px;
}
.cs-hero__desc {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,.75);
  margin: 0;
  max-width: 400px;
}

/* ---- BODY CONTAINER ---- */
.cs-body {
  max-width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

/* ---- LEAD BLOCK ---- */
.cs-lead-block {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  margin-bottom: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line, #e9e5dc);
}
.cs-lead {
  flex: 1;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft, #3a4049);
  margin: 0;
}

/* ---- TOC ---- */
.cs-toc {
  flex-shrink: 0;
  width: 240px;
  background: var(--grey-50, #f8f7f4);
  border-left: 3px solid var(--navy, #212f37);
  padding: 18px 20px;
  border-radius: 0 12px 12px 0;
}
.cs-toc__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted, #7c8088);
  margin: 0 0 10px;
}
.cs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-toc li + li { margin-top: 6px; }
.cs-toc a {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy, #212f37);
  text-decoration: none;
  line-height: 1.4;
}
.cs-toc a:hover { color: var(--red, var(--mlf-red)); }

/* ---- SECTION ---- */
.cs-section {
  margin-bottom: 80px;
}
.cs-section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 36px;
}
.cs-section__num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--red, var(--mlf-red));
  font-variant-numeric: tabular-nums;
}
.cs-section__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--navy, #212f37);
  margin: 0;
}

/* ---- FULL IMAGE ---- */
.cs-fullimg {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
  aspect-ratio: 16/6;
}
.cs-fullimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- SPLIT LAYOUT ---- */
.cs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.cs-split--img-left .cs-split__media { order: -1; }
.cs-split--img-right .cs-split__media { order: 1; }
.cs-split__media {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.cs-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.cs-split__media:hover img { transform: scale(1.04); }
.cs-split__text p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; }

/* ---- CALLOUT ---- */
.cs-callout {
  background: var(--grey-50, #f8f7f4);
  border-left: 3px solid var(--navy, #212f37);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink, #1a1f24);
  margin-top: 24px;
}

/* ---- STAGES (sommeil cycles) ---- */
.cs-stages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}
.cs-stage {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cs-stage__bar {
  flex-shrink: 0;
  width: 4px;
  border-radius: 4px;
  align-self: stretch;
  min-height: 60px;
}
.cs-stage__bar--n12 { background: #90caf9; }
.cs-stage__bar--n3  { background: var(--navy, #212f37); }
.cs-stage__bar--rem { background: var(--red, var(--mlf-red)); }
.cs-stage strong { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.cs-stage p { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---- QUAD (4 icônes) ---- */
.cs-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.cs-quad__item {
  background: #fff;
  border: 1px solid var(--line, #e9e5dc);
  border-radius: 16px;
  padding: 24px 20px;
}
.cs-quad__icon {
  width: 36px;
  height: 36px;
  color: var(--navy, #212f37);
  margin-bottom: 12px;
}
.cs-quad__icon svg { width: 100%; height: 100%; }
.cs-quad__item h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.cs-quad__item p  { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---- STEPS (ordered list) ---- */
.cs-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: steps;
}
.cs-steps li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line, #e9e5dc);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.cs-steps li:last-child { border-bottom: none; }
.cs-steps li::before {
  content: counter(steps, decimal-leading-zero);
  flex-shrink: 0;
  width: 28px;
  font-size: 11px;
  font-weight: 800;
  color: var(--red, var(--mlf-red));
  letter-spacing: .05em;
  padding-top: 2px;
}
.cs-steps li strong { color: var(--navy); }

/* ---- CHECKMARKS ---- */
.cs-checkmarks {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-checkmarks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cs-checkmarks li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--navy, #212f37);
  border-radius: 50%;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 9l3.5 3.5L14 6' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

/* ---- DARK SECTION ---- */
.cs-section--dark {
  background: var(--navy, #212f37);
  border-radius: 24px;
  padding: 56px;
  margin-left: -40px;
  margin-right: -40px;
}
.cs-section--dark .cs-section__title { color: #fff; }
.cs-section--dark .cs-section__num { color: rgba(255,255,255,.5); }

/* ---- BANNER + STATS ---- */
.cs-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
}
.cs-banner__img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  filter: brightness(.5);
}
.cs-banner__stats {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 24px;
}
.cs-stat { text-align: center; }
.cs-stat__num {
  display: block;
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1;
}
.cs-stat__label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin-top: 6px;
  max-width: 120px;
}

/* ---- TROUBLES GRID ---- */
.cs-troubles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.cs-trouble {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 24px;
}
.cs-trouble h3 { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.cs-trouble p  { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.65); margin: 0; }

/* ---- FIRMNESS SCALE ---- */
.cs-firmness-scale {
  display: flex;
  gap: 0;
  margin: 32px 0;
  border: 1px solid var(--line, #e9e5dc);
  border-radius: 16px;
  overflow: hidden;
}
.cs-firmness-item {
  flex: 1;
  padding: 20px 16px;
  border-right: 1px solid var(--line, #e9e5dc);
  position: relative;
  background: #fff;
  transition: background .2s;
}
.cs-firmness-item:last-child { border-right: none; }
.cs-firmness-item--best {
  background: var(--navy, #212f37);
}
.cs-firmness-item--best .cs-firmness-name,
.cs-firmness-item--best .cs-firmness-score,
.cs-firmness-item--best p { color: #fff !important; }
.cs-firmness-bar {
  height: 4px;
  background: linear-gradient(90deg, #e3f2fd 0%, var(--navy,#212f37) 100%);
  border-radius: 2px;
  width: var(--pct);
  margin-bottom: 12px;
}
.cs-firmness-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.cs-firmness-score {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.cs-firmness-item p { font-size: 11.5px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* ---- POSITION CARDS ---- */
.cs-position-cards { display: flex; flex-direction: column; gap: 16px; }
.cs-pos-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line, #e9e5dc);
  border-radius: 14px;
}
.cs-pos-card > svg { flex-shrink: 0; width: 28px; height: 28px; color: var(--navy); margin-top: 2px; }
.cs-pos-card strong { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.cs-pos-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: var(--red, var(--mlf-red));
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.cs-pos-card p { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* ---- OPTIONS (couple) ---- */
.cs-options { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.cs-option { display: flex; gap: 16px; align-items: flex-start; }
.cs-option__letter {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--navy, #212f37);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-option h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.cs-option p  { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---- TECH GRID ---- */
.cs-tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.cs-tech {
  background: #fff;
  border: 1px solid var(--line, #e9e5dc);
  border-radius: 20px;
  overflow: hidden;
}
.cs-tech__img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.cs-tech__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.cs-tech:hover .cs-tech__img-wrap img { transform: scale(1.05); }
.cs-tech__body { padding: 24px; }
.cs-tech__body--full { padding: 24px; }
.cs-tech__body h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.cs-tech__body p  { font-size: 13px; line-height: 1.65; color: var(--ink-soft); margin: 0; }

/* ---- TABLE ---- */
.cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 16px 0;
}
.cs-table--full { width: 100%; }
.cs-table thead th {
  background: var(--navy, #212f37);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
}
.cs-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line, #e9e5dc);
  color: var(--ink);
}
.cs-table tbody tr:last-child td { border-bottom: none; }
.cs-table tbody tr:nth-child(even) td { background: var(--grey-50, #f8f7f4); }
.cs-table__hl td { background: #e8f5e9 !important; font-weight: 600; }

/* ---- 3 COLS ---- */
.cs-trois-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.cs-trois-col {
  background: #fff;
  border: 1px solid var(--line, #e9e5dc);
  border-radius: 14px;
  padding: 20px;
}
.cs-trois-col h3 { font-size: 14px; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.cs-trois-col__sub { font-size: 11px; color: var(--muted); margin: 0 0 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cs-trois-col p { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---- GLOSSAIRE ---- */
.cs-gloss-images {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
  margin-bottom: 56px;
  border-radius: 20px;
  overflow: hidden;
}
.cs-gloss-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.cs-gloss-images img:hover { transform: scale(1.05); }
.cs-gloss-images img:first-child {
  grid-row: 1 / 3;
}
.cs-gloss-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}
.cs-gloss-letter-block {
  padding: 28px 0;
  border-top: 1px solid var(--line, #e9e5dc);
}
.cs-gloss-letter {
  font-size: 14px !important;
  font-weight: 900 !important;
  color: var(--red, var(--mlf-red)) !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 16px !important;
}
.cs-gloss-dl { margin: 0; }
.cs-gloss-dl dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy, #212f37);
  margin: 12px 0 4px;
}
.cs-gloss-dl dd {
  margin: 0 0 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft, #3a4049);
  padding-left: 14px;
  border-left: 2px solid var(--line, #e9e5dc);
}

/* ---- PILIERS (hôtellerie) ---- */
.cs-piliers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.cs-pilier {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 24px 20px;
  position: relative;
  padding-top: 52px;
}
.cs-pilier__num {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 28px;
  height: 28px;
  background: var(--red, var(--mlf-red));
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-section--dark .cs-pilier h3 { font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.cs-section--dark .cs-pilier p  { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.65); margin: 0; }

/* ---- TEXTILE CARDS ---- */
.cs-textile-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.cs-textile-card {
  background: var(--grey-50, #f8f7f4);
  border-radius: 14px;
  padding: 18px;
}
.cs-textile-card h3 { font-size: 13px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.cs-textile-card p  { font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---- /STORES PAGE FIX ---- */
body.stores #main .page-wrapper { padding-top: 0 !important; }
body.stores #main #content { padding-top: 0 !important; }
body.stores .breadcrumb { margin-bottom: 0 !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .cs-piliers { grid-template-columns: repeat(2, 1fr); }
  .cs-quad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cs-hero { height: 380px; }
  .cs-hero__content { padding: 0 24px 40px; }
  .cs-body { max-width: calc(100% - 40px); padding: 40px 0 60px; }
  .cs-lead-block { flex-direction: column; gap: 32px; }
  .cs-toc { width: 100%; }
  .cs-split { grid-template-columns: 1fr; gap: 28px; }
  .cs-split--img-left .cs-split__media,
  .cs-split--img-right .cs-split__media { order: 0; }
  .cs-quad { grid-template-columns: 1fr 1fr; }
  .cs-trois-cols { grid-template-columns: 1fr; }
  .cs-tech-grid { grid-template-columns: 1fr; }
  .cs-gloss-grid { grid-template-columns: 1fr; }
  .cs-gloss-images { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .cs-gloss-images img:first-child { grid-row: auto; }
  .cs-troubles-grid { grid-template-columns: 1fr; }
  .cs-section--dark { margin-left: -20px; margin-right: -20px; padding: 36px 24px; }
  .cs-banner__stats { flex-wrap: wrap; gap: 16px; }
  .cs-stat__num { font-size: 28px; }
  .cs-firmness-scale { flex-wrap: wrap; }
  .cs-firmness-item { min-width: 45%; }
  .cs-piliers { grid-template-columns: 1fr; }
  .cs-textile-cards { grid-template-columns: 1fr; }
}

/* ---- CONSEIL PAGES: break out of theme container ---- */
.page-cms-conseil {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
/* Remove theme page-header above (no title shown for conseil pages) */
.cms-id-13 ~ .page-header,
.cms-id-14 ~ .page-header,
.cms-id-7 ~ .page-header,
.cms-id-12 ~ .page-header,
.cms-id-15 ~ .page-header { display: none !important; }

/* The main #content section in PrestaShop has a container class we must override */
#main > .page-content.page-cms-conseil,
#main .page-cms-conseil,
.container .page-cms-conseil {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Break out of #main container for hero full-width */
.page-cms-conseil .cs-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Also fix the #main container itself on conseil pages */
body.cms .page-wrapper {
  overflow-x: hidden;
}

/* Stores page — reduce empty space at top */
body.stores #main {
  padding-top: 0;
}
body.stores .page-wrapper > #main > section:first-child,
body.stores .page-header {
  display: none !important;
}

/* ---- CONSEIL pages: override mlfhomepage #main max-width ---- */
body#cms.page-cms .cs-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
}

/* Also make #main itself full-width for conseil pages */
body#cms .page-cms-conseil ~ *,
body#cms .page-cms-conseil {
  max-width: none;
}

/* The actual fix: override warehouse-override.css rule for cms conseil pages */
body.cms #main {
  max-width: none !important;
  width: 100% !important;
}

/* Re-constrain the cs-body (text sections) to a readable width */
body.cms #main .cs-body {
  max-width: min(1180px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
}

/* Full-width hero inside full-width #main */
body.cms #main .cs-hero {
  width: 100%;
  max-width: 100%;
  position: relative;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  height: 560px;
}

/* Dark section full-bleed */
body.cms #main .cs-section--dark {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  max-width: 100vw;
  border-radius: 0;
  padding: 72px min(8vw, 80px);
}

/* Ensure breadcrumb stays readable */
body.cms #wrapper .breadcrumb {
  max-width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 12px 0;
}

/* ============================================================
   CONSEIL PAGES — Full-width override (beats warehouse-override.css)
   ============================================================ */

/* Override warehouse-override.css max-width on #main for CMS conseil pages */
body#cms #main,
body#cms #content-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* But re-constrain non-conseil CMS pages (legal, CGV etc) */
body#cms:not(.cms-id-13):not(.cms-id-14):not(.cms-id-7):not(.cms-id-12):not(.cms-id-15):not(.cms-id-21) #main,
body#cms:not(.cms-id-13):not(.cms-id-14):not(.cms-id-7):not(.cms-id-12):not(.cms-id-15):not(.cms-id-21) #content-wrapper {
  max-width: var(--mlf-page-max) !important;
}

/* Hide empty page-header on conseil pages */
body#cms.cms-id-13 .page-header,
body#cms.cms-id-14 .page-header,
body#cms.cms-id-7 .page-header,
body#cms.cms-id-12 .page-header,
body#cms.cms-id-15 .page-header {
  display: none !important;
}

/* Also hide the .page-header padding-top from warehouse-override on conseil pages */
body#cms.cms-id-13 #content-wrapper,
body#cms.cms-id-14 #content-wrapper,
body#cms.cms-id-7 #content-wrapper,
body#cms.cms-id-12 #content-wrapper,
body#cms.cms-id-15 #content-wrapper {
  padding-top: 0 !important;
}

/* Re-add padding to the body content below hero */
body#cms .cs-body {
  max-width: min(1180px, calc(100% - 64px)) !important;
  margin: 0 auto !important;
  padding: 64px 0 80px !important;
}

/* Dark section breakout */
body#cms .cs-section--dark {
  margin-left: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  border-radius: 0 !important;
}

/* Ensure SVG icons in cs-quad don't blow up */
.cs-quad__icon svg,
.cs-pos-card > svg {
  width: 28px !important;
  height: 28px !important;
  display: block;
}

/* ============================================================
   CONSEIL PAGES FIX v4 — use cms-id-XX body classes
   ============================================================ */

/* Override with cms-id-XX body classes (actual PrestaShop class) */
body.cms-id-13 #main,
body.cms-id-14 #main,
body.cms-id-7 #main,
body.cms-id-12 #main,
body.cms-id-15 #main,
body.cms-id-13 #content-wrapper,
body.cms-id-14 #content-wrapper,
body.cms-id-7 #content-wrapper,
body.cms-id-12 #content-wrapper,
body.cms-id-15 #content-wrapper {
  max-width: 100% !important;
  width: 100% !important;
}

/* Hide empty page-header on conseil pages */
body.cms-id-13 .page-header,
body.cms-id-14 .page-header,
body.cms-id-7 .page-header,
body.cms-id-12 .page-header,
body.cms-id-15 .page-header {
  display: none !important;
}

/* Remove top padding on content-wrapper */
body.cms-id-13 #content-wrapper,
body.cms-id-14 #content-wrapper,
body.cms-id-7 #content-wrapper,
body.cms-id-12 #content-wrapper,
body.cms-id-15 #content-wrapper {
  padding-top: 0 !important;
}

/* Fix dark section full-bleed inside #main that's now full-width */
body.cms-id-13 .cs-section--dark,
body.cms-id-14 .cs-section--dark,
body.cms-id-7 .cs-section--dark,
body.cms-id-12 .cs-section--dark,
body.cms-id-15 .cs-section--dark {
  margin-left: -32px !important;
  margin-right: -32px !important;
  width: calc(100% + 64px) !important;
  max-width: none !important;
  border-radius: 0 !important;
}

/* Nuclear override for conseil pages — forces #main full-width */
/* Uses :is() to get higher specificity than warehouse-override.css */
body:is(.cms-id-13, .cms-id-14, .cms-id-7, .cms-id-12, .cms-id-15) #main,
body:is(.cms-id-13, .cms-id-14, .cms-id-7, .cms-id-12, .cms-id-15) #content-wrapper,
html body.cms-id-13 #main,
html body.cms-id-14 #main,
html body.cms-id-7 #main,
html body.cms-id-12 #main,
html body.cms-id-15 #main {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

/* Hero: don't try to overflow, just fill #main naturally */
body:is(.cms-id-13, .cms-id-14, .cms-id-7, .cms-id-12, .cms-id-15) .cs-hero {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Remove container padding that offsets content 10.5px from viewport edge */
body:is(.cms-id-13, .cms-id-14, .cms-id-7, .cms-id-12, .cms-id-15) #inner-wrapper.container,
body:is(.cms-id-13, .cms-id-14, .cms-id-7, .cms-id-12, .cms-id-15) #content-wrapper,
body:is(.cms-id-13, .cms-id-14, .cms-id-7, .cms-id-12, .cms-id-15) #main {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ---------- Partie 3 : page franchise (franchise.css du site actuel) ---------- */

/* ============================================================
   PAGE DEVENIR FRANCHISÉ — Ma Literie Française
   Même ADN que les pages conseils (palette / typo / rythme).
   Namespace : fr-
   ============================================================ */

.fr-page {
  max-width: 100%;
  overflow: hidden;
}

/* ============================================================
   HERO
   ============================================================ */
.fr-hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(48,101,175,.34), transparent 60%),
    radial-gradient(700px 460px at 12% 120%, rgba(229,26,38,.20), transparent 55%),
    linear-gradient(125deg, var(--navy-800, #1a242b) 0%, var(--navy, #212f37) 55%, var(--navy-700, #2b3a44) 100%);
}
.fr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%);
}
.fr-hero__tricolour {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #002395 0 33.333%, #fff 33.333% 66.666%, #ed2939 66.666% 100%);
  z-index: 3;
}
.fr-hero__img-wrap { position: absolute; inset: 0; }
.fr-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: .32;
}
.fr-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,15,22,.55) 0%, rgba(10,15,22,.15) 60%, transparent 100%);
}
.fr-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 min(8vw, 80px);
  max-width: 720px;
}
.fr-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.fr-hero__eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--red, var(--mlf-red));
  display: inline-block;
}
.fr-hero__title {
  font-family: var(--mlf-display);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 22px;
}
.fr-hero__desc {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  margin: 0 0 32px;
  max-width: 540px;
}

.fr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}
.fr-hero__actions .fr-btn {
  font-size: 13.5px;
  padding: 14px 22px;
}

/* ---- BUTTONS ---- */
.fr-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 15px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: #fff !important;
  transition: transform .25s var(--ease-out, cubic-bezier(.16,1,.3,1)), box-shadow .25s, background .2s, color .2s;
  font-family: inherit;
  line-height: 1;
}
.fr-btn--primary {
  background: var(--red, var(--mlf-red));
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(229,26,38,.28);
}
.fr-btn--primary:hover {
  background: var(--red-700, #c0141f);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(229,26,38,.34);
}
.fr-btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
}
.fr-btn--ghost:hover {
  background: #fff;
  color: var(--navy, #212f37) !important;
  border-color: #fff;
  transform: translateY(-2px);
}
.fr-btn--navy {
  background: var(--navy, #212f37);
  color: #fff !important;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(20,25,30,.05), 0 4px 14px rgba(20,25,30,.04));
}
.fr-btn--navy:hover {
  background: var(--navy-800, #1a242b);
  color: #fff !important;
  transform: translateY(-2px);
}
.fr-btn--block { display: flex; width: 100%; justify-content: center; }
.fr-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   BODY CONTAINER
   ============================================================ */
.fr-body {
  max-width: min(1140px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0 0;
}

/* ---- FULL-WIDTH IMAGE BANNER (full-bleed break) ---- */
.fr-banner {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  height: 360px;
  overflow: hidden;
  margin-bottom: 84px;
}
.fr-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.fr-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,15,22,.25) 0%, rgba(10,15,22,.55) 100%);
}
.fr-banner__caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 min(8vw, 80px) 36px;
  max-width: 1180px;
  margin: 0 auto;
}
.fr-banner__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin: 0 0 8px;
}
.fr-banner__title {
  font-family: var(--mlf-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -.01em;
  max-width: 640px;
  line-height: 1.25;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.fr-section { margin-bottom: 84px; }
.fr-section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 18px;
}
.fr-section__num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--red, var(--mlf-red));
  font-variant-numeric: tabular-nums;
}
.fr-section__title {
  font-family: var(--mlf-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy, #212f37);
  margin: 0;
  line-height: 1.15;
}
.fr-section__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft, #3a4049);
  margin: 0 0 8px;
  max-width: 760px;
}

/* ============================================================
   BLOC PROMESSE
   ============================================================ */
.fr-promise {
  background: var(--grey-50, #f5f5f5);
  border-radius: var(--rad-lg, 22px);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.fr-promise::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--red, var(--mlf-red)), var(--navy, #212f37));
}
.fr-promise__text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft, #3a4049);
  margin: 0 0 18px;
}
.fr-promise__text:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--navy, #212f37);
}

/* ============================================================
   BLOC 3 BÉNÉFICES
   ============================================================ */
.fr-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
  max-width: 920px;
}
.fr-benefit {
  background: #fff;
  border: 1px solid var(--line, #e9e5dc);
  border-radius: var(--rad-lg, 22px);
  padding: 34px 28px 30px;
  position: relative;
  transition: transform .3s var(--ease-out, cubic-bezier(.16,1,.3,1)), box-shadow .3s;
}
.fr-benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 6px 18px rgba(20,25,30,.08), 0 24px 48px rgba(20,25,30,.06));
}
.fr-benefit__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy, #212f37);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.fr-benefit__icon svg { width: 24px; height: 24px; }
.fr-benefit__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red, var(--mlf-red));
  margin: 0 0 6px;
}
.fr-benefit__title {
  font-family: var(--mlf-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy, #212f37);
  margin: 0 0 14px;
  line-height: 1.2; letter-spacing: -0.015em;}
.fr-benefit__text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft, #3a4049);
  margin: 0;
}

/* ============================================================
   BLOC BROCHURE (bandeau + mini-formulaire)
   ============================================================ */
.fr-brochure {
  background: var(--navy, #212f37);
  border-radius: var(--rad-lg, 22px);
  padding: 44px 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.fr-brochure::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(229,26,38,.14);
}
.fr-brochure__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0 0 10px;
}
.fr-brochure__title {
  font-family: var(--mlf-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2; letter-spacing: -0.015em;}
.fr-brochure__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
  margin: 0;
}
.fr-brochure__form { display: flex; flex-direction: column; gap: 12px; }
.fr-brochure__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fr-field > label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.fr-field > input,
.fr-field > textarea,
.fr-field > select {
  font-family: inherit;
  font-size: 15px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.fr-field > input::placeholder,
.fr-field > textarea::placeholder { color: rgba(255,255,255,.45); }
.fr-field > input:focus,
.fr-field > textarea:focus,
.fr-field > select:focus {
  border-color: #fff;
  background: rgba(255,255,255,.14);
}
.fr-field > select option { color: #1a1f24; }

/* ============================================================
   BLOC PROFIL / QUALIFICATION
   ============================================================ */
.fr-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 40px;
}
.fr-profile__intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft, #3a4049);
  margin: 0 0 28px;
}
.fr-profile__intro strong { color: var(--navy, #212f37); }
.fr-profile__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fr-profile__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft, #3a4049);
}
.fr-profile__list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--navy, #212f37);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 11l3.5 3.5L17 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 1px;
}
.fr-profile__media {
  border-radius: var(--rad-lg, 22px);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.fr-profile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.fr-profile__media:hover img { transform: scale(1.04); }

/* ============================================================
   BLOC FORMULAIRE PRINCIPAL
   ============================================================ */
.fr-contact {
  background: var(--grey-50, #f5f5f5);
  border-radius: var(--rad-xl, 32px);
  padding: 56px 56px 60px;
}
.fr-contact__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.fr-contact__intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft, #3a4049);
  margin: 0 0 24px;
}
.fr-contact__intro strong { color: var(--navy, #212f37); }
.fr-contact__point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft, #3a4049);
  margin-bottom: 14px;
}
.fr-contact__point svg { width: 20px; height: 20px; color: var(--red, var(--mlf-red)); flex-shrink: 0; margin-top: 1px; }
.fr-contact__form { display: flex; flex-direction: column; gap: 16px; }
.fr-contact__form .fr-field > label { color: var(--navy, #212f37); }
.fr-contact__form .fr-field > input,
.fr-contact__form .fr-field > textarea,
.fr-contact__form .fr-field > select {
  border: 1.5px solid var(--line, #e9e5dc);
  background: #fff;
  color: var(--ink, #1a1f24);
}
.fr-contact__form .fr-field > input:focus,
.fr-contact__form .fr-field > textarea:focus,
.fr-contact__form .fr-field > select:focus {
  border-color: var(--navy, #212f37);
  background: #fff;
}
.fr-contact__form .fr-field > input::placeholder,
.fr-contact__form .fr-field > textarea::placeholder { color: var(--muted-2, #b7bcc2); }
.fr-contact__form .fr-field > select option { color: #1a1f24; }
.fr-contact__grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fr-contact__textarea textarea { resize: vertical; min-height: 92px; }
.fr-form-note {
  font-size: 12.5px;
  color: var(--muted, #7c8088);
  margin: 4px 0 0;
  text-align: center;
  line-height: 1.5;
}
.fr-required { color: var(--red, var(--mlf-red)); }

/* ---- Success / error messages ---- */
.fr-msg {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.fr-msg--ok {
  background: #e8f5e9;
  border: 1px solid #bfe6c6;
  color: #1b5e20;
}
.fr-msg--err {
  background: #fdecea;
  border: 1px solid #f5c6c8;
  color: #b71c1c;
}

/* ============================================================
   BLOC RÉASSURANCE FINALE (dark, full-bleed)
   ============================================================ */
.fr-reassure {
  background: var(--navy, #212f37);
  border-radius: var(--rad-xl, 32px);
  padding: 60px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fr-reassure::before,
.fr-reassure::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.fr-reassure::before {
  width: 320px; height: 320px;
  background: rgba(48,101,175,.16);
  top: -140px; left: -80px;
}
.fr-reassure::after {
  width: 260px; height: 260px;
  background: rgba(229,26,38,.12);
  bottom: -120px; right: -60px;
}
.fr-reassure__text {
  position: relative;
  z-index: 2;
  font-family: var(--mlf-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255,255,255,.9);
  margin: 0 auto;
  max-width: 720px;
  letter-spacing: -.01em;
}
.fr-reassure__text em {
  font-style: italic;
  color: #fff;
}

/* ============================================================
   TRICOLOUR RULE (signature française)
   ============================================================ */
.fr-tricolour {
  height: 4px;
  width: 64px;
  border-radius: 4px;
  background: linear-gradient(90deg, #002395 0 33.333%, #fff 33.333% 66.666%, #ed2939 66.666% 100%);
  margin: 0 auto 26px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .fr-benefits { grid-template-columns: 1fr; }
  .fr-brochure { grid-template-columns: 1fr; gap: 28px; padding: 36px 32px; }
  .fr-profile { grid-template-columns: 1fr; gap: 32px; }
  .fr-contact { padding: 40px 32px; }
  .fr-contact__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .fr-hero { height: 460px; }
  .fr-hero__content { padding: 0 24px; }
  .fr-hero__desc { font-size: 16px; }
  .fr-body { max-width: calc(100% - 40px); padding: 48px 0 0; }
  .fr-section { margin-bottom: 56px; }
  .fr-banner { height: 240px; margin-bottom: 56px; }
  .fr-banner__caption { padding: 0 24px 24px; }
  .fr-promise { padding: 32px 26px; }
  .fr-brochure__row { grid-template-columns: 1fr; }
  .fr-contact__grid2 { grid-template-columns: 1fr; }
  .fr-reassure { padding: 44px 28px; }
  .fr-hero__actions { display: flex; flex-direction: column; }
  .fr-hero__actions .fr-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   FULL-WIDTH TREATMENT — keyed off cms-id-21 body class
   (même mécanisme + spécificité que les pages conseils)
   ============================================================ */
html body.cms-id-21 #main,
html body.cms-id-21 #content-wrapper,
html body.cms-id-21 #inner-wrapper.container,
body:is(.cms-id-21) #main,
body:is(.cms-id-21) #content-wrapper,
body:is(.cms-id-21) #inner-wrapper.container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.cms-id-21 .page-header { display: none !important; }
body.cms-id-21 #content-wrapper { padding-top: 0 !important; }
body.cms-id-21 #content,
body.cms-id-21 .page-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
/* Re-constrain the body content to a readable width (centré) */
body.cms-id-21 .fr-body {
  max-width: min(1140px, calc(100% - 64px)) !important;
  margin: 0 auto !important;
  padding: 72px 0 88px !important;
}
/* Full-bleed reassurance + banner inside full-width #main */
body.cms-id-21 .fr-reassure {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  border-radius: 0 !important;
  padding: 80px min(8vw, 80px) !important;
}
/* Hide the empty page-header that the theme emits */
body.cms-id-21 header.page-header:first-of-type { display: none !important; }
.page-cms-21 { padding: 0 !important; max-width: 100% !important; width: 100% !important; }

/* ---------- Partie 4 : ajustements V2 (après les styles repris, pour passer devant) ---------- */
.cs-hero, .fr-hero { border-radius: var(--mlf-rad-xl); }
.cs-hero__title, .fr-hero__title { font-family: var(--mlf-display); font-weight: 700; letter-spacing: -.01em; }
/* Bandeaux des guides et de la franchise : une carte arrondie dans la largeur de la page, pas un bord à bord. */
/* Les styles repris imposent la pleine largeur avec !important : on reprend la main avec un sélecteur plus précis. */
body#cms .cs-hero, body#cms .fr-hero { width: auto !important; max-width: min(1600px, calc(100% - 32px)) !important; left: auto !important; right: auto !important; margin-left: auto !important; margin-right: auto !important; }
.fr-hero__tricolour { left: 40px; right: 40px; border-radius: 0 0 4px 4px; }
/* Dans les guides, le conteneur de page est retiré : les blocs placés après le guide reprennent une marge. */
body#cms .rte-content:has(.cs-page, .fr-page) > :not(.cs-page, .fr-page) { max-width: min(1600px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
/* La règle générique « .rte-content img { height: auto } » écrasait la hauteur des images de couverture. */
.rte-content :is(.cs-hero__img, .fr-hero__img, .fr-banner__img, .cs-split__media img, .cs-tech__img-wrap img, .cs-gloss-images img, .fr-profile__media img, .cs-fullimg img) { height: 100%; }
@media (max-width: 768px) {
  /* Sur le site actuel, le bandeau a une hauteur fixe et coupe ses boutons sur mobile. */
  .cs-hero, .fr-hero { height: auto; min-height: 420px; border-radius: var(--mlf-rad-lg); }
  .cs-hero__content, .fr-hero__content { height: auto; min-height: 420px; padding-top: 56px; padding-bottom: 32px; }
}

/* =====================  Pages d'information V2 (maquette de Fable, 10 octobre 2026)  ===================== */
.mlf-info { display: grid; grid-template-columns: 260px minmax(0, 46rem); gap: 64px; align-items: start; padding: 8px 0 32px; }
.mlf-info__nav { position: sticky; top: 24px; }
.mlf-info__groupe { margin: 0 0 6px; padding: 0 16px; font-size: 0.8125rem; font-weight: 600; color: var(--mlf-muted); }
.mlf-info__nav ul { margin: 0 0 22px; padding: 0; list-style: none; }
.mlf-info__nav a { display: block; padding: 10px 16px; border-radius: var(--mlf-rad-sm); font-size: 0.9375rem; color: var(--mlf-ink) !important; text-decoration: none !important; }
.mlf-info__nav a:hover { background: var(--mlf-soft); }
.mlf-info__nav a[aria-current] { background: var(--mlf-cream); font-weight: 600; color: var(--mlf-navy) !important; }
.mlf-info__titre { margin: 0 0 12px; font-family: var(--mlf-display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--mlf-navy); }
.mlf-info .rte-content { max-width: none; margin: 0; }
.mlf-info .rte-content > .mlf-info__intro, .mlf-info .rte-content > p:first-child { font-size: 1.0625rem; color: var(--mlf-ink-soft); }
.mlf-info .rte-content h2 { margin: 36px 0 12px; font-size: 1.625rem; }
.mlf-info .rte-content .mlf-info__tarifs { display: table; width: 100%; margin: 18px 0 10px; font-size: 0.9375rem; }
.mlf-info .rte-content .mlf-info__tarifs thead th { padding: 10px 14px 10px 0; background: none; font-size: 0.8125rem; font-weight: 600; color: var(--mlf-muted); }
.mlf-info .rte-content .mlf-info__tarifs td { padding: 14px 14px 14px 0; color: var(--mlf-ink-soft); }
.mlf-info .rte-content .mlf-info__tarifs td:first-child { font-weight: 600; color: var(--mlf-navy); }
.mlf-info .rte-content .mlf-info__tarifs td:last-child { white-space: nowrap; color: var(--mlf-ink); }
.mlf-info .rte-content .mlf-info__tarifs td.est-gratuit { font-weight: 600; color: var(--mlf-green); }
.mlf-info__note { font-size: 0.8125rem; color: var(--mlf-muted); }
.mlf-info__cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0 18px; }
.mlf-info__cartes > div { padding: 18px 20px; border-radius: var(--mlf-rad); background: var(--mlf-cream); }
.mlf-info .rte-content .mlf-info__cartes h3 { margin: 0 0 4px; font-family: var(--mlf-sans); font-size: 1rem; font-weight: 700; }
.mlf-info__cartes p { margin: 0; font-size: 0.9375rem; color: var(--mlf-ink-soft); }
.mlf-info__encadre { margin: 32px 0 0; padding: 24px 26px; border: 1px solid var(--mlf-line); border-radius: var(--mlf-rad-lg); }
.mlf-info .rte-content .mlf-info__encadre h2 { margin-top: 0; }
.mlf-info__encadre p:last-child { margin-bottom: 0; }
.mlf-info__essai { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin: 32px 0 0; padding: 24px 26px; border-radius: var(--mlf-rad-lg); background: var(--mlf-navy); color: #c5cdd4; }
.mlf-info__essai p { margin: 0; font-size: 0.9375rem; }
.mlf-info__essai .mlf-info__essai-titre { margin-bottom: 4px; font-family: var(--mlf-display); font-weight: 700; font-size: 1.375rem; color: #fff; }
.mlf-info__essai a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: var(--mlf-pill); background: #fff; color: var(--mlf-navy) !important; font-weight: 600; text-decoration: none !important; }
body#cms .mlf-info .legal-page { max-width: none; }
@media (max-width: 991.98px) {
  .mlf-info { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mlf-info__nav { position: static; order: 2; padding-top: 20px; border-top: 1px solid var(--mlf-line); }
  .mlf-info__cartes { grid-template-columns: 1fr; }
  .mlf-info .rte-content .mlf-info__tarifs, .mlf-info .rte-content .mlf-info__tarifs tbody, .mlf-info .rte-content .mlf-info__tarifs tr, .mlf-info .rte-content .mlf-info__tarifs td { display: block; }
  .mlf-info .rte-content .mlf-info__tarifs thead { display: none; }
  .mlf-info .rte-content .mlf-info__tarifs tr { padding: 12px 0; border-bottom: 1px solid var(--mlf-line); }
  .mlf-info .rte-content .mlf-info__tarifs td { padding: 0; border: 0; }
}

/* =====================  Devenir franchisé V2 (maquette de Fable, 10 octobre 2026)  ===================== */
body#cms.cms-id-21 #content-wrapper, body#cms.cms-id-21 #main { padding-top: 0 !important; }
.mlf-fr { display: flex; flex-direction: column; gap: 56px; max-width: var(--mlf-page); margin: 0 auto; padding: 8px 0 32px; }
.mlf-fr .rte-content { max-width: none; margin: 0; display: flex; flex-direction: column; gap: 0; }
.mlf-fr-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 480px; padding: 48px; border-radius: var(--mlf-rad-xl); color: #fff; }
.mlf-fr-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mlf-fr-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20, 28, 34, .85) 0%, rgba(20, 28, 34, .55) 55%, rgba(20, 28, 34, .15) 100%); }
.mlf-fr-hero__texte { position: relative; z-index: 2; max-width: 600px; }
.mlf-fr .rte-content .mlf-fr-hero h1 { margin: 0 0 16px; font-family: var(--mlf-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; color: #fff; }
.mlf-fr-hero p { margin: 0 0 22px; font-size: 1.0625rem; line-height: 1.6; color: #e3e8ec; }
.mlf-fr-hero .mlf-fr-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.mlf-fr .rte-content a.mlf-fr-btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border: 1px solid #fff; border-radius: var(--mlf-pill); background: #fff; color: var(--mlf-navy) !important; font-weight: 600; text-decoration: none !important; }
.mlf-fr .rte-content a.mlf-fr-btn--contour { background: transparent; color: #fff !important; }
.mlf-fr .rte-content > h2 { margin: 56px 0 20px; font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.mlf-fr-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mlf-fr-cartes > div { padding: 26px; border: 1px solid var(--mlf-line); border-radius: var(--mlf-rad-lg); }
.mlf-fr .rte-content .mlf-fr-cartes h3 { margin: 0 0 10px; font-family: var(--mlf-display); font-size: 1.375rem; line-height: 1.25; color: var(--mlf-navy); }
.mlf-fr-cartes p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--mlf-ink-soft); }
.mlf-fr-profil { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 56px; padding: 48px; border-radius: var(--mlf-rad-xl); background: var(--mlf-cream); }
.mlf-fr .rte-content .mlf-fr-profil h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.mlf-fr-profil p { margin: 0; color: var(--mlf-ink-soft); }
.mlf-fr .rte-content .mlf-fr-profil ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mlf-fr-profil li { position: relative; margin: 0; padding: 14px 18px 14px 46px; border-radius: var(--mlf-rad); background: #fff; line-height: 1.5; }
.mlf-fr-profil li::before { content: "✓"; position: absolute; left: 18px; top: 14px; font-weight: 700; color: var(--mlf-green); }
.mlf-fr-parlons { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 40px; align-items: start; scroll-margin-top: 24px; }
.mlf-fr-parlons h2 { margin: 0 0 12px; font-family: var(--mlf-display); font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--mlf-navy); }
.mlf-fr-parlons__texte p { margin: 0 0 14px; color: var(--mlf-ink-soft); }
.mlf-fr-parlons__texte a { color: var(--mlf-ink-soft) !important; }
.mlf-fr-parlons .mlf-fr-parlons__tel a { font-size: 1.375rem; font-weight: 700; color: var(--mlf-navy) !important; text-decoration: none; }
@media (max-width: 991.98px) {
  .mlf-fr-hero { min-height: 0; padding: 32px 22px; }
  .mlf-fr-cartes, .mlf-fr-profil, .mlf-fr-parlons { grid-template-columns: minmax(0, 1fr); }
  .mlf-fr-profil { padding: 28px 20px; gap: 18px; }
}
body#cms #content.mlf-fr { width: calc(100% - 24px) !important; max-width: 1336px !important; margin: 0 auto !important; padding: 8px 0 32px !important; }
body#cms.cms-id-21 #wrapper .breadcrumb { max-width: 1336px; }
.mlf-info__mobile { display: none; }
@media (max-width: 991.98px) {
  .mlf-info__nav { display: none; }
  .mlf-info__mobile { display: block; margin: 4px 0 20px; border: 1px solid var(--mlf-line); border-radius: var(--mlf-rad); }
  .mlf-info__mobile summary { display: flex; justify-content: space-between; padding: 12px 16px; font-weight: 600; font-size: 0.9375rem; color: var(--mlf-navy); cursor: pointer; list-style: none; }
  .mlf-info__mobile summary::-webkit-details-marker { display: none; }
  .mlf-info__mobile summary::after { content: "+"; }
  .mlf-info__mobile[open] summary::after { content: "−"; }
  .mlf-info__mobile ul { margin: 0; padding: 0 16px 12px; list-style: none; }
  .mlf-info__mobile a { display: block; padding: 7px 0; color: var(--mlf-ink) !important; text-decoration: none !important; }
  .mlf-info .rte-content h2 { margin: 28px 0 10px; }
  .mlf-info__essai { padding: 20px; }
}
@media (max-width: 575.98px) {
  .mlf-fr { gap: 32px; }
  .mlf-fr-hero p:not(.mlf-fr-hero__actions) { font-size: .9375rem; }
  .mlf-fr .rte-content .mlf-fr-hero h1 { font-size: 1.75rem; }
  .mlf-fr-cartes { gap: 10px; }
  .mlf-fr-cartes > div { padding: 16px; }
  .mlf-fr .rte-content .mlf-fr-cartes h3 { font-size: 1rem; font-family: var(--mlf-sans); }
  .mlf-fr-cartes p { font-size: .875rem; }
  .mlf-fr .rte-content > h2 { margin: 32px 0 14px; }
  .mlf-fr-profil { margin-top: 32px; }
  .mlf-fr-profil li { padding: 10px 14px 10px 38px; font-size: .9375rem; }
  .mlf-fr-profil li::before { left: 14px; top: 10px; }
}
