
/* ============================================================
   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, #e51a26); }

/* ---- 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, #e51a26);
  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, #e51a26); }
.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, #e51a26);
  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, #e51a26);
  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, #e51a26) !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, #e51a26);
  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;
}
