/* Hub2Dev — pages de contenu : pages légales, à propos, FAQ, plan du site (chargé après design.css) */

/* Bandeau */
.t-hero { position: relative; overflow: hidden; color: #fff; padding: 30px 0 120px;
  background: radial-gradient(ellipse 50% 90% at 90% 0%, rgba(14,165,198,.45), transparent 60%),
              radial-gradient(ellipse 40% 80% at 5% 100%, rgba(109,94,252,.35), transparent 60%),
              linear-gradient(135deg, #071a36 0%, #0a3d78 55%, #0b6fb3 100%); }
.t-hero-in { position: relative; z-index: 2; display: grid; justify-items: start; gap: 12px; max-width: 860px; }
.t-hero .crumbs { margin-bottom: 14px; }
.t-hero .crumbs a { color: #b4cbe4; }
.t-hero .crumbs b { color: #fff; font-weight: 600; }
.t-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c), #4b50a6); box-shadow: 0 14px 30px -12px rgba(2,12,30,.7); }
.t-hero .label { background: rgba(255,255,255,.12); color: #bfe3ff; }
.t-hero h1 { font-family: var(--display); font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.t-intro { color: #c9d9ec; font-size: 18px; max-width: 680px; }
.t-maj { display: inline-flex; align-items: center; gap: 8px; color: #9fb7d3; font-size: 14px; }

/* Mise en page : sommaire + texte */
.t-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: -76px; position: relative; z-index: 3; padding-bottom: 90px; }
.t-layout.sans-sommaire { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.t-toc { position: sticky; top: 92px; display: grid; gap: 2px; padding: 16px 12px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -32px rgba(10,31,63,.55); }
.t-toc b { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: 0 10px 8px; }
.t-toc a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 12px; font-size: 14px; color: var(--text-2); line-height: 1.4; transition: background .2s, color .2s; }
.t-toc a span { font: 700 12px var(--display); color: var(--text-3); min-width: 16px; }
.t-toc a:hover { background: var(--bg-2); color: var(--text); }
.t-toc a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.t-toc a.on span { color: var(--accent); }

.t-body { display: grid; gap: 18px; min-width: 0; }
.t-sec { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px 34px; box-shadow: 0 20px 40px -34px rgba(10,31,63,.5); scroll-margin-top: 96px; }
.t-sec h2 { display: flex; align-items: center; gap: 12px; font-size: 21px; margin-bottom: 14px; letter-spacing: -.02em; }
.t-num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; font: 800 14px var(--display); color: var(--accent); background: var(--accent-soft); }
.t-sec .rich { font-size: 15.5px; }
.t-sec .rich ul { padding-left: 20px; display: grid; gap: 6px; }
.t-sec .rich a { color: var(--accent); font-weight: 600; }
.t-sec .rich h3 { font-size: 16.5px; margin-top: 18px; }
.t-sec .rich strong { color: var(--text); }
.t-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 6px; }
.t-table th { text-align: left; font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.t-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.t-table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.t-encart { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #e8f8f1; color: #065f46; font-size: 14.5px; }
.t-encart svg { flex: none; margin-top: 2px; }
.a-completer { background: #fff1c2; color: #92400e; padding: 1px 7px; border-radius: 6px; font-weight: 600; font-size: .92em; }

/* Bloc « une question ? » en bas de page */
.t-contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 24px 28px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #0a3d78, #0b6fb3); }
.t-contact div { flex: 1; min-width: 220px; }
.t-contact h2 { font-size: 20px; margin-bottom: 2px; }
.t-contact p { color: #c9d9ec; font-size: 15px; }
.t-contact .btn { background: #fff; color: var(--accent); }

/* À propos : cartes */
.t-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 6px; }
.t-card { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.t-card .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); margin-bottom: 10px; }
.t-card b { display: block; font-family: var(--display); font-size: 16px; margin-bottom: 4px; color: var(--text); }
.t-card p { font-size: 14.5px; color: var(--text-2); margin: 0; }

/* FAQ */
.faq-search { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 18px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -30px rgba(10,31,63,.6); color: var(--text-3); }
.faq-search input { flex: 1; border: 0; outline: 0; background: none; padding: 12px 0; font: 400 16px var(--font); color: var(--text); }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 20px 40px -30px rgba(10,31,63,.5); }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; font: 700 16.5px var(--display); letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 14px; color: var(--accent); background: var(--accent-soft); }
.faq-item summary .plus { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg-3); color: var(--text-2); transition: background .2s, color .2s; }
.faq-item summary .plus svg { transform: rotate(45deg); transition: transform .25s; } /* croix tournée = « + » */
.faq-item[open] summary .plus { background: var(--accent); color: #fff; }
.faq-item[open] summary .plus svg { transform: rotate(0); }
.faq-item .rich { padding: 0 22px 20px 66px; font-size: 15.5px; }
.faq-item mark { background: #fff1c2; border-radius: 4px; }
.faq-vide { text-align: center; color: var(--text-3); padding: 20px; }

/* Plan du site */
.t-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.t-plan div { display: grid; gap: 4px; align-content: start; }
.t-plan h3 { font-size: 15px; margin: 0 0 6px; }
.t-plan a { font-size: 14.5px; }

@media (max-width: 960px) {
  .t-layout { grid-template-columns: minmax(0, 1fr); }
  .t-toc { position: static; grid-auto-flow: column; overflow-x: auto; grid-template-columns: none; padding: 8px; border-radius: 18px; }
  .t-toc b { display: none; }
  .t-toc a { white-space: nowrap; }
}
@media (max-width: 680px) {
  .t-sec { padding: 22px 20px; border-radius: 20px; }
  .faq-item .rich { padding: 0 18px 18px; }
  .t-table td:first-child { white-space: normal; }
}
.t-cards.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .t-cards.deux { grid-template-columns: minmax(0, 1fr); } }
