/* =========================================================================
   Lightyshare — support.lightyshare.com
   Refonte CSS 2026-05 (drop-in replacement)

   Priorités :
   - lisibilité des articles (contraste, rythme typo, largeur de lecture)
   - hiérarchie visible des sections (h2 / h3 distincts)
   - liens lisibles (fini le rouge dotted criard)
   - composants : callouts, blockquotes, listes, code
   - cartes accueil avec ombres + hover lift
   - print propre (sans navbar, ni sidebar)

   Variables au :root pour ajuster facilement.
   ========================================================================= */


/* ---------- 1. Tokens & variables ---------- */

:root {
  /* Aligné sur la charte Lightyshare ($ls-color-* dans resources/sass) */
  --ly-red: #fc2249;            /* primary */
  --ly-red-700: #d91a3d;        /* primary-dark */
  --ly-red-50: #FFEDF0;         /* primary-light */

  --ly-ink: #080025;            /* secondary (titres) */
  --ly-ink-2: #1a1a2e;          /* neutral-800 */
  --ly-text: #4a4a4a;           /* neutral-600 (body) */
  --ly-text-muted: #6F6F6F;     /* neutral-500 (meta) */
  --ly-text-faint: #909399;     /* neutral-400 */

  --ly-bg: #ffffff;
  --ly-surface: #F9F9F9;        /* bg-muted */
  --ly-surface-2: #F5F5F5;      /* neutral-50 */

  --ly-border: #EAECF0;         /* neutral-100 */
  --ly-border-strong: #DCDFE6;  /* neutral-200 */

  --ly-success: #28933A;
  --ly-success-bg: #E9FFEC;
  --ly-warning: #e6a23c;
  --ly-warning-bg: #FEF3E0;
  --ly-danger:  #f56c6c;
  --ly-danger-bg: #FEF0F0;
  --ly-info:    #2EA2E5;
  --ly-info-bg: #EFF6FA;

  --ly-radius: 10px;
  --ly-radius-lg: 14px;
  --ly-radius-pill: 999px;

  --ly-shadow-sm: 0 1px 2px rgba(8, 0, 37, 0.04), 0 1px 3px rgba(8, 0, 37, 0.04);
  --ly-shadow-md: 0 4px 12px rgba(8, 0, 37, 0.06), 0 2px 4px rgba(8, 0, 37, 0.04);
  --ly-shadow-lg: 0 12px 28px rgba(8, 0, 37, 0.08), 0 4px 8px rgba(8, 0, 37, 0.04);

  --ly-prose-width: 720px;
}


/* ---------- 2. Typographie de base ---------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body,
input,
button,
select,
textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--ly-bg);
  color: var(--ly-text);
  font-size: 17px;
  line-height: 1.65;
}

strong {
  font-weight: 700;
  color: var(--ly-ink);
}

em {
  color: var(--ly-ink);
  font-style: italic;
}

::selection {
  background: var(--ly-red-50);
  color: var(--ly-red-700);
}


/* ---------- 3. Container ---------- */

.container-fluid {
  max-width: 1234px;
  margin: 0 auto;
  position: relative;
}


/* ---------- 4. Navbar ---------- */

.navbar { background: #F4F4F3; }

.navbar .navbar-inner {
  background: #F4F4F3;
  box-shadow: none;
  z-index: 999;
  position: relative;
}

.navbar-inner {
  max-width: 1234px;
  margin: 0 auto;
  position: relative;
}

.navbar .brand {
  background: url(https://i.ibb.co/rQtwwT2/logo-lightyshare.png) no-repeat;
  background-size: 100%, auto;
  background-position: 63% 50%;
  max-width: 238px;
  width: 100%;
  padding: 74px 0 12px;
}

.navbar .brand span { display: none; }

.navbar .nav li a {
  font-size: 16px;
  line-height: 20px;
  color: #1B1B1B;
  transition: color 0.2s ease;
}

.navbar .brand:hover,
.navbar .nav li a:hover,
.navbar .nav li a:focus,
.navbar .nav .active a,
.navbar .nav .active a:hover,
.navbar .nav .active a:focus {
  color: var(--ly-red);
}

.navbar .nav .active .caret { display: none; }

/* CTA Contact — pill rouge brand (homepage style) */
#contact a {
  background-color: var(--ly-red);
  border-radius: var(--ly-radius-pill);
  color: #fff !important;
  font-size: 15px;
  line-height: 18px;
  font-weight: 700;
  padding: 13px 26px;
  border: 1px solid var(--ly-red);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin-left: 15px;
  box-shadow: 0 4px 12px rgba(252, 34, 73, 0.18);
}

#contact a:hover {
  background-color: var(--ly-red-700);
  border-color: var(--ly-red-700);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(252, 34, 73, 0.28);
}

/* Nav active — pill rouge léger au lieu du texte nu */
.navbar .nav .active a,
.navbar .nav .active a:hover,
.navbar .nav .active a:focus {
  color: var(--ly-red) !important;
  background: var(--ly-red-50);
  border-radius: var(--ly-radius-pill);
  padding: 8px 16px;
}

@media (min-width: 769px) {
  .navbar .nav { position: absolute; right: 0; left: auto; bottom: 18px; margin-right: 0; }
}

@media (min-width: 768px) and (max-width: 910px) {
  .navbar .nav li a { font-size: 15px; padding-left: 10px; padding-right: 10px; }
  #contact a { font-size: 14px; padding: 12px 16px; margin-left: 0; }
}

@media (max-width: 768px) {
  .nav-collapse .nav { margin: 15px 0 30px; }
  .navbar .brand { padding: 75px 0 0; background-position: 61% 50%; }
  .navbar .btn-navbar { position: absolute; top: 9px; }
  .btn-navbar .icon-bar + .icon-bar { margin-top: 5px; }
  .navbar .btn-navbar .icon-bar {
    background: #1B1B1B !important;
    box-shadow: none !important;
    width: 25px !important;
    border-radius: 100px !important;
  }
  .navbar .nav li a { padding: 15px 0; }
}


/* ---------- 5. Hero / recherche (home) ---------- */

/* Hero — fond blanc + accents rouges décoratifs (style homepage) */
#docsSearch {
  border-bottom: 0;
  padding: 80px 24px 100px;
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse 600px 200px at 15% 100%, rgba(252, 34, 73, 0.05), transparent 70%),
    radial-gradient(ellipse 500px 180px at 90% 0%, rgba(252, 34, 73, 0.06), transparent 70%);
  margin-bottom: 60px;
  position: relative;
}

#docsSearch h1 {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ly-ink);
  letter-spacing: -0.02em;
  max-width: 720px;
  position: relative;
  margin: auto;
  float: none;
  text-align: center;
}

/* Sous-titre tagline sous le H1 (évergreen) */
#docsSearch h1::after {
  content: "Trouve la réponse à ta question en quelques secondes";
  display: block;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--ly-text-muted);
  letter-spacing: normal;
  margin-top: 16px;
}

/* Recherche — input large avec loupe préfixée + bouton rouge brand */
#searchBar {
  max-width: 650px;
  padding: 32px 0 0;
  margin: 0 auto;
  position: relative;
}

#searchBar .search-query {
  height: 60px;
  background-color: #fff;
  border-radius: var(--ly-radius-pill);
  border: 1px solid var(--ly-border);
  padding: 0 160px 0 56px;
  box-shadow: var(--ly-shadow-md);
  font-size: 17px;
  line-height: 1.2;
  color: var(--ly-text);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  width: 100%;
  float: none;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%236F6F6F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  background-position: 20px center;
}

#searchBar .search-query:focus {
  border-color: var(--ly-red);
  box-shadow: 0 0 0 4px rgba(252, 34, 73, 0.12), var(--ly-shadow-md);
}

/* Bouton "RECHERCHE" — uniquement le hero, pas la variante sidebar (.sm) */
#searchBar:not(.sm) button {
  color: #fff;
  font-weight: 700;
  text-shadow: none;
  background: var(--ly-red);
  border-radius: var(--ly-radius-pill);
  border: 0;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 28px;
  height: 46px;
  position: absolute;
  top: 39px;
  right: 7px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(252, 34, 73, 0.25);
}

#searchBar:not(.sm) button:hover {
  background-color: var(--ly-red-700);
  transform: translateY(-1px);
}

/* Sidebar search — masquer le bouton submit, l'input se valide à Enter */
#sidebar form button,
#searchBar.sm button {
  display: none !important;
}

::placeholder { color: var(--ly-text-muted) !important; }
:-ms-input-placeholder { color: var(--ly-text-muted) !important; }

input:focus,
input[type=text]:focus { box-shadow: none; transition: border-color 0.2s ease; }
:focus { outline: none; }

/* Search results dropdown */
#serp-dd,
#serp-dd.sb {
  border: 1px solid var(--ly-border);
  border-radius: var(--ly-radius);
  top: 60px;
  box-shadow: var(--ly-shadow-md);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ly-text);
  background: #fff;
}
#serp-dd { top: 150%; }

#serp-dd .result a {
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ly-text);
  transition: background-color 0.15s ease;
}

#serp-dd .result > li.active,
#serp-dd .result a:hover {
  background: var(--ly-surface-2);
  color: var(--ly-ink);
}

@media (min-width: 200px) and (max-width: 500px) {
  #docsSearch { padding: 60px 16px 80px; margin-bottom: 40px; }
  #collection-category-33 { margin-top: 40px; }
  #docsSearch h1 { font-size: 36px; line-height: 1.15; }
  #docsSearch h1::after { font-size: 15px; margin-top: 12px; }
  #searchBar { width: 100%; padding-top: 24px; }
  #searchBar .search-query {
    padding: 0 110px 0 48px;
    width: 100%;
    height: 54px;
    background-position: 16px center;
  }
  #searchBar button {
    padding: 0 18px;
    font-size: 13px;
    height: 42px;
    top: 30px;
    right: 6px;
  }
  #searchBar button span { display: inline; }
  #searchBar button .icon-search { display: none; }
}


/* ---------- 6. Categories grid (home) ---------- */

a:focus { outline: none; text-decoration: none; }

.collection-category h2,
.collection-category h2 a,
h2 {
  font-size: 32px;
  line-height: 1.15;
  color: var(--ly-ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.collection-category h2 a {
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.collection-category h2 a:hover { border-bottom: 0; color: var(--ly-red); }

#collection-category-33 { margin-top: 80px; }

.collection-category .category-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 24px;
  margin-top: 32px;
}

.category-list .category,
.category-list .category:hover,
.category-list .category:focus {
  text-align: left;
  display: block !important;
  float: none !important;
  background-repeat: no-repeat !important;
  background-position: 28px 36px !important;
  background-size: 64px 64px !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  text-decoration: none;
  color: inherit;
}

.category-list .category {
  border: 1px solid var(--ly-border);
  border-radius: var(--ly-radius-lg);
  box-shadow: var(--ly-shadow-sm);
  margin: 0;
  padding: 140px 28px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  background-color: #fff;
}

.category-list .category:hover {
  background-color: #fff;
  box-shadow: var(--ly-shadow-lg);
  border-color: var(--ly-border-strong);
  transform: translateY(-3px);
}

.category-list h3 {
  color: var(--ly-ink);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.category-list .category p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ly-text-muted);
  margin-bottom: 16px;
}

.category-list .category .article-count {
  color: var(--ly-ink);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.category-list .category .article-count::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
}

.category-list .category:hover .article-count {
  color: var(--ly-red);
}

.category-list .category:hover .article-count::after {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .collection-category h2 { text-align: left; }
}

@media (min-width: 200px) and (max-width: 1170px) {
  .collection-category .category-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 200px) and (max-width: 760px) {
  .collection-category .category-list { grid-template-columns: 1fr; grid-gap: 16px; }
}

/* ----------------------------------------------------------------------
   Icônes catégories — SVG inline, aucune dépendance externe.
   Style commun : carré 64×64 arrondi (rx=12) noir #1B1B1B,
   icône line-style 2.5px blanche, viewBox 0 0 64 64.
   ---------------------------------------------------------------------- */

/* Fallback : dossier — toute catégorie sans override hérite de cet icône */
.category-list .category {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><rect width='64' height='64' rx='12' fill='%231B1B1B'/><path d='M14 22a4 4 0 014-4h8l4 4h16a4 4 0 014 4v18a4 4 0 01-4 4H18a4 4 0 01-4-4V22z' stroke='white' stroke-width='2.5' stroke-linejoin='round' fill='none'/></svg>");
}

/* check-circle — Premiers pas */
#category-49 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><rect width='64' height='64' rx='12' fill='%231B1B1B'/><circle cx='32' cy='32' r='14' stroke='white' stroke-width='2.5' fill='none'/><path d='M26 32l4 4 8-8' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
}

/* user — Mon compte */
#category-82 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><rect width='64' height='64' rx='12' fill='%231B1B1B'/><circle cx='32' cy='26' r='6' stroke='white' stroke-width='2.5' fill='none'/><path d='M20 46c0-6 6-10 12-10s12 4 12 10' stroke='white' stroke-width='2.5' stroke-linecap='round' fill='none'/></svg>");
}

/* shield-check — Certification, Sécurité, Safe */
#category-159,
#category-108,
#category-158 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><rect width='64' height='64' rx='12' fill='%231B1B1B'/><path d='M32 16l-12 5v9c0 8 5 14 12 16 7-2 12-8 12-16v-9l-12-5z' stroke='white' stroke-width='2.5' stroke-linejoin='round' fill='none'/><path d='M26 32l4 4 8-8' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
}

/* camera — Premiers pas locataire, matériel, autres "camera" */
#category-55,
#category-73,
#category-102 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><rect width='64' height='64' rx='12' fill='%231B1B1B'/><rect x='16' y='24' width='32' height='20' rx='3' stroke='white' stroke-width='2.5' fill='none'/><circle cx='32' cy='34' r='6' stroke='white' stroke-width='2.5' fill='none'/><path d='M24 24l3-4h10l3 4' stroke='white' stroke-width='2.5' stroke-linejoin='round' fill='none'/></svg>");
}

/* message-square — Demande de location, demandes côté propriétaire */
#category-56 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><rect width='64' height='64' rx='12' fill='%231B1B1B'/><path d='M16 24c0-2 2-4 4-4h24c2 0 4 2 4 4v14c0 2-2 4-4 4H30l-8 6v-6h-2c-2 0-4-2-4-4V24z' stroke='white' stroke-width='2.5' stroke-linejoin='round' fill='none'/></svg>");
}

/* calendar-check — Déroulement d'une location */
#category-57 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><rect width='64' height='64' rx='12' fill='%231B1B1B'/><rect x='16' y='20' width='32' height='28' rx='3' stroke='white' stroke-width='2.5' fill='none'/><path d='M16 28h32M22 16v8M42 16v8M26 38l4 4 8-8' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
}

/* credit-card — Règlement & Facturation */
#category-147 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><rect width='64' height='64' rx='12' fill='%231B1B1B'/><rect x='14' y='20' width='36' height='24' rx='3' stroke='white' stroke-width='2.5' fill='none'/><path d='M14 28h36' stroke='white' stroke-width='2.5'/><path d='M22 38h6' stroke='white' stroke-width='2.5' stroke-linecap='round'/></svg>");
}

/* zap — Boost / feature / nouveautés */
#category-36,
#category-188,
#category-136 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><rect width='64' height='64' rx='12' fill='%231B1B1B'/><path d='M34 14l-12 20h8l-2 16 12-20h-8l2-16z' stroke='white' stroke-width='2.5' stroke-linejoin='round' fill='none'/></svg>");
}

/* headset — Premium support */
#category-37,
#category-38 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><rect width='64' height='64' rx='12' fill='%231B1B1B'/><path d='M16 36v-4a16 16 0 0132 0v4' stroke='white' stroke-width='2.5' stroke-linecap='round' fill='none'/><rect x='14' y='34' width='8' height='12' rx='2' stroke='white' stroke-width='2.5' fill='none'/><rect x='42' y='34' width='8' height='12' rx='2' stroke='white' stroke-width='2.5' fill='none'/></svg>");
}

/* umbrella — Assurance */
#category-110 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><rect width='64' height='64' rx='12' fill='%231B1B1B'/><path d='M16 30c0-9 7-14 16-14s16 5 16 14H16zM32 16v32M28 44a4 4 0 008 0' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
}

/* package — Autres / matériel / Losange */
#category-72,
#category-109 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><rect width='64' height='64' rx='12' fill='%231B1B1B'/><path d='M32 16l-14 7v18l14 7 14-7V23l-14-7z' stroke='white' stroke-width='2.5' stroke-linejoin='round' fill='none'/><path d='M18 23l14 7 14-7M32 30v18' stroke='white' stroke-width='2.5' stroke-linejoin='round'/></svg>");
}


/* ---------- 7. Sidebar (page intérieure) ---------- */

/* Hide stray HelpScout labels around search inputs (le badge "search-query") */
#sidebar form > label,
#sidebar form legend,
#searchBar > label,
#searchBar > legend,
form > label[for="search-query"],
form > label.search-query,
form > label.searchBar {
  display: none !important;
}

#sidebar form .search-query {
  border: 1px solid var(--ly-border);
  background-color: #fff;
  box-shadow: var(--ly-shadow-sm);
  border-radius: var(--ly-radius);
  font-size: 15px;
  line-height: 1.3;
  color: var(--ly-text);
  padding: 0 16px 0 44px;
  height: 48px;
  margin-bottom: 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236F6F6F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  background-position: 14px center;
}

#sidebar form .search-query:focus {
  border-color: var(--ly-red);
  box-shadow: 0 0 0 3px rgba(252, 34, 73, 0.12);
}


#sidebar .nav-list {
  background-color: var(--ly-surface);
  margin-top: 24px;
  margin-bottom: 0;
  box-shadow: none;
  border-radius: var(--ly-radius-lg);
  padding: 24px 24px 28px;
  border: 1px solid var(--ly-border);
}

#sidebar h3 {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ly-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

#sidebar .nav-list a {
  font-size: 15px;
  line-height: 1.4;
  color: var(--ly-text);
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  display: block;
}

#sidebar .nav-list a:hover {
  color: var(--ly-ink);
  background-color: #fff;
  text-decoration: none;
}

#sidebar .nav-list .active a {
  color: var(--ly-ink);
  font-weight: 700;
  background-color: #fff;
  text-decoration: none;
  font-size: 15px;
}

[class^=icon-] {
  color: var(--ly-text-muted);
  font-size: 16px;
  line-height: 1.2;
}

.icon-arrow:before,
#sidebar .nav-list .active a .icon-arrow,
#sidebar .nav-list .active a:hover .icon-arrow,
#sidebar .nav-list .active a:focus .icon-arrow {
  color: var(--ly-ink) !important;
}



/* ---------- 8. Content wrapper / category list ---------- */

#main-content { background: none; }

.contentWrapper {
  background: #fff;
  border-radius: var(--ly-radius-lg);
  border: 1px solid var(--ly-border);
  box-shadow: var(--ly-shadow-sm);
  padding: 56px 64px 64px;
}

.contentWrapper p.descrip {
  font-size: 18px;
  color: var(--ly-text-muted);
  margin-top: 16px;
  line-height: 1.55;
}

.contentWrapper h1,
#categoryHead h1 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--ly-ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.articleList { margin-top: 8px; }

.articleList li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ly-text);
  padding: 14px 0;
  border-bottom: 1px solid var(--ly-border);
}

.articleList li:last-child { border-bottom: 0; }

.articleList a span {
  transition: color 0.2s ease;
  color: var(--ly-ink);
  font-weight: 500;
}

.articleList a:hover span {
  color: var(--ly-red);
  text-decoration: none;
}

.icon-article-doc:before { color: var(--ly-text-muted); }


/* ---------- 9. Article — typo & rythme ---------- */

#fullArticle {
  max-width: 100%;
  margin: auto;
  position: relative;
}

#fullArticle .title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--ly-ink);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

/* Tout le corps de l'article : largeur de lecture et couleur lisible */
#fullArticle,
#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle table {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ly-text);
}

#fullArticle p {
  max-width: var(--ly-prose-width);
  margin: 0 0 1.1em;
}

/* Hiérarchie h2 / h3 / h4 — chaque niveau visiblement différent */
#fullArticle h1,
#fullArticle h2,
#fullArticle h3,
#fullArticle h4,
#fullArticle h5 {
  color: var(--ly-ink);
  letter-spacing: -0.01em;
  scroll-margin-top: 24px;
}

#fullArticle h2 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  margin: 2.4em 0 0.8em;
  padding-top: 0.6em;
  border-top: 1px solid var(--ly-border);
}

#fullArticle h2:first-child,
#fullArticle .title + h2 {
  border-top: 0;
  padding-top: 0;
  margin-top: 1.6em;
}

#fullArticle h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  margin: 1.8em 0 0.5em;
}

#fullArticle h4 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  margin: 1.5em 0 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ly-text-muted);
}

#fullArticle strong { color: var(--ly-ink); font-weight: 700; }

#fullArticle hr {
  border: 0;
  border-top: 1px solid var(--ly-border);
  margin: 2.4em 0;
}


/* ---------- 9b. Article — liens ---------- */

.contentWrapper a,
#fullArticle a {
  color: var(--ly-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(252, 34, 73, 0.4);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.contentWrapper a:hover,
#fullArticle a:hover {
  color: var(--ly-red-700);
  text-decoration-color: var(--ly-red-700);
  text-decoration-thickness: 2px;
}

/* Article icon link (icon-article-doc, icon-arrow, etc.) — pas de couleur rouge */
.articleList a,
.related a,
#sidebar a {
  text-decoration: none;
  color: inherit;
}


/* ---------- 9c. Article — listes ---------- */

#fullArticle ul,
#fullArticle ol {
  max-width: var(--ly-prose-width);
  margin: 0 0 1.4em;
  padding-left: 1.6em;
}

#fullArticle ul li,
#fullArticle ol li {
  margin-bottom: 0.5em;
  padding-left: 0.3em;
}

#fullArticle ul li::marker { color: var(--ly-red); }
#fullArticle ol li::marker { color: var(--ly-text-muted); font-weight: 700; }

#fullArticle ul ul,
#fullArticle ol ol,
#fullArticle ul ol,
#fullArticle ol ul {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}


/* ---------- 9d. Article — blockquote & callouts ---------- */

#fullArticle blockquote {
  font-style: normal;
  border-left: 3px solid var(--ly-ink);
  padding: 18px 24px;
  margin: 1.6em 0;
  background: var(--ly-surface);
  border-radius: 0 var(--ly-radius) var(--ly-radius) 0;
  max-width: var(--ly-prose-width);
  color: var(--ly-text);
}

#fullArticle blockquote p:last-child { margin-bottom: 0; }

/* Callouts — utilisables dans les articles via <div class="callout-{type}"> */
#fullArticle .callout-yellow,
#fullArticle .callout-blue,
#fullArticle .callout-green,
#fullArticle .callout-red,
#fullArticle .callout {
  position: relative;
  padding: 18px 22px 18px 56px;
  margin: 1.6em 0;
  border-radius: var(--ly-radius);
  border: 1px solid;
  max-width: var(--ly-prose-width);
  font-size: 16px;
  line-height: 1.6;
}

#fullArticle .callout p,
#fullArticle .callout-yellow p,
#fullArticle .callout-blue p,
#fullArticle .callout-green p,
#fullArticle .callout-red p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

#fullArticle .callout-yellow,
#fullArticle .callout {
  background: var(--ly-warning-bg);
  border-color: var(--ly-warning);
  color: #7a4e15;
}

#fullArticle .callout-blue {
  background: var(--ly-info-bg);
  border-color: var(--ly-info);
  color: #135f87;
}

#fullArticle .callout-green {
  background: var(--ly-success-bg);
  border-color: var(--ly-success);
  color: #1b6a29;
}

#fullArticle .callout-red {
  background: var(--ly-danger-bg);
  border-color: var(--ly-danger);
  color: #a64242;
}

/* Icône à gauche du callout (caractère unicode, pas d'image) */
#fullArticle .callout-yellow::before,
#fullArticle .callout-blue::before,
#fullArticle .callout-green::before,
#fullArticle .callout-red::before,
#fullArticle .callout::before {
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

#fullArticle .callout-yellow::before,
#fullArticle .callout::before { content: "⚠"; color: var(--ly-warning); }
#fullArticle .callout-blue::before  { content: "ℹ"; color: var(--ly-info); }
#fullArticle .callout-green::before { content: "✓"; color: var(--ly-success); }
#fullArticle .callout-red::before   { content: "✕"; color: var(--ly-danger); }

/* Liens dans les callouts — gardent la couleur du contexte */
#fullArticle .callout-yellow a,
#fullArticle .callout a { color: #7a4e15; text-decoration-color: var(--ly-warning); }
#fullArticle .callout-blue a  { color: #135f87; text-decoration-color: var(--ly-info); }
#fullArticle .callout-green a { color: #1b6a29; text-decoration-color: var(--ly-success); }
#fullArticle .callout-red a   { color: #a64242; text-decoration-color: var(--ly-danger); }


/* ---------- 9e. Article — code ---------- */

#fullArticle code {
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--ly-surface-2);
  border: 1px solid var(--ly-border);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--ly-ink);
  line-height: 1.4;
}

#fullArticle pre {
  background-color: var(--ly-surface-2);
  border: 1px solid var(--ly-border);
  border-radius: var(--ly-radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 1.4em 0;
  max-width: var(--ly-prose-width);
}

#fullArticle pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ly-text);
}


/* ---------- 9f. Article — images, tables, kbd ---------- */

#fullArticle img {
  border: 1px solid var(--ly-border);
  border-radius: var(--ly-radius);
  padding: 0;
  max-width: 100%;
  height: auto;
  margin: 1.2em 0;
  box-shadow: var(--ly-shadow-sm);
}

#fullArticle table {
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 15px;
  width: 100%;
  max-width: var(--ly-prose-width);
}

#fullArticle table th,
#fullArticle table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ly-border);
  text-align: left;
  vertical-align: top;
}

#fullArticle table th {
  font-weight: 700;
  color: var(--ly-ink);
  background: var(--ly-surface);
  border-bottom: 2px solid var(--ly-border-strong);
}

#fullArticle table tr:hover td { background: var(--ly-surface); }

#fullArticle kbd {
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: #fff;
  border: 1px solid var(--ly-border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--ly-ink);
}


/* ---------- 9g. Article — bouton edit, print, footer ---------- */

#fullArticle .admin-edit {
  color: #fff;
  display: inline-block;
  margin-bottom: 22px;
  background-image: none;
  background-color: #1B1B1B;
  text-shadow: none;
  border: 0;
  border-radius: var(--ly-radius);
  padding: 12px 22px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

#fullArticle .admin-edit:hover { background-color: var(--ly-red); }

#fullArticle .printArticle {
  position: absolute;
  right: 0;
  top: -8px;
  transition: opacity 0.2s ease;
  opacity: 0.5;
}

#fullArticle .printArticle:hover { opacity: 1; }
.icon-print { transition: color 0.2s ease; }
#fullArticle .printArticle:hover .icon-print { color: var(--ly-ink); }

.articleFoot {
  margin-top: 2.4em;
  padding-top: 1.6em;
  border-top: 1px solid var(--ly-border);
}

.articleFoot p,
.articleFoot time {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-style: normal;
  color: var(--ly-text-muted);
  font-size: 14px;
}

.articleFoot time.lu { display: none; }

#sbContact {
  color: var(--ly-ink);
  border: 0;
  font-weight: 600;
  transition: color 0.2s ease;
}

#sbContact:hover { color: var(--ly-red); }

@media (min-width: 200px) and (max-width: 1220px) { #fullArticle .printArticle { right: 0; } }
@media (min-width: 200px) and (max-width: 1150px) { #fullArticle .printArticle { right: 15px !important; } }


/* ---------- 10. Articles connexes ---------- */

.related {
  background: var(--ly-surface);
  border-radius: var(--ly-radius-lg);
  border: 1px solid var(--ly-border);
  box-shadow: none;
  padding: 36px 40px;
  margin-top: 32px;
}

.related h3 {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ly-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.related ul { margin: 0; padding: 0; list-style: none; }

.related ul > li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ly-ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--ly-border);
}

.related ul > li:last-child { border-bottom: 0; }

.related ul > li a {
  color: var(--ly-ink);
  transition: color 0.2s ease;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  text-decoration: none;
}

.related ul > li a:hover,
.related a:hover { color: var(--ly-red); }

.related ul > li a:hover span { text-decoration: none; }


/* ---------- 11. Footer ---------- */

footer {
  padding: 32px 0;
  border-top: 1px solid var(--ly-border);
  margin-top: 80px;
}

footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ly-text-muted);
  text-align: center;
}

footer p a {
  color: var(--ly-text-muted);
  transition: color 0.2s ease;
  text-decoration: none;
}

footer p a:hover { color: var(--ly-ink); }

/* Masquer "Powered by Help Scout" */
#poweredBy,
.poweredBy,
footer #poweredBy,
footer .poweredBy,
footer [class*="poweredBy"],
footer [id*="poweredBy"] {
  display: none !important;
}


/* ---------- 12. Responsive — pages intérieures ---------- */

@media (max-width: 768px) {
  #main-content { margin: 32px 0 2em; }
  #searchBar { max-width: 100%; }
  #categoryHead .sort { display: none; }
  #sidebar form { position: relative; margin: 32px 0; }

  .contentWrapper { border-radius: var(--ly-radius); padding: 36px 24px 56px; }
  .related { border-radius: var(--ly-radius); padding: 32px 24px !important; }
  .related h3 { padding-left: 0 !important; }
  .related ul { margin-left: 0 !important; }

  #fullArticle .printArticle { right: -4px; top: -4px; }
  #fullArticle .title { font-size: 30px; line-height: 1.2; }
  #fullArticle h2 { font-size: 22px; line-height: 1.3; }
  #fullArticle h3 { font-size: 18px; }

  .contentWrapper.withRelated { min-height: 205px; padding-bottom: 56px; }
}


/* ---------- 13. Modal Contact ---------- */

#contactModal,
.abuse {
  border: 1px solid var(--ly-border);
  box-shadow: var(--ly-shadow-lg);
  border-radius: var(--ly-radius-lg);
  top: 6%;
}

.modal { width: 650px; }

.modal-body {
  padding: 0 50px 60px;
  min-height: 600px;
}

#contactModal h2,
.abuse h2 {
  padding: 40px 0 12px 50px;
  border-top-left-radius: var(--ly-radius-lg);
  border-top-right-radius: var(--ly-radius-lg);
  border-bottom: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ly-ink);
  letter-spacing: -0.01em;
}

#contactModal .control-label,
.form-horizontal .control-label {
  width: 100%;
  float: left;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ly-text);
  font-weight: 600;
  margin-bottom: 6px;
}

#contactModal .controls { margin-left: 0; }
#contactModal .form-actions { padding-left: 0; }

#contactModal #md-message {
  width: 100%;
  padding-top: 10px;
  height: 80px;
}

.form-actions:before,
.form-actions:after { display: none; }

input[type=text],
.form-horizontal textarea {
  border-radius: var(--ly-radius);
  border: 1px solid var(--ly-border-strong);
  box-shadow: none;
  background-color: #fff;
  height: 42px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ly-text);
  padding: 8px 12px;
  width: 95%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contactModal input[type=file] { height: 30px; padding: 18px 12px; }

.form-search input,
.form-inline input,
.form-horizontal input,
.form-search textarea,
.form-inline textarea,
.form-horizontal textarea,
.form-search select,
.form-inline select,
.form-horizontal select,
.form-search .uneditable-input,
.form-inline .uneditable-input,
.form-horizontal .uneditable-input {
  border-radius: var(--ly-radius);
  border: 1px solid var(--ly-border-strong);
  box-shadow: none;
  background-color: #fff;
  font-size: 15px;
  height: 42px;
  line-height: 1.4;
  color: var(--ly-text);
  padding: 8px 12px;
  width: 95%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea:focus,
input:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=tel]:focus,
.uneditable-input:focus {
  border-color: var(--ly-ink) !important;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08) !important;
}

#contactModal input[type=submit].btn {
  border-radius: var(--ly-radius);
  background-color: #1B1B1B;
  font-size: 16px;
  line-height: 1.2;
  border: 0;
  background-image: none;
  width: 100%;
  height: 50px;
  text-shadow: none;
  color: #fff;
  font-weight: 700;
  margin-top: 16px;
  transition: background-color 0.2s ease;
}

#contactModal input[type=submit].btn:hover { background-color: var(--ly-red); }

@media (max-width: 768px) {
  button.btn,
  input[type=submit].btn {
    border-radius: var(--ly-radius);
    background-color: #1B1B1B;
    font-size: 16px;
    line-height: 1.2;
    border: 0;
    background-image: none;
    width: 100%;
    height: 50px;
    text-shadow: none;
    color: #fff;
    font-weight: 700;
    margin-top: 16px;
    transition: background-color 0.2s ease;
  }

  button.btn:hover,
  input[type=submit].btn:hover { background-color: var(--ly-red); }

  label {
    padding: 0;
    border-bottom: 0;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--ly-text);
  }

  #contactForm #name,
  #contactForm #email,
  #contactForm #subject,
  #contactForm #message,
  #contactForm input[type=file] {
    border-radius: var(--ly-radius);
    border: 1px solid var(--ly-border-strong);
    box-shadow: none;
    background-color: #fff;
    font-size: 15px;
    height: 42px;
    line-height: 1.4;
    color: var(--ly-text);
    padding: 8px 12px;
    width: 95%;
  }

  .modal-body { min-height: 700px; }
}

.icon-close:before,
.featherlight-close-icon:before { display: none; }

.modal #closeBtn { top: 24px; right: 24px; }

#contactModal .icon-close {
  background-image: url('https://i.ibb.co/SKf8x0k/close-button-minimal-template.png');
  width: 16px;
  height: 16px;
  background-size: cover;
  display: inline-block;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  position: relative;
  right: 50%;
}

#contactModal .icon-close:hover { opacity: 1; }

#contactModal .parsley-errors-list {
  font-size: 14px;
  margin-top: 10px;
  color: #DC2626;
}

#contactModal .parsley-error:not([type=file]),
#contactForm .parsley-error:not([type=file]),
.abuse .parsley-error:not([type=file]) { border: 1px solid #DC2626; }


/* ---------- 14. Print ---------- */

@media print {
  .navbar,
  #docsSearch,
  #sidebar,
  footer,
  #fullArticle .admin-edit,
  #fullArticle .printArticle,
  #sbContact,
  .related,
  #contactModal { display: none !important; }

  body { background: #fff; color: #000; font-size: 12pt; line-height: 1.5; }

  .contentWrapper {
    background: #fff;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  #main-content,
  .container-fluid { max-width: 100%; }

  #fullArticle .title { font-size: 22pt; color: #000; margin-bottom: 16pt; }
  #fullArticle h2 { font-size: 16pt; color: #000; border-top: 1px solid #999; padding-top: 8pt; margin-top: 16pt; }
  #fullArticle h3 { font-size: 13pt; color: #000; }

  #fullArticle p,
  #fullArticle li { color: #000; font-size: 11pt; }

  #fullArticle a { color: #000; text-decoration: underline; }
  #fullArticle a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }

  #fullArticle img { max-width: 100% !important; page-break-inside: avoid; }
  #fullArticle h2,
  #fullArticle h3 { page-break-after: avoid; }
  #fullArticle p,
  #fullArticle li,
  #fullArticle blockquote,
  #fullArticle pre { page-break-inside: avoid; }
}
