/* --------------------------------------------------------------------------
   Dossier « Culture Indoor » (2026-09-23) - scoped to body#cms.cms-id-10 ONLY.
   Never matches another CMS page, category, product or the homepage.
   Consumes the shared tokens from modules/growshopfront/views/css/design-system.css.
   -------------------------------------------------------------------------- */

/* ---------- 1. Article column: centred, never flush left ---------- */
body#cms.cms-id-10 #content.page-content,
body#cms.cms-id-10 .page-content > .rte-content,
body#cms.cms-id-10 #content .rte-content {
  width: 100% !important;
  max-width: 1040px !important;
  margin-inline: auto !important;
}
body#cms.cms-id-10 .gs-ci {
  width: 100% !important;
  max-width: 1040px !important;
  margin-inline: auto;
}
body#cms.cms-id-10 #main-page-content { padding-inline: var(--gs-space-5); }

/* ---------- 2. Magazine header ---------- */
body#cms.cms-id-10 header.page-header {
  max-width: 1040px;
  margin: 0 auto var(--gs-space-6);
  text-align: center;
}
body#cms.cms-id-10 header.page-header::before {
  content: "LE JOURNAL GROWSHOP / DOSSIER";
  display: block;
  margin-bottom: var(--gs-space-3);
  font-family: var(--gs-font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--gs-muted);
  text-align: center;
}
body#cms.cms-id-10 header.page-header h1.page-title,
body#cms.cms-id-10 header.page-header h1.page-title > span {
  font-family: var(--gs-font-display) !important;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 700;
  max-width: 24ch;
  margin-inline: auto;
  text-align: center;
  text-transform: none;
}
/* the theme prints the rule under the title with .page-title:after */
body#cms.cms-id-10 header.page-header h1.page-title::before,
body#cms.cms-id-10 header.page-header h1.page-title::after,
body#cms.cms-id-10 header.page-header h1.page-title > span::before,
body#cms.cms-id-10 header.page-header h1.page-title > span::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
}
/* the theme forces Poppins on the title span: inherit the serif h1 instead */
body#cms.cms-id-10 header.page-header h1.page-title > span {
  font-family: inherit !important;
}

/* ---------- 3. Reading measure: centred 72ch, intro 68ch ---------- */
body#cms.cms-id-10 .gs-ci > p,
body#cms.cms-id-10 .gs-ci > ul,
body#cms.cms-id-10 .gs-ci > ol,
body#cms.cms-id-10 .gs-ci > h2,
body#cms.cms-id-10 .gs-ci > h3,
body#cms.cms-id-10 .gs-ci-faq,
body#cms.cms-id-10 .gs-ci-answer,
body#cms.cms-id-10 .gs-ci-note,
body#cms.cms-id-10 .gs-ci-note-inline {
  max-width: var(--gs-reading);
  margin-inline: auto;
}
body#cms.cms-id-10 .gs-ci-lede {
  max-width: 68ch;
  margin-inline: auto;
  margin-bottom: var(--gs-space-6);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 500;
}
body#cms.cms-id-10 .gs-ci-byline {
  max-width: 68ch;
  margin: 0 auto var(--gs-space-6);
  padding-top: var(--gs-space-2);
  border-top: 1px solid var(--gs-line);
  font-size: 13px;
  color: var(--gs-muted);
}

/* ---------- 4. Images: hero and detail ~1000px, centred ---------- */
body#cms.cms-id-10 .gs-ci-figure {
  max-width: 1000px !important;
  margin: 0 auto var(--gs-space-6);
}
body#cms.cms-id-10 .gs-ci-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--gs-radius);
  background: var(--gs-cream);
}
body#cms.cms-id-10 .gs-ci-figure figcaption {
  margin-top: var(--gs-space-2);
  font-size: 13px;
  line-height: 1.5;
  color: var(--gs-muted);
}

/* ---------- 5. Sommaire: compact, two columns on desktop ---------- */
body#cms.cms-id-10 .gs-ci-toc {
  max-width: var(--gs-reading);
  margin: 0 auto var(--gs-space-6);
  padding: var(--gs-space-4) var(--gs-space-5);
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-radius);
  background: var(--gs-ivory);
}
body#cms.cms-id-10 .gs-ci-toc h2 {
  margin: 0 0 var(--gs-space-2);
  font-family: var(--gs-font-body);
  font-size: 16px;
}
body#cms.cms-id-10 .gs-ci-toc ul {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  column-gap: var(--gs-space-5);
}

/* ---------- 6. Highlight blocks ---------- */
body#cms.cms-id-10 .gs-ci-answer {
  padding: var(--gs-space-5);
  margin-bottom: var(--gs-space-6);
  background: var(--gs-cream);
  border-left: 3px solid var(--gs-forest);
  border-radius: var(--gs-radius);
}
body#cms.cms-id-10 .gs-ci-answer h2 { margin-top: 0; }
body#cms.cms-id-10 .gs-ci-answer ul { margin-bottom: 0; }

body#cms.cms-id-10 .gs-ci-note,
body#cms.cms-id-10 .gs-ci-note-inline {
  padding: var(--gs-space-4) var(--gs-space-5);
  margin-bottom: var(--gs-space-5);
  background: var(--gs-warning-pale);
  border-left: 3px solid var(--gs-warning);
  border-radius: var(--gs-radius);
}
body#cms.cms-id-10 .gs-ci-note p,
body#cms.cms-id-10 .gs-ci-note-inline { margin-bottom: 0; }

body#cms.cms-id-10 .gs-ci-timeline {
  list-style: none;
  margin: 0 auto var(--gs-space-6);
  padding: 0;
}
body#cms.cms-id-10 .gs-ci-timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 var(--gs-space-4) var(--gs-space-5);
  border-left: 2px solid var(--gs-line);
}
body#cms.cms-id-10 .gs-ci-timeline li:last-child { padding-bottom: 0; }
body#cms.cms-id-10 .gs-ci-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gs-forest);
}
body#cms.cms-id-10 .gs-ci-timeline b {
  display: block;
  font-family: var(--gs-font-display);
  font-size: 18px;
  line-height: 1.3;
}

/* ---------- 7. Nine-domain table: may use the full article width ---------- */
body#cms.cms-id-10 .gs-ci-table-wrap {
  max-width: 1040px;
  margin: 0 auto var(--gs-space-6);
  overflow-x: auto;
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-radius);
}
body#cms.cms-id-10 .gs-ci table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}
body#cms.cms-id-10 .gs-ci caption {
  caption-side: bottom;
  padding: var(--gs-space-2) var(--gs-space-3);
  font-size: 12px;
  color: var(--gs-muted);
  text-align: left;
}
body#cms.cms-id-10 .gs-ci th,
body#cms.cms-id-10 .gs-ci td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gs-line);
  text-align: left;
  vertical-align: top;
}
body#cms.cms-id-10 .gs-ci thead th { background: var(--gs-ivory); font-weight: 600; }
body#cms.cms-id-10 .gs-ci tbody tr:nth-child(even) td { background: #FBFAF7; }
body#cms.cms-id-10 .gs-ci tbody tr:last-child td { border-bottom: 0; }

/* ---------- 8. Need cards and CTA row ---------- */
body#cms.cms-id-10 .gs-ci-needs {
  list-style: none;
  display: grid;
  gap: var(--gs-space-3);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 960px;
  margin: 0 auto var(--gs-space-5);
  padding: 0;
}
body#cms.cms-id-10 .gs-ci-needs li {
  margin: 0;
  padding: var(--gs-space-4);
  background: var(--gs-white);
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-radius);
}
body#cms.cms-id-10 .gs-ci-needs b {
  display: block;
  margin-bottom: 4px;
  color: var(--gs-forest);
}
body#cms.cms-id-10 .gs-ci-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gs-space-3);
  max-width: 960px;
  margin: var(--gs-space-5) auto var(--gs-space-6);
}
body#cms.cms-id-10 .gs-ci-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--gs-forest);
  color: var(--gs-white);
  border-radius: var(--gs-radius);
  font-weight: 600;
  text-decoration: none;
}
/* The native layer sets `body:has(#gs-header) #wrapper a{color:inherit}` (2 ids),
   which outranks a plain .gs-ci-cta rule: every state is pinned here, scoped to
   this page only, so the label can never become green on the green background. */
body#cms.cms-id-10 #wrapper .gs-ci .gs-ci-cta:link,
body#cms.cms-id-10 #wrapper .gs-ci .gs-ci-cta:visited {
  color: var(--gs-white) !important;
  text-decoration: none;
}
body#cms.cms-id-10 #wrapper .gs-ci .gs-ci-cta:hover,
body#cms.cms-id-10 #wrapper .gs-ci .gs-ci-cta:focus,
body#cms.cms-id-10 #wrapper .gs-ci .gs-ci-cta:active {
  background: var(--gs-forest-deep);
  color: var(--gs-white) !important;
  text-decoration: none;
}
body#cms.cms-id-10 #wrapper .gs-ci .gs-ci-cta:focus-visible {
  background: var(--gs-forest-deep);
  color: var(--gs-white) !important;
  outline: 3px solid var(--gs-focus);
  outline-offset: 2px;
}
body#cms.cms-id-10 .gs-ci-cta-secondary {
  background: transparent;
  color: var(--gs-forest);
  border: 1px solid var(--gs-forest);
}
body#cms.cms-id-10 #wrapper .gs-ci .gs-ci-cta-secondary:link,
body#cms.cms-id-10 #wrapper .gs-ci .gs-ci-cta-secondary:visited {
  background: transparent;
  color: var(--gs-forest) !important;
  text-decoration: none;
}
body#cms.cms-id-10 #wrapper .gs-ci .gs-ci-cta-secondary:hover,
body#cms.cms-id-10 #wrapper .gs-ci .gs-ci-cta-secondary:active {
  background: var(--gs-ivory);
  color: var(--gs-forest) !important;
}
body#cms.cms-id-10 #wrapper .gs-ci .gs-ci-cta-secondary:focus-visible {
  background: var(--gs-ivory);
  color: var(--gs-forest) !important;
  outline: 3px solid var(--gs-focus);
  outline-offset: 2px;
}

/* ---------- 9. FAQ and sources ---------- */
body#cms.cms-id-10 .gs-ci-faq h3 {
  margin-top: var(--gs-space-5);
  font-size: 19px;
}
body#cms.cms-id-10 .gs-ci-sources { font-size: 14px; }

/* Simple list of the nine site names: no table, no comment, no caption. */
body#cms.cms-id-10 .gs-ci-sites {
  max-width: var(--gs-reading);
  margin: 0 auto var(--gs-space-5);
  padding-left: 18px;
  columns: 2;
  column-gap: var(--gs-space-5);
}

/* ---------- 10. Mobile ---------- */
@media (max-width: 767px) {
  body#cms.cms-id-10 #main-page-content { padding-inline: 20px; }
  body#cms.cms-id-10 header.page-header { margin-bottom: var(--gs-space-5); }
  body#cms.cms-id-10 header.page-header h1.page-title,
  body#cms.cms-id-10 header.page-header h1.page-title > span {
    /* long unbreakable tokens (indoordiscount.com) must fit a 319px viewport:
       6.6vw keeps the word on one line without inserting spaces or <wbr> */
    font-size: clamp(20px, 6.6vw, 34px);
    line-height: 1.12;
    max-width: none;
  }
  body#cms.cms-id-10 .gs-ci-lede { font-size: 17px; }
  body#cms.cms-id-10 .gs-ci-answer,
  body#cms.cms-id-10 .gs-ci-toc { padding: var(--gs-space-4); }
  body#cms.cms-id-10 .gs-ci-toc ul { columns: 1; }
  body#cms.cms-id-10 .gs-ci-sites { columns: 1; }
  body#cms.cms-id-10 .gs-ci-needs { grid-template-columns: 1fr; }
  body#cms.cms-id-10 .gs-ci-figure,
  body#cms.cms-id-10 .gs-ci-table-wrap { max-width: 100%; }
  body#cms.cms-id-10 .gs-ci-cta { width: 100%; justify-content: center; }

  /* Nine-domain table becomes stacked cards on mobile: no horizontal scroll,
     the header row stays in the accessibility tree only. Desktop is untouched. */
  body#cms.cms-id-10 .gs-ci-table-wrap { overflow: visible; }
  body#cms.cms-id-10 .gs-ci table {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }
  body#cms.cms-id-10 .gs-ci thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  body#cms.cms-id-10 .gs-ci tbody,
  body#cms.cms-id-10 .gs-ci tr,
  body#cms.cms-id-10 .gs-ci td {
    display: block;
    width: 100%;
  }
  body#cms.cms-id-10 .gs-ci tbody tr {
    padding: var(--gs-space-4);
    border-bottom: 1px solid var(--gs-line);
  }
  body#cms.cms-id-10 .gs-ci tbody tr:nth-child(even) { background: #FBFAF7; }
  body#cms.cms-id-10 .gs-ci tbody tr:last-child { border-bottom: 0; }
  body#cms.cms-id-10 .gs-ci td,
  body#cms.cms-id-10 .gs-ci tbody tr:nth-child(even) td {
    padding: 0;
    background: transparent;
    border: 0;
  }
  body#cms.cms-id-10 .gs-ci td:first-child {
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--gs-forest);
  }
  body#cms.cms-id-10 .gs-ci caption {
    display: block;
    padding: 0 var(--gs-space-4) var(--gs-space-3);
  }
}

/* --------------------------------------------------------------------------
   Delta CSS pour la réécriture du 23 septembre 2026.
   À AJOUTER À LA FIN de :
     themes/warehousechild/assets/css/culture-indoor-20260923.css
   Toutes les règles restent scopées à body#cms.cms-id-10 : aucune autre page,
   catégorie, fiche produit ou page d'accueil ne peut être atteinte.
   Rappel : si ce fichier change, l'URL versionnée du <link> dans head.tpl
   (ligne 214, actuellement ?v=b63f79516b) doit être régénérée avec les 10
   premiers caractères hexadécimaux du nouveau SHA-256.
   -------------------------------------------------------------------------- */

/* ---------- 1. Titre : la nouvelle formulation est plus longue ---------- */
/* L'ancien réglage plafonnait le H1 à 24ch ; le titre vérifié en 2026 contient
   trois noms de domaine. 36ch garde une mesure lisible sans casser la ligne. */
body#cms.cms-id-10 header.page-header h1.page-title,
body#cms.cms-id-10 header.page-header h1.page-title > span {
  max-width: 36ch;
}

/* ---------- 2. Tableaux : légende, en-têtes et défilement contrôlé ---------- */
body#cms.cms-id-10 .gs-ci-table-wrap {
  -webkit-overflow-scrolling: touch;
}
body#cms.cms-id-10 .gs-ci table caption {
  caption-side: bottom;
  padding: var(--gs-space-2) var(--gs-space-3);
  font-size: 12px;
  line-height: 1.5;
  color: var(--gs-muted);
  text-align: left;
}
body#cms.cms-id-10 .gs-ci table th {
  white-space: nowrap;
}
body#cms.cms-id-10 .gs-ci table td {
  overflow-wrap: break-word;
  word-break: normal;
}

/* ---------- 3. Mobile : cartes étiquetées, sans défilement horizontal ---------- */
/* Le thème empile déjà les cellules en cartes sous 767px. On ajoute l'étiquette
   de colonne lue depuis data-label, pour que chaque valeur reste identifiable
   une fois l'en-tête retiré de la vue. */
@media (max-width: 767px) {
  body#cms.cms-id-10 .gs-ci table td[data-label]::before {
    content: attr(data-label) " : ";
    font-weight: 600;
    color: var(--gs-forest);
  }
  body#cms.cms-id-10 .gs-ci table td:first-child {
    font-weight: 700;
  }
  body#cms.cms-id-10 .gs-ci table td:first-child::before {
    content: attr(data-label) " : ";
    font-weight: 700;
    color: var(--gs-forest);
  }
  /* Les cellules « Source » contiennent des liens de texte : on les laisse
     respirer comme des boutons de lecture, sans les transformer en boutons. */
  body#cms.cms-id-10 .gs-ci table td[data-label="Source"] {
    padding-top: 6px;
  }
}

/* ---------- 4. Frise chronologique : dix étapes, lisibles sur mobile ---------- */
@media (max-width: 767px) {
  body#cms.cms-id-10 .gs-ci-timeline li {
    padding-left: var(--gs-space-4);
  }
  body#cms.cms-id-10 .gs-ci-timeline b {
    font-size: 17px;
  }
}
