/* =====================================================================
   Système de design corporatif de xtranumerik.ca (refonte 2026-10-07)
   ---------------------------------------------------------------------
   Pour les NOUVELLES pages (Forfaits et tarifs, puis Annoncer, etc.).
   Tout est préfixé « xu- » et cantonné sous body.xu : aucune incidence sur
   les anciennes pages ni conflit avec brand-creme.css.
   Polices : /assets/css/xtr-fonts.css (Montserrat titres, Inter texte).
   Couleurs : crème, aubergine, mauve (exploration, liens), rouge réservé
   à l'achat. Contrastes vérifiés AA (texte blanc sur #E11D48 = 4,7:1 → gras ≥ 16 px).
   ===================================================================== */
body.xu {
  --xu-cream: #FAF7F2; --xu-surface: #FFFCF8; --xu-line: #E7DECF; --xu-line-strong: #D9CDB9;
  --xu-ink: #2E1A47; --xu-muted: #5b4d6e; --xu-mauve: #6D28D9; --xu-mauve-bright: #7C3AED;
  --xu-mauve-soft: #F4EEFA; --xu-red: #E11D48; --xu-red-dark: #BE123C; --xu-green: #166534; --xu-green-soft: #ECF7EF;
  --xu-radius: 12px; --xu-radius-lg: 16px;
  --xu-shadow: 0 1px 2px rgba(46, 26, 71, .06), 0 4px 12px rgba(46, 26, 71, .06);
  --xu-shadow-lg: 0 2px 4px rgba(46, 26, 71, .06), 0 16px 40px rgba(46, 26, 71, .12);
  margin: 0; background: var(--xu-cream); color: var(--xu-ink);
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body.xu *, body.xu *::before, body.xu *::after { box-sizing: border-box; }
body.xu h1, body.xu h2, body.xu h3 { font-family: 'Montserrat', 'Inter', sans-serif; color: var(--xu-ink); line-height: 1.2; margin: 0; }
body.xu p { margin: 0; }
body.xu a { color: var(--xu-mauve); }
body.xu .xu-num { font-variant-numeric: tabular-nums; }

/* ---- Mise en page ---- */
.xu-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.xu-band { padding: 72px 0; }
.xu-band--white { background: var(--xu-surface); border-top: 1px solid var(--xu-line); border-bottom: 1px solid var(--xu-line); }
.xu-band--tight { padding: 24px 0 64px; }
.xu-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--xu-mauve); margin-bottom: 12px; }
body.xu .xu-h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.01em; }
body.xu .xu-h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; }
body.xu .xu-h3 { font-size: 20px; font-weight: 700; }
.xu-lead { font-size: 18px; color: var(--xu-muted); max-width: 720px; margin-top: 16px; }
.xu-center { text-align: center; }
.xu-center .xu-lead { margin-left: auto; margin-right: auto; }
.xu-small { font-size: 14px; color: var(--xu-muted); }

/* ---- En-tête de page ---- */
.xu-hero { padding: 64px 0 8px; }
.xu-hero .xu-lead { font-size: 19px; }

/* ---- Boutons ---- */
body.xu a.xu-btn, body.xu button.xu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.1; text-decoration: none;
  text-align: center; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
body.xu a.xu-btn:active, body.xu button.xu-btn:active { transform: scale(.98); }
body.xu .xu-btn.xu-btn--primary { background: var(--xu-red); color: #fff; border-color: var(--xu-red); }
body.xu .xu-btn.xu-btn--primary:hover { background: var(--xu-red-dark); border-color: var(--xu-red-dark); color: #fff; }
body.xu .xu-btn.xu-btn--ghost { background: transparent; color: var(--xu-ink); border-color: var(--xu-ink); }
body.xu .xu-btn.xu-btn--ghost:hover { background: #fff; color: var(--xu-ink); }
body.xu .xu-btn--block { width: 100%; }

/* ---- Sélecteur segmenté (durée) ---- */
.xu-seg { display: inline-flex; padding: 4px; gap: 4px; background: #fff; border: 1px solid var(--xu-line); border-radius: 12px; }
body.xu .xu-seg button {
  min-height: 42px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--xu-muted);
}
body.xu .xu-seg button[aria-checked="true"] { background: var(--xu-ink); color: #fff; }
body.xu .xu-seg button:hover:not([aria-checked="true"]) { background: var(--xu-mauve-soft); color: var(--xu-ink); }
.xu-seg-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 32px; }

/* ---- Cartes forfaits ---- */
.xu-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.xu-plan {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 24px;
  background: var(--xu-surface); border: 1px solid var(--xu-line); border-radius: var(--xu-radius-lg); box-shadow: var(--xu-shadow);
}
.xu-plan--network { border-color: var(--xu-mauve-bright); box-shadow: 0 0 0 1px var(--xu-mauve-bright), var(--xu-shadow-lg); }
.xu-plan__tag { position: absolute; top: -12px; left: 24px; padding: 3px 10px; border-radius: 999px; background: var(--xu-mauve-bright); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
body.xu .xu-plan__name { font-size: 22px; font-weight: 800; }
.xu-plan__places { font-weight: 600; color: var(--xu-muted); }
.xu-plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.xu-plan__amount { font-family: 'Montserrat', 'Inter', sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.xu-plan__unit { color: var(--xu-muted); font-weight: 600; }
.xu-plan__total { font-size: 14px; color: var(--xu-muted); min-height: 22px; }
.xu-plan__per { font-size: 14px; color: var(--xu-green); font-weight: 600; }
.xu-plan__cta { margin-top: 18px; }
.xu-list { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--xu-line); display: grid; gap: 10px; }
.xu-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.xu-list li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--xu-mauve-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236D28D9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.xu-plans [data-months] { display: none; }
.xu-plans[data-show="1"] [data-months="1"], .xu-plans[data-show="6"] [data-months="6"], .xu-plans[data-show="12"] [data-months="12"] { display: inline; }
.xu-plans[data-show="1"] div[data-months="1"], .xu-plans[data-show="6"] div[data-months="6"], .xu-plans[data-show="12"] div[data-months="12"] { display: block; }

/* ---- Tableau comparatif ---- */
.xu-table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--xu-line); border-radius: var(--xu-radius); background: var(--xu-surface); }
.xu-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.xu-table th, .xu-table td { padding: 14px 18px; text-align: right; border-bottom: 1px solid var(--xu-line); font-variant-numeric: tabular-nums; }
.xu-table th:first-child, .xu-table td:first-child { text-align: left; }
.xu-table thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--xu-muted); background: #fff; }
.xu-table tbody tr:last-child td, .xu-table tbody tr:last-child th { border-bottom: 0; }
.xu-table tbody th { font-weight: 700; }
.xu-table .xu-sub { display: block; font-size: 13px; font-weight: 500; color: var(--xu-muted); }

/* ---- Blocs d'information ---- */
.xu-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.xu-card { padding: 24px; background: var(--xu-surface); border: 1px solid var(--xu-line); border-radius: var(--xu-radius); }
body.xu .xu-card h3 { font-size: 18px; margin-bottom: 8px; }
.xu-card p { color: var(--xu-muted); font-size: 15px; }
.xu-callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-top: 40px; padding: 24px 28px; background: var(--xu-mauve-soft); border-radius: var(--xu-radius);
}
body.xu .xu-callout h3 { font-size: 20px; }
.xu-callout p { color: var(--xu-muted); margin-top: 4px; }

/* ---- Questions fréquentes ---- */
.xu-faq { max-width: 860px; margin: 32px auto 0; display: grid; gap: 12px; }
.xu-faq details { background: var(--xu-surface); border: 1px solid var(--xu-line); border-radius: var(--xu-radius); }
.xu-faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; position: relative;
  font-weight: 700; font-size: 16.5px; color: var(--xu-ink);
}
.xu-faq summary::-webkit-details-marker { display: none; }
.xu-faq summary::after { content: "+"; content: "+" / ""; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--xu-mauve); }
.xu-faq details[open] summary::after { content: "−"; content: "−" / ""; }
.xu-faq .xu-faq__a { padding: 0 22px 20px; color: var(--xu-muted); }
.xu-faq .xu-faq__a p + p { margin-top: 10px; }

/* ---- Fenêtre de sélection des emplacements (carte intégrée) ---- */
.xu-modal { position: fixed; inset: 0; z-index: 20000; display: none; }
.xu-modal.is-open { display: block; }
.xu-modal__backdrop { position: absolute; inset: 0; background: rgba(46, 26, 71, .55); }
.xu-modal__dialog {
  position: absolute; inset: 24px; max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column;
  background: var(--xu-surface); border-radius: var(--xu-radius-lg); box-shadow: var(--xu-shadow-lg); overflow: hidden;
}
.xu-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--xu-line); }
.xu-modal__title { font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 700; font-size: 17px; }
body.xu .xu-modal__close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; font-size: 26px; line-height: 1; color: var(--xu-ink); cursor: pointer; }
body.xu .xu-modal__close:hover { background: var(--xu-mauve-soft); }
.xu-modal__frame { flex: 1 1 auto; width: 100%; border: 0; background: #fff; }
html.xu-modal-open { overflow: hidden; }

/* ---- Pied de page légal de la page ---- */
.xu-note { margin-top: 24px; font-size: 14px; color: var(--xu-muted); text-align: center; }

/* ---- Points de rupture ---- */
@media (max-width: 1080px) {
  .xu-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .xu-band { padding: 56px 0; }
  .xu-band--tight { padding: 16px 0 48px; }
  .xu-hero { padding: 40px 0 4px; }
  .xu-lead, .xu-hero .xu-lead { font-size: 17px; }
  /* Tableau comparatif empilé : une carte par forfait, prix étiquetés */
  .xu-table { min-width: 0; }
  .xu-table thead { display: none; }
  .xu-table tr { display: block; padding: 14px 18px; border-bottom: 1px solid var(--xu-line); }
  .xu-table tbody tr:last-child { border-bottom: 0; }
  .xu-table th, .xu-table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: left; }
  .xu-table tbody th { font-size: 17px; padding-bottom: 6px; }
  .xu-table td::before { content: attr(data-label); color: var(--xu-muted); font-weight: 500; }
  .xu-table--specs td { display: block; }
  .xu-table--specs td::before { content: none; }
  .xu-plans, .xu-grid-3 { grid-template-columns: 1fr; }
  .xu-modal__dialog { inset: 0; border-radius: 0; }
  .xu-callout { padding: 22px; }
}
body.xu a:focus-visible, body.xu button:focus-visible, body.xu summary:focus-visible { outline: 2px solid var(--xu-mauve); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { body.xu * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- Accessibilité : lien d'évitement, liste « inclus » ---- */
body.xu a.xu-skip { position: absolute; left: -9999px; top: 8px; z-index: 6000; padding: 10px 14px; background: #fff; border-radius: 8px; color: var(--xu-ink); font-weight: 700; }
body.xu a.xu-skip:focus { left: 12px; }
.xu-list--inline { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; border-top: 0; padding-top: 0; margin-top: 18px; }
.xu-table-note { margin-top: 12px; }
.xu-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Page Annoncer : étapes, fiche technique, règles, bandeau final ---- */
.xu-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: xu-step; }
.xu-steps li {
  counter-increment: xu-step; position: relative; padding: 22px 24px 22px 76px;
  background: var(--xu-surface); border: 1px solid var(--xu-line); border-radius: var(--xu-radius);
}
.xu-steps li::before {
  content: counter(xu-step); position: absolute; left: 22px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--xu-ink); color: #fff;
  font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 800; font-size: 16px;
}
body.xu .xu-steps h3 { font-size: 18px; margin-bottom: 4px; }
.xu-steps p { color: var(--xu-muted); font-size: 15.5px; }
.xu-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 32px; align-items: start; }
.xu-table--specs th, .xu-table--specs td { text-align: left; font-variant-numeric: normal; }
.xu-table--specs tbody th { width: 34%; color: var(--xu-ink); }
.xu-table--specs { min-width: 0; }
.xu-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.xu-rules li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.xu-rules li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: #FDECEF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BE123C' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.xu-cta-band { background: linear-gradient(135deg, #2E1A47 0%, #3a2358 100%); color: #fff; }
body.xu .xu-cta-band h2 { color: #fff; }
.xu-cta-band p { color: rgba(255, 255, 255, .82); margin-top: 10px; }
.xu-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
body.xu .xu-cta-band .xu-btn.xu-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .85); }
body.xu .xu-cta-band .xu-btn.xu-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.xu-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.xu-more { margin-top: 20px; }
body.xu .xu-more a { font-weight: 700; text-decoration: none; }
body.xu .xu-more a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .xu-two { grid-template-columns: 1fr; }
  .xu-steps li { padding: 20px 20px 20px 68px; }
  .xu-steps li::before { left: 18px; }
}
/* Anneau de focus lisible sur le bandeau aubergine (brand-creme impose un mauve à 2,5:1) */
body.xu .xu-cta-band a:focus-visible { outline-color: #fff !important; }
