/* =====================================================
   REPERA · Tarifs de l'accueil (04/11/2026) : configurateur Suivi par zones, ligne de réassurance du héros
   Système P1a, bleu instrument : deux teintes, fonds froids, zéro dégradé.
   ===================================================== */

.tc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 8px; }
.tc [hidden] { display: none !important; }

/* ---- Colonne des réglages ---- */
.tc__reglages { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 8px 24px 24px; min-width: 0; }
.tc__onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; margin: 10px 0 22px; background: var(--bg-alt); border-radius: 12px; }
.tc__onglets button { font: inherit; font-weight: 600; font-size: .95rem; padding: 11px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.tc__onglets button[aria-selected="true"] { background: #fff; color: var(--deep); box-shadow: var(--shadow-sm); }
.tc__onglets button:focus-visible, .tc-cas:focus-visible, .tc-pas:focus-visible, .tc-cadence button:focus-visible { outline: 3px solid rgba(31,79,216,.35); outline-offset: 2px; }
.tc__panneau { display: grid; gap: 22px; }

.tc-jauge { display: grid; gap: 10px; }
.tc-jauge__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tc-jauge__nom { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.tc-jauge__prix { font-size: .84rem; font-weight: 600; color: var(--primary); background: #E9EFFB; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tc-jauge__corps { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px auto; align-items: center; gap: 10px; }
.tc-jauge__corps input[type="range"] { width: 100%; accent-color: var(--primary); height: 28px; cursor: pointer; margin: 0; }
.tc-pas { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--ink); font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.tc-pas:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.tc-pas:disabled { opacity: .35; cursor: default; }
.tc-jauge__valeur { min-width: 128px; text-align: right; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-jauge__corps > .tc-pas:first-child { grid-column: 1; grid-row: 1; }
.tc-jauge__corps > input[type="range"] { grid-column: 2; grid-row: 1; }
.tc-jauge__corps > .tc-pas:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.tc-jauge__corps > .tc-jauge__valeur { grid-column: 4; grid-row: 1; }
.tc-jauge__reperes { grid-column: 2; grid-row: 2; position: relative; height: 14px; margin-top: -10px; font-size: .74rem; color: var(--ink-3); }
.tc-jauge__reperes span { position: absolute; left: calc(8px + (100% - 16px) * var(--p)); transform: translateX(-50%); }
.tc-aide { font-size: .88rem; color: var(--ink-2); margin: 0; line-height: 1.5; }
.tc-aide--intro { margin-bottom: -6px; }


.tc-cas-bloc { display: grid; gap: 10px; padding: 16px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: 12px; }
.tc-cas-bloc__titre { margin: 0; font-weight: 600; color: var(--ink); }
.tc-cas-bloc__titre small { display: block; font-weight: 400; font-size: .84rem; color: var(--ink-2); margin-top: 2px; }
.tc-cas-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.tc-cas { display: grid; gap: 3px; text-align: left; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.tc-cas b { font-weight: 600; font-size: .9rem; color: var(--ink); }
.tc-cas small { font-size: .8rem; color: var(--ink-2); }
.tc-cas:hover { border-color: #9DBAFB; }
.tc-cas[aria-pressed="true"] { border-color: var(--primary); background: #E9EFFB; }

.tc-devis { margin: -6px 0 0; font-size: .86rem; color: var(--ink-2); }
.tc-devis a { color: var(--primary); font-weight: 600; }

.tf-boite--plate { box-shadow: none; border: 0; padding: 0; }
#res-jauges { margin-top: 2px; }

/* ---- Colonne de l'offre ---- */
.tc__offre { position: sticky; top: 88px; display: grid; gap: 14px; background: #fff; border: 2px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; min-width: 0; }
.tc-cadence { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--bg-alt); border-radius: 11px; }
.tc-cadence button { font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.tc-cadence button[aria-pressed="true"] { background: #fff; color: var(--deep); box-shadow: var(--shadow-sm); }
.tc-badge { font-size: .7rem; font-weight: 700; color: #047857; background: #ECFDF5; border: 1px solid #A7F3D0; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.tc-offre__nom { margin: 4px 0 -8px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.tc-prix-zone { display: grid; gap: 8px; }
.tc-prix-zone .tc-prix__autre { margin: 0; }
.tc-prix { display: flex; align-items: flex-end; gap: 10px; margin: 0; }
.tc-prix__montant { font-family: var(--font-display); font-weight: 600; font-size: 3.4rem; line-height: 1; color: var(--deep); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tc-prix__unite { display: grid; font-size: .9rem; color: var(--ink-2); line-height: 1.25; padding-bottom: 5px; }
.tc-prix__unite span:first-child { font-weight: 700; color: var(--ink); }
.tc-prix__autre { margin: -6px 0 0; font-size: .88rem; color: var(--ink-2); }
.tc-prix__autre b { color: #047857; }
.tc-prix-zone .tc-prix__tva, .tc-prix__tva { margin: 4px 0 0; font-size: .78rem; color: var(--ink-3); }
.tc-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tc-chiffres div { display: grid; gap: 2px; padding: 10px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: 10px; text-align: center; }
.tc-chiffres b { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--deep); font-variant-numeric: tabular-nums; }
.tc-chiffres span { font-size: .74rem; color: var(--ink-2); line-height: 1.3; }
.tc-lignes { display: grid; border-top: 1px solid var(--border); font-size: .88rem; font-variant-numeric: tabular-nums; }
.tc-lignes div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); color: var(--ink-2); }
.tc-lignes div span:last-child { white-space: nowrap; color: var(--ink); font-weight: 600; }
.tc-lignes .tc-total { color: var(--ink); font-weight: 700; border-bottom: 0; }
.tc-lignes .tc-total span:last-child { color: var(--deep); }
.tc-inclus { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .88rem; color: var(--ink); }
.tc-inclus li { position: relative; padding-left: 24px; }
.tc-inclus li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #E9EFFB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4FD8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.tc-valider { font-size: 1.05rem; }
.tc-note { margin: -4px 0 0; font-size: .78rem; color: var(--ink-2); line-height: 1.45; }
.tc-gratuit { font-size: .86rem; font-weight: 600; color: var(--primary); text-align: center; }
.tc__offre.tc-flash { animation: tcFlash .9s ease; }
@keyframes tcFlash { 0% { box-shadow: 0 0 0 0 rgba(31,79,216,.45); } 100% { box-shadow: 0 0 0 18px rgba(31,79,216,0); } }

/* ---- Ce que comprend chaque Suivi ---- */
.tc-tout { margin-top: 44px; }
.tc-tout__titre { text-align: center; font-size: 1.35rem; margin: 0 0 18px; }
.tc-tout__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tc-tuile { display: grid; gap: 6px; align-content: start; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.tc-tuile b { font-weight: 600; color: var(--deep); }
.tc-tuile span { font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.tc-tout__plus { text-align: center; font-size: .88rem; color: var(--ink-2); margin: 16px 0 0; }

.tc-bas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.tc-bande { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); }
.tc-bande > div { display: grid; gap: 4px; }
.tc-bande b { color: var(--ink); }
.tc-bande span { font-size: .86rem; color: var(--ink-2); }
.tc-bande .btn { flex-shrink: 0; }

/* ---- Ligne de réassurance du héros : une icône par garantie, plus de points séparateurs ---- */
.hero__note--icones { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero__note--icones li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.hero__note--icones svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--primary); }

/* ---- Barre du prix sur mobile ---- */
.tc-barre { display: none; }

@media (max-width: 1000px) {
  .tc-tout__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-bas { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .tc { grid-template-columns: minmax(0, 1fr); }
  .tc__offre { position: static; }
  .tc-barre { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -12px rgba(11,18,32,.25); transform: translateY(110%); transition: transform .2s ease; }
  .tc-barre.est-visible { transform: none; }
  body.tc-barre-on .r-top { bottom: 84px; transition: bottom .2s ease; }
  .tc-barre b { font-family: var(--font-display); font-size: 1.35rem; color: var(--deep); }
  .tc-barre small { font-size: .8rem; color: var(--ink-2); }
}
@media (max-width: 560px) {
  .tc__reglages { padding: 6px 14px 18px; }
  .tc__offre { padding: 18px 16px; }
  .tc-jauge__corps { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .tc-jauge__corps > .tc-jauge__valeur { grid-column: 1 / -1; grid-row: 1; text-align: left; min-width: 0; }
  .tc-jauge__corps > .tc-pas:first-child, .tc-jauge__corps > input[type="range"], .tc-jauge__corps > .tc-pas:nth-of-type(2) { grid-row: 2; }
  .tc-jauge__reperes { grid-row: 3; }
  .tc-cas-liste { grid-template-columns: 1fr; }
  .tc-prix__montant { font-size: 2.8rem; }
  .tc-tout__grille { grid-template-columns: 1fr; }
  .tc-bande { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .tc__offre.tc-flash { animation: none; }
  .tc-barre { transition: none; }
}
