/* Loi 25 : politique de confidentialité, écran de consentement, « Mes choix » de l'athlète.
   Poussée dans le <head> par les vues privacy/* et client/privacy (@push('head')). Mobile d'abord (390 px). */

/* ---------- Politique (page publique) ---------- */
.policy { max-width: 760px; }
.policy article h1 { font-size: 22px; margin: 6px 2px 4px; }
.policy .pversion { color: var(--muted); font-size: 13px; margin: 0 2px 18px; }
.policy article h2 { font-size: 16px; letter-spacing: .03em; margin: 26px 0 10px; color: var(--green); }
.policy article p, .policy article li { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.policy article p { margin-bottom: 10px; }
.policy article ul { padding-left: 20px; margin-bottom: 12px; }
.policy article li { margin-bottom: 6px; }
.policy .plist li { margin-bottom: 12px; }
.policy .pnote { color: var(--muted); font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.policy a { overflow-wrap: anywhere; }

/* Tableaux : en cartes empilées sur téléphone, en vrai tableau à partir de 640 px. */
.ptable { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; }
.ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ptable tr { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.ptable th[scope="row"] { display: block; text-align: left; font-size: 15px; margin-bottom: 4px; }
.ptable td { display: block; padding: 2px 0; line-height: 1.5; color: #d6d6d6; }
.ptable td::before { content: attr(data-label) " · "; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
@media (min-width: 640px) {
  .ptable thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .ptable tr { display: table-row; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
  .ptable th, .ptable td { display: table-cell; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
  .ptable thead th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .ptable th[scope="row"] { display: table-cell; font-size: 14px; width: 26%; margin: 0; }
  .ptable td::before { content: none; }
  .ptable-2 th[scope="row"] { width: 45%; }
}

/* ---------- Écran de consentement ---------- */
.consent-page { justify-content: flex-start; }
.card.consent { max-width: 560px; }
.consent .essentials { list-style: none; display: grid; gap: 10px; margin: 0 0 14px; }
.consent .essentials li { font-size: 14px; line-height: 1.5; padding-left: 14px; border-left: 3px solid var(--green); overflow-wrap: anywhere; }
.consent .policy-link { margin-bottom: 16px; font-size: 14px; }
.consent .policy-link a { display: inline-flex; align-items: center; min-height: 44px; }
.consent .choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 12px; margin-bottom: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.consent .choice.invalid { border-color: var(--red); }
.consent .choice input { flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; accent-color: var(--green); }
.consent .choice { cursor: pointer; }
.consent .choice:hover { border-color: #444; }
.consent .choice:has(input:checked) { border-color: var(--green); }
.consent .choice:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.consent .choice-t { font-size: 14px; line-height: 1.5; }
.consent .choice small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-style: italic; }
.consent .error { margin: -4px 0 10px; }
.consent .btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.consent .submit-hint { color: var(--muted); font-size: 13px; text-align: center; margin-top: 8px; }
.consent .decline { display: block; margin-top: 10px; text-align: center; }
.consent .linkish { min-height: 44px; padding: 0 8px; color: var(--muted); font-size: 14px; text-decoration: underline; }
.consent .linkish:hover { color: var(--text); }

/* ---------- Lien vers la politique sous les pages invité ---------- */
.guest-privacy { margin-top: 6px; font-size: 13px; }
.guest-privacy a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted); }
.guest-privacy a:hover { color: var(--text); }

/* Lien « Retour » de la politique : cible d'au moins 44 x 44 px. */
.policy .back { min-width: 44px; padding-right: 6px; }

/* ---------- Rappel d'accord (coach, « Nouvel athlète ») ---------- */
.consent-reminder { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 10px 12px; border: 1px solid rgba(255, 176, 32, .45); border-left: 4px solid var(--amber); border-radius: 10px; background: rgba(255, 176, 32, .08); color: var(--text); font-size: 14px; line-height: 1.45; }
.consent-reminder svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--amber); margin-top: 1px; }

/* ---------- « Mes choix » (athlète) ---------- */
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px; margin-bottom: 14px; }
.pcard h2 { font-size: 15px; margin-bottom: 10px; }
.pcard p { font-size: 14px; line-height: 1.55; margin-bottom: 10px; overflow-wrap: anywhere; }
.pcard p:last-child { margin-bottom: 0; }
.pcard .small { font-size: 13px; }
.pcard form { margin: 4px 0 10px; }
.pcard .pill { margin-right: 4px; }
.pcard .plink { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- « Ma fiche » (athlète, lecture seule) ---------- */
.athlete-sheet h3 { font-size: 13px; color: var(--muted); letter-spacing: .06em; margin: 16px 0 6px; }
.athlete-sheet .sheet-text { white-space: pre-line; }
.sheet-injuries { list-style: none; display: grid; gap: 8px; }
.sheet-injuries li { display: grid; gap: 4px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.sheet-injuries .si-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sheet-injuries .si-h .pill { flex-shrink: 0; margin: 0; }
.sheet-injuries small { color: var(--muted); font-size: 13px; }
.sheet-injuries .si-r { white-space: pre-line; }
.sheet-injuries .si-r b { color: var(--amber); font-weight: 600; }
