/* Artosera ou Artlogic — comparatif sourcé (ARTO-216, 14 nov. 2026). */

.cx-hero { padding-bottom: clamp(48px, 6vw, 88px); }
.cx-hero .hero-head { margin-bottom: clamp(40px, 5vw, 72px); }

/* Les trois offres */
.cx-offres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.cx-offre {
  display: grid; align-content: start; gap: 10px;
  padding: clamp(22px, 2.6vw, 32px); border-radius: 22px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.cx-offre.cx-nous { box-shadow: inset 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.cx-nom { font: 500 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cx-montant { font-size: 16px; color: var(--muted); }
.cx-montant b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.cx-detail { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.cx-offre ul { display: grid; margin-top: 6px; border-top: 1px solid var(--line); }
.cx-offre li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.cx-an { margin-top: clamp(20px, 2.4vw, 28px); max-width: 52em; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

.cx-ref { line-height: 0; font-size: .72em; margin-left: 1px; }
.cx-ref a { color: var(--accent); text-decoration: none; padding: 0 2px; }
.cx-ref a:hover, .cx-ref a:focus-visible { text-decoration: underline; }

/* Le tableau, ligne à ligne */
.cx-tableau { background: var(--surface); border-block: 1px solid var(--line); }
.cx-table-wrap { border-top: 2px solid var(--text); }
.cx-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.cx-table th, .cx-table td { padding: 16px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cx-table thead th { font: 500 12.5px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cx-table thead th:nth-child(2) { color: var(--accent); }
.cx-table tbody th { width: 22%; font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.25; }
.cx-table td { color: var(--muted); width: 26%; }
.cx-table td.cx-nous { color: var(--text); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.cx-pied { margin-top: 18px; color: var(--muted); font-size: 14.5px; }

/* Aussi dans Artosera */
.cx-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.cx-carte {
  display: grid; align-content: start; gap: 10px; padding: clamp(20px, 2.4vw, 28px);
  border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.cx-fam {
  justify-self: start; padding: 3px 10px; border-radius: 20px;
  font: 500 12px/1.5 var(--sans); letter-spacing: .06em;
}
.cx-fam.compris { background: var(--accent); color: var(--bg); }
.cx-fam.addon { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.cx-carte h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; text-wrap: balance; }
.cx-carte p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.cx-carte .cx-eux { margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }

/* En toute franchise */
.cx-franchise { background: var(--wash); }
.cx-franchise-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.cx-franchise h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.06; text-wrap: balance; margin-top: 12px; }
.cx-franchise-txt { display: grid; gap: 18px; justify-items: start; }
.cx-franchise-txt p { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 34em; }

/* Sources */
.cx-sources { padding-block: clamp(56px, 7vw, 96px); }
.cx-sources .wrap { display: grid; gap: 16px; max-width: 980px; }
.cx-sources h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); }
.cx-sources p, .cx-sources li { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.cx-sources ol { display: grid; gap: 8px; counter-reset: src; }
.cx-sources li { counter-increment: src; display: grid; grid-template-columns: 2em minmax(0, 1fr); column-gap: 6px; scroll-margin-top: 96px; }
.cx-sources li::before { content: counter(src); grid-row: 1 / span 2; color: var(--accent); font-weight: 500; }
.cx-sources li a { color: var(--text); overflow-wrap: anywhere; }
.cx-sources li:target { background: var(--wash); border-radius: 8px; }
.cx-avert { padding-top: 12px; border-top: 1px solid var(--line); }
.cx-avert a { color: var(--text); }

@media (max-width: 1020px) {
  .cx-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cx-offres { grid-template-columns: minmax(0, 1fr); }
  .cx-franchise-grid { grid-template-columns: minmax(0, 1fr); }
  /* Le tableau devient une suite de fiches : une ligne, trois réponses. */
  .cx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cx-table, .cx-table tbody, .cx-table tr, .cx-table th, .cx-table td { display: block; width: auto; }
  .cx-table tr { padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
  .cx-table tbody th { width: auto; padding: 0 0 8px; border: 0; font-size: 21px; }
  .cx-table td { width: auto; display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 12px; padding: 8px 10px; border: 0; border-radius: 10px; }
  .cx-table td::before { content: attr(data-col); font: 500 12px/1.5 var(--sans); letter-spacing: .04em; color: var(--muted); }
  .cx-table td.cx-nous::before { color: var(--accent); }
}
@media (max-width: 640px) {
  .cx-cartes { grid-template-columns: minmax(0, 1fr); }
  .cx-table td { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
