/* Page produit Trokido (/realisations/trokido, /ar/..., /en/...). Chargee seulement sur cette page, apres site.css.
   Reprend les tokens de site.css ; proprietes logiques (RTL sans surcharge). */

/* ------------------------------------------------ hero */
.trk-hero .page-hero-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
@media (min-width: 960px) { .trk-hero .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.trk-hero h1 { max-width: 20ch; }
.trk-hero .actions .btn-ghost { background: var(--surface); }
.trk-hero-note { margin: 14px 0 0; font-size: 0.92rem; color: var(--muted); }
.trk-hero-visual { margin: 0; }
.trk-hero-screens { position: relative; padding-block-end: 28px; padding-inline-end: clamp(34px, 9%, 70px); }
.trk-shot-desk { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--surface); }
.trk-shot-mob {
  position: absolute; inset-inline-end: 0; inset-block-end: 0; width: clamp(96px, 28%, 172px); height: auto; aspect-ratio: 390 / 844;
  object-fit: cover; object-position: top; border-radius: 22px; border: 5px solid var(--ink-950); background: var(--ink-950);
  box-shadow: 0 22px 46px -14px rgb(16 18 28 / 0.55);
}
.trk-hero-visual figcaption { margin-top: 12px; font-size: 0.86rem; color: var(--muted); max-width: 60ch; }

/* ------------------------------------------------ en bref + chiffres cles (faits verifiables, pas de statistiques) */
.trk-wrap { padding-block: clamp(32px, 5vw, 56px) 0; }
.trk-facts { list-style: none; margin: 0 0 clamp(36px, 5vw, 56px); padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .trk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .trk-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trk-facts li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.trk-facts i { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent2-soft); color: var(--accent2-text); font-size: 1.3rem; }
.trk-facts p { margin: 0; display: grid; gap: 2px; }
.trk-facts strong { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; }
.trk-facts span { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.trk-intro { display: grid; gap: 0 56px; }
@media (min-width: 1000px) { .trk-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trk-intro .block { margin-bottom: 40px; } }
.trk-intro .prose { max-width: 66ch; }

/* ------------------------------------------------ parcours */
.trk-steps-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .trk-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .trk-steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trk-step-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.trk-step-card h3 { margin: 4px 0 0; }
.trk-steps { margin: 0; padding: 0; list-style: none; counter-reset: trk; display: grid; gap: 10px; }
.trk-steps li { counter-increment: trk; position: relative; padding-inline-start: 34px; color: var(--text); font-size: 0.97rem; line-height: 1.55; }
.trk-steps li::before {
  content: counter(trk); position: absolute; inset-inline-start: 0; top: 1px; width: 23px; height: 23px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 0.78rem; font-weight: 750;
}
.trk-more { margin: auto 0 0; }

/* ------------------------------------------------ categories */
.trk-cat-nav { margin: 0 0 clamp(24px, 3vw, 36px); }
.trk-cat-nav .chips li { padding: 0; }
.trk-cat-nav .chips a, .trk-chips-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 14px; color: var(--text); text-decoration: none; border-radius: inherit; }
.trk-cat-nav .chips a:hover, .trk-chips-links a:hover { color: var(--accent-text); text-decoration: underline; }
.trk-chips-links li { padding: 0; }
.trk-cats { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .trk-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trk-cat { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); scroll-margin-top: 96px; transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.trk-cat:hover { box-shadow: var(--shadow-md); border-color: var(--indigo-200); }
.trk-cat:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.trk-cat-media { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 8px; padding: 8px 8px 0; align-items: start; }
.trk-cat-media.is-single { grid-template-columns: 1fr; }
.trk-ph { margin: 0; min-width: 0; }
.trk-ph img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: calc(var(--radius-xl) - 10px); background: var(--bg-alt); }
.trk-ph-main img { aspect-ratio: 4 / 3; }
.trk-ph-side img { aspect-ratio: 4 / 5; }
.trk-ph figcaption { padding: 7px 4px 0; font-size: 0.8rem; line-height: 1.4; color: var(--muted); }
.trk-cat-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 22px 22px; flex: 1; }
.trk-cat-body h3 { margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); }
.trk-cat-body > p { margin: 0; color: var(--text); }
.trk-cat-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent2-text); text-transform: uppercase; }
[dir="rtl"] .trk-cat-kicker { letter-spacing: 0; text-transform: none; font-size: 0.86rem; }
.trk-num { font-family: var(--font-display); font-size: 0.9rem; color: var(--accent-text); background: var(--accent-soft); padding: 2px 9px; border-radius: var(--radius-full); letter-spacing: 0; }
.trk-sub { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.trk-sub a { display: inline-flex; align-items: center; min-height: 36px; padding: 5px 12px; font-size: 0.88rem; color: var(--text); background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-full); text-decoration: none; }
.trk-sub a:hover { border-color: var(--accent); color: var(--accent-text); }
.trk-cat-link { margin: auto 0 0; padding-top: 4px; }
/* 17 cartes : la derniere prend toute la largeur, photos a cote du texte */
@media (min-width: 760px) {
  .trk-cat:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .trk-cat:last-child:nth-child(odd) .trk-cat-media { padding: 8px; }
  .trk-cat:last-child:nth-child(odd) .trk-cat-body { padding: 26px 28px; justify-content: center; }
}

/* ------------------------------------------------ livraison */
.trk-cards .card { gap: 12px; }
.trk-cards .card p { color: var(--muted); }

/* ------------------------------------------------ appli */
.trk-app { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .trk-app { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.trk-app-lead { font-size: var(--fs-lg); color: var(--muted); max-width: 60ch; }
.trk-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trk-checks li { display: flex; gap: 10px; align-items: flex-start; }
.trk-checks i { color: var(--accent-text); font-size: 1.15rem; line-height: 1.5; flex-shrink: 0; }
.trk-app-note { margin-top: 22px; font-size: 0.93rem; }
.trk-app-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2.5vw, 24px); max-width: 520px; justify-self: center; width: 100%; }
.trk-app-shots.is-single { grid-template-columns: minmax(0, 1fr); max-width: 290px; }
.trk-ph-phone img { aspect-ratio: 390 / 844; object-position: top; border-radius: 24px; border: 5px solid var(--ink-950); background: var(--ink-950); box-shadow: var(--shadow-lg); }
.trk-ph-phone:nth-child(2) { margin-top: clamp(24px, 6vw, 56px); }
.trk-ph-phone figcaption { padding-top: 10px; }

/* ------------------------------------------------ securite, pays, recherches, faq, projet */
.trk-lower { padding-block: clamp(40px, 6vw, 72px); }
.trk-two { display: grid; gap: 20px; margin-bottom: clamp(32px, 4vw, 48px); }
@media (min-width: 960px) { .trk-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trk-panel { padding: clamp(20px, 3vw, 30px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.trk-panel h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); }
.trk-panel h2 i { color: var(--accent2-text); }
.trk-panel > p { color: var(--muted); }
.trk-links { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.trk-links li { border-top: 1px solid var(--border); }
.trk-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; font-weight: 650; text-decoration: none; }
.trk-links a:hover { text-decoration: underline; }
.trk-search { margin-bottom: clamp(32px, 4vw, 48px); }
.trk-faq-wrap { max-width: 860px; }
.trk-projet { display: grid; gap: 18px; align-items: center; margin: 0 0 clamp(28px, 4vw, 40px); padding: clamp(20px, 3vw, 30px); border-radius: var(--radius-xl); background: var(--accent-soft); border: 1px solid var(--border); }
@media (min-width: 900px) { .trk-projet { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.trk-projet h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); }
.trk-projet p { margin: 0; color: var(--text); }
.trk-projet-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.trk-credits { margin: 0 0 8px; padding: 12px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); font-size: 0.88rem; color: var(--muted); }
.trk-credits summary { cursor: pointer; font-weight: 650; color: var(--text); min-height: 32px; display: flex; align-items: center; }
.trk-credits p { margin: 8px 0 0; }
.trk-credits-list { text-align: start; overflow-wrap: anywhere; }
[dir="rtl"] .trk-credits-list { text-align: end; }
.trk-cta .btn-ghost.trk-btn-ondark { color: #fff; border-color: rgb(255 255 255 / 0.45); }
.trk-cta .btn-ghost.trk-btn-ondark:hover { border-color: #fff; color: #fff; }

@media (max-width: 420px) {
  .trk-cat-body { padding: 14px 16px 18px; }
  .trk-hero .actions .btn { flex: 1 1 auto; }
}
@media (prefers-color-scheme: dark) {
  .trk-cat:hover { border-color: var(--indigo-700); }
  .trk-shot-mob, .trk-ph-phone img { border-color: #2c3145; }
}
@media (prefers-reduced-motion: reduce) { .trk-cat { transition: none; } }
