/* Powair6 - styles des articles de blog (conteneur .p6-article dans single.tpl)
   Charge uniquement sur les pages article, hors concatenation CCC. Padzup, 06/10/2026. */

.p6-article {
  --p6-orange: #ff7a1a;
  --p6-orange-dark: #c95300;
  --p6-black: #161b21;
  --p6-dark: #20262d;
  --p6-text: #2d343b;
  --p6-muted: #68727c;
  --p6-border: #e3e7ea;
  --p6-soft: #f6f7f8;
  --p6-soft-2: #f0f2f4;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  color: var(--p6-text);
  font-family: inherit !important;
  font-size: 16px;
  line-height: 1.72;
}

.p6-article *,
.p6-article *::before,
.p6-article *::after {
  box-sizing: border-box;
}

.p6-article :is(
  p,
  li,
  ul,
  ol,
  h2,
  h3,
  h4,
  h5,
  h6,
  table,
  thead,
  tbody,
  tr,
  th,
  td,
  blockquote,
  figcaption
) {
  font-family: inherit !important;
}

.p6-article p {
  margin: 0 0 17px !important;
  color: var(--p6-text);
  font-size: 16px !important;
  line-height: 1.72 !important;
}

.p6-article h2 {
  margin: 44px 0 14px !important;
  color: var(--p6-black) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  letter-spacing: -.025em !important;
  scroll-margin-top: 120px;
}

.p6-article > h2:first-child {
  margin-top: 0 !important;
}

.p6-article h3 {
  margin: 30px 0 10px !important;
  color: var(--p6-black) !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  letter-spacing: -.015em !important;
  scroll-margin-top: 120px;
}

.p6-article h4 {
  margin: 25px 0 9px !important;
  color: var(--p6-black) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.p6-article strong,
.p6-article b {
  color: #171b20;
  font-weight: 700;
}

.p6-article a {
  color: var(--p6-orange-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .18s ease;
}

.p6-article a:hover {
  color: var(--p6-orange);
}

.p6-article a:focus-visible {
  outline: 3px solid rgba(255,122,26,.25);
  outline-offset: 3px;
  border-radius: 3px;
}

.p6-article a:has(img) {
  text-decoration: none;
}

.p6-article ul,
.p6-article ol {
  margin: 14px 0 24px !important;
  padding-left: 25px !important;
}

.p6-article li {
  margin: 0 0 9px !important;
  padding-left: 3px;
  color: var(--p6-text);
  font-size: 16px !important;
  line-height: 1.65 !important;
}

.p6-article li::marker {
  color: var(--p6-orange);
  font-weight: 800;
}

.p6-article li > ul,
.p6-article li > ol {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.p6-article table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 22px 0 28px !important;
  border: 1px solid var(--p6-border) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: auto !important;
  background: #fff !important;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 7px 22px rgba(15,18,22,.07);
  font-size: 15px !important;
  line-height: 1.42 !important;
}

.p6-article table thead th {
  padding: 14px 15px !important;
  border: 0 !important;
  border-right: 1px solid rgba(255,255,255,.09) !important;
  background: #161b21 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: .025em;
  text-align: left !important;
  vertical-align: middle;
}

.p6-article table thead th:last-child {
  border-right: 0 !important;
}

.p6-article table tbody td {
  padding: 12px 15px !important;
  border: 0 !important;
  border-bottom: 1px solid #eceff1 !important;
  background: transparent !important;
  color: #38414a !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.p6-article table tbody tr:nth-child(even) {
  background: #f6f7f8 !important;
}

.p6-article table tbody tr:nth-child(odd) {
  background: #fff !important;
}

.p6-article table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.p6-article table tbody td:first-child {
  color: #161b21 !important;
  font-weight: 700;
}

.p6-article table tr.p6-highlight,
.p6-article table tr.p6-highlight td {
  background: #fff3e9 !important;
}

.p6-article table tr.p6-highlight td {
  font-weight: 700;
}

/* Images centrees. Pas de !important sur max-width : les tailles reglees dans l'article
   (style="max-width: 50%") restent respectees. */
.p6-article img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto !important;
  margin: 28px auto;
  border-radius: 14px;
}

.p6-article figure {
  width: 100% !important;
  max-width: 100% !important;
  margin: 30px 0 !important;
}

.p6-article figure img {
  margin: 0 auto;
}

.p6-article figcaption {
  margin-top: 9px;
  color: var(--p6-muted);
  font-size: 13px !important;
  line-height: 1.45 !important;
  text-align: center;
}

.p6-article iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 30px auto !important;
  border: 0;
  border-radius: 14px;
}

.p6-article iframe[src*="youtube"],
.p6-article iframe[src*="youtu.be"] {
  aspect-ratio: 16 / 9;
  height: auto !important;
  background: #111;
  box-shadow: 0 8px 24px rgba(15,18,22,.12);
}

.p6-article video {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 30px auto;
  border-radius: 14px;
}

.p6-article blockquote {
  margin: 26px 0 !important;
  padding: 20px 23px !important;
  border: 1px solid var(--p6-border) !important;
  border-left: 4px solid var(--p6-orange) !important;
  border-radius: 11px;
  background: var(--p6-soft) !important;
  color: #3e474f !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

.p6-article blockquote p:last-child {
  margin-bottom: 0 !important;
}

.p6-article hr {
  height: 1px;
  margin: 38px 0;
  border: 0;
  background: var(--p6-border);
}

.p6-article code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #f0f2f4;
  color: #b44b00;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace !important;
  font-size: .9em;
}

.p6-article pre {
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: 12px;
  background: #161b21;
  color: #e8edf2;
  font-size: 14px;
  line-height: 1.55;
}

.p6-article pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.p6-article .p6-formula,
.p6-article .p6-info,
.p6-article .p6-tip {
  margin: 22px 0;
  padding: 20px 22px;
  border: 1px solid var(--p6-border);
  border-left: 4px solid var(--p6-orange);
  border-radius: 12px;
  background: var(--p6-soft);
}

.p6-article .p6-formula {
  display: flex;
  align-items: center;
  gap: 20px;
}

.p6-article .p6-formula-main {
  flex: 0 0 auto;
  color: var(--p6-black);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.p6-article .p6-formula-desc {
  color: #59636d;
  font-size: 14px;
  line-height: 1.55;
}

.p6-article .p6-law,
.p6-article .p6-expert,
.p6-article .p6-dark-box {
  margin: 24px 0;
  padding: 22px 24px;
  color: #e8edf2;
  background: #171c22;
  border-radius: 13px;
  box-shadow: 0 7px 20px rgba(15,18,22,.09);
}

.p6-article :is(.p6-law,.p6-expert,.p6-dark-box) p {
  color: #e8edf2 !important;
}

.p6-article :is(.p6-law,.p6-expert,.p6-dark-box) strong {
  color: #fff;
}

.p6-article .p6-law-label,
.p6-article .p6-box-label {
  display: block;
  margin-bottom: 9px;
  color: #ff8a32;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.p6-article .p6-warning,
.p6-article .p6-disclaimer {
  margin: 23px 0;
  padding: 18px 20px;
  border: 1px solid #ffd9bb;
  border-left: 4px solid var(--p6-orange);
  border-radius: 11px;
  background: #fff8f2;
  color: #505a64;
  font-size: 14px;
  line-height: 1.65;
}

.p6-article .p6-checklist {
  margin: 20px 0 28px !important;
  padding: 0 !important;
  list-style: none;
}

.p6-article .p6-checklist li {
  position: relative;
  margin: 0 !important;
  padding: 13px 15px 13px 42px !important;
  border-bottom: 1px solid #e7eaed;
}

.p6-article .p6-checklist li:first-child {
  border-top: 1px solid #e7eaed;
}

.p6-article .p6-checklist li::before {
  content: "\2713";
  position: absolute;
  top: 13px;
  left: 14px;
  color: var(--p6-orange);
  font-weight: 800;
}

.p6-article .p6-faq {
  margin-top: 18px;
  border-top: 1px solid var(--p6-border);
}

.p6-article .p6-faq-item {
  padding: 21px 0 5px;
  border-bottom: 1px solid var(--p6-border);
}

.p6-article .p6-faq-item h3 {
  margin-top: 0 !important;
}

.p6-article details {
  margin: 0;
  border-bottom: 1px solid var(--p6-border);
}

.p6-article details:first-of-type {
  border-top: 1px solid var(--p6-border);
}

.p6-article summary {
  position: relative;
  padding: 18px 32px 18px 0;
  cursor: pointer;
  color: var(--p6-black);
  font-weight: 700;
  list-style: none;
}

.p6-article summary::-webkit-details-marker {
  display: none;
}

.p6-article summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 3px;
  transform: translateY(-50%);
  color: var(--p6-orange);
  font-size: 24px;
  font-weight: 500;
}

.p6-article details[open] summary::after {
  content: "\2212";
}

.p6-article .p6-note {
  margin-top: -12px !important;
  color: #727b84 !important;
  font-size: 13px !important;
  font-style: italic;
  line-height: 1.5 !important;
}

.p6-article .p6-converter {
  max-width: 640px;
  margin: 0 auto 42px;
  padding: 24px;
  color: #e7edf3;
  background: linear-gradient(180deg,#1b2129 0%,#212932 100%);
  border: 1px solid #2b333d;
  border-radius: 16px;
  box-shadow: 0 14px 42px rgba(15,18,22,.28);
}

.p6-article .p6-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 6px;
  background: #11161c;
  border: 1px solid #2b333d;
  border-radius: 12px;
}

.p6-article .p6-tab {
  flex: 1;
  padding: 12px 8px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  transition: .2s ease;
}

.p6-article .p6-tab-active {
  color: #1a1005;
  background: var(--p6-orange);
}

.p6-article .p6-tab-inactive {
  color: #9aa7b4;
  background: transparent;
}

.p6-article .p6-field {
  margin-bottom: 18px;
}

.p6-article .p6-label,
.p6-article .p6-field-label {
  display: block;
  margin-bottom: 8px;
  color: #9aa7b4;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.p6-article .p6-input,
.p6-article .p6-select {
  width: 100%;
  padding: 14px 16px;
  color: #fff;
  background: #0f141a;
  border: 1px solid #2b333d;
  border-radius: 12px;
  outline: none;
  font-family: inherit;
}

.p6-article .p6-input {
  font-size: 24px;
  font-weight: 700;
}

.p6-article .p6-select {
  padding: 13px 14px;
  font-size: 16px;
  font-weight: 600;
}

.p6-article .p6-input:focus,
.p6-article .p6-select:focus {
  border-color: var(--p6-orange);
  box-shadow: 0 0 0 3px rgba(255,122,26,.10);
}

.p6-article .p6-result {
  padding: 22px 20px;
  text-align: center;
  background: #0f141a;
  border: 1px solid #2b333d;
  border-radius: 14px;
}

.p6-article .p6-result-label {
  color: #9aa7b4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.p6-article .p6-result-main {
  margin: 7px 0 5px;
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.p6-article .p6-result-unit {
  color: #9aa7b4;
  font-size: 20px;
  font-weight: 600;
}

.p6-article .p6-result-sub {
  color: #9aa7b4;
  font-size: 14px;
}

.p6-article .p6-converter-note {
  margin: 14px 0 0 !important;
  color: #9aa7b4 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  text-align: center;
}

/* Texte justifie au-dela du mobile, avec cesure pour eviter les trous entre les mots.
   Sur mobile (700 px et moins) le texte reste aligne a gauche. */
@media (min-width: 701px) {
  .p6-article p,
  .p6-article li {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

@media (max-width: 700px) {
  .p6-article {
    max-width: 100%;
    font-size: 15px;
  }

  .p6-article p,
  .p6-article li {
    font-size: 15px !important;
  }

  .p6-article h2 {
    margin-top: 35px !important;
    font-size: 24px !important;
  }

  .p6-article h3 {
    margin-top: 26px !important;
    font-size: 19px !important;
  }

  .p6-article h4 {
    font-size: 17px !important;
  }

  .p6-article table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 12px !important;
  }

  .p6-article table thead,
  .p6-article table tbody {
    width: 100%;
  }

  .p6-article table thead th {
    padding: 10px 7px !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  .p6-article table tbody td {
    padding: 10px 7px !important;
    font-size: 12px !important;
  }

  .p6-article img,
  .p6-article figure,
  .p6-article iframe {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }

  .p6-article .p6-formula {
    display: block;
    padding: 17px;
  }

  .p6-article .p6-formula-main {
    margin-bottom: 8px;
    font-size: 21px;
    white-space: normal;
  }

  .p6-article .p6-law,
  .p6-article .p6-expert,
  .p6-article .p6-dark-box {
    padding: 18px;
  }

  .p6-article .p6-converter {
    margin-bottom: 34px;
    padding: 18px;
    border-radius: 14px;
  }

  .p6-article .p6-result-main {
    font-size: 38px;
  }
}

@media (max-width: 420px) {
  .p6-article h2 {
    font-size: 22px !important;
  }

  .p6-article table thead th {
    padding: 9px 5px !important;
    font-size: 9px !important;
  }

  .p6-article table tbody td {
    padding: 9px 5px !important;
    font-size: 11px !important;
  }

  .p6-article .p6-tabs {
    gap: 4px;
    padding: 5px;
  }

  .p6-article .p6-tab {
    padding: 11px 5px;
    font-size: 13px;
  }
}

/* Image mise en avant de l'article : affichee par single.tpl hors du conteneur .p6-article */
.simpleblog__post > img.img-fluid {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
