/* ============================================
   PingPerf - Styles des écrans : public
   Phase 4 de SPEC_Refonte_Graphique_Mobile.md. Uniquement des jetons de tokens.css.
   Pages : accueil, connexion, inscription, mot de passe oublié, vérification e-mail, pages légales.
   ============================================ */

/* ============================================
   Authentification : une carte centrée
   Usage :
   <div class="ttpc-auth [ttpc-auth--wide]">
       <div class="ttpc-auth__inner">
           <div class="ttpc-auth__head"><a class="ttpc-brand ttpc-auth__brand">PingPerf</a><p class="ttpc-auth__tagline">…</p></div>
           <div class="card ttpc-auth__card"><div class="card-body">…</div></div>
       </div>
   </div>
   ============================================ */
.ttpc-auth {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 2.5rem;
}

.ttpc-auth__inner {
    width: 100%;
    max-width: 26rem; /* 416px : connexion, mot de passe */
}

.ttpc-auth--wide .ttpc-auth__inner {
    max-width: 35rem; /* 560px : inscription, confirmations */
}

.ttpc-auth__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.ttpc-auth__brand {
    font-size: 2.25rem;
}

.ttpc-auth__brand::before {
    width: 0.8rem;
    height: 0.8rem;
}

.ttpc-auth__tagline {
    margin: 0;
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

.ttpc-auth__card .card-body {
    padding: 1.5rem 1.25rem;
}

.ttpc-auth__title {
    margin: 0 0 0.375rem;
    font-family: var(--ttpc-font-display);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    color: var(--ttpc-ink);
}

.ttpc-auth__lead {
    margin: 0 0 1.25rem;
    text-align: center;
    color: var(--bs-secondary-color);
}

/* Bouton principal pleine largeur */
.ttpc-auth__submit {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* Lien « Mot de passe oublié ? » : cible tactile de 44 px */
.ttpc-auth__aside-link {
    display: flex;
    justify-content: flex-end;
}

.ttpc-auth__aside-link a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Case « Se souvenir de moi » : cible tactile de 44 px */
.ttpc-auth .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    margin: 0;
    padding-left: 0;
}

.ttpc-auth .form-check-input {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
}

/* Séparateur avec texte */
.ttpc-auth__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
}

.ttpc-auth__divider::before,
.ttpc-auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ttpc-line);
}

/* Liens et actions secondaires sous le formulaire */
.ttpc-auth__alt {
    display: grid;
    gap: 0.5rem;
}

.ttpc-auth__footnote {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    text-align: center;
    color: var(--bs-secondary-color);
}

.ttpc-auth__footnote a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 2.75rem;
    font-weight: 600;
    text-decoration: none;
}

.ttpc-auth__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
}

/* Choix du type de compte (page Connexion) */
.ttpc-auth__choices {
    display: grid;
    gap: 0.75rem;
}

.ttpc-auth-choice {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-height: 4rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ttpc-line);
    border-radius: var(--ttpc-r-md);
    background: var(--ttpc-surface);
    color: var(--ttpc-ink);
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ttpc-auth-choice:hover,
.ttpc-auth-choice:focus-visible {
    border-color: var(--ttpc-table);
    color: var(--ttpc-ink);
}

.ttpc-auth-choice:active {
    background: var(--ttpc-table-soft);
}

.ttpc-auth-choice:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.25rem var(--ttpc-focus-ring);
}

.ttpc-auth-choice__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--ttpc-r-sm);
    background: var(--ttpc-table-soft);
    color: var(--ttpc-table);
    font-size: 1.25rem;
}

.ttpc-auth-choice__text {
    display: grid;
    flex: 1;
    min-width: 0;
}

.ttpc-auth-choice__text b {
    font-weight: 700;
}

.ttpc-auth-choice__text small {
    color: var(--bs-secondary-color);
}

.ttpc-auth-choice__chev {
    color: var(--ttpc-ink-3);
}

/* Sections de formulaire (inscription) */
.ttpc-auth__section + .ttpc-auth__section {
    margin-top: 1.5rem;
}

.ttpc-auth__section-title {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0 0 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ttpc-line);
    font-family: var(--ttpc-font-body);
    font-size: 1rem;
    font-weight: 700;
}

.ttpc-auth__section-title i {
    color: var(--ttpc-table);
}

.ttpc-auth__section-title small {
    font-weight: 500;
    color: var(--bs-secondary-color);
}

/* Encadré neutre (informations, critères, étapes) */
.ttpc-auth__note {
    margin: 0 0 1.25rem;
    padding: 0.875rem 1rem;
    border-radius: var(--ttpc-r-sm);
    background: var(--ttpc-surface-2);
    color: var(--ttpc-ink-2);
    font-size: 0.875rem;
}

.ttpc-auth__note-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0 0 0.375rem;
    font-weight: 700;
    color: var(--ttpc-ink);
}

.ttpc-auth__note-title i {
    color: var(--ttpc-table);
}

.ttpc-auth__note ul,
.ttpc-auth__note ol {
    margin: 0;
    padding-left: 1.25rem;
}

.ttpc-auth__note li + li {
    margin-top: 0.125rem;
}

/* Délai de validité d'un lien : en attente */
.ttpc-auth__note--warn {
    background: var(--ttpc-warn-soft);
    color: var(--ttpc-ink);
}

.ttpc-auth__note--warn .ttpc-auth__note-title i {
    color: var(--ttpc-warn);
}

/* Pages de confirmation / erreur : icône, titre, texte, action */
.ttpc-auth__status {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--ttpc-table-soft);
    color: var(--ttpc-table);
    font-size: 1.875rem;
}

.ttpc-auth__status--win {
    background: var(--ttpc-win-soft);
    color: var(--ttpc-win);
}

.ttpc-auth__status--loss {
    background: var(--ttpc-loss-soft);
    color: var(--ttpc-loss);
}

.ttpc-auth__email {
    display: block;
    margin-top: 0.25rem;
    font-weight: 700;
    color: var(--ttpc-ink);
    overflow-wrap: anywhere;
}

.ttpc-auth__error {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0.875rem 1rem;
    border-radius: var(--ttpc-r-sm);
    background: var(--ttpc-loss-soft);
    color: var(--ttpc-loss);
    font-weight: 600;
}

.ttpc-auth__subtitle {
    margin: 1.5rem 0 0.5rem;
    font-family: var(--ttpc-font-body);
    font-size: 1rem;
    font-weight: 700;
}

.ttpc-auth__help {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

@media (min-width: 768px) {
    .ttpc-auth {
        padding-block: 3rem 4rem;
    }

    .ttpc-auth__card .card-body {
        padding: 2rem;
    }

    .ttpc-auth__title {
        font-size: 2.125rem;
    }
}

/* ============================================
   Accueil : hero « la table vue de dessus »
   (surcharge de .hero-section définie dans app.css)
   ============================================ */
.ttpc-hero {
    position: relative;
    margin-top: 0;
    padding: 2.5rem 0 3rem;
    overflow: hidden;
    isolation: isolate;
}

/* Lignes de la table : bordure blanche */
.ttpc-hero::before {
    content: "";
    position: absolute;
    inset: 0.75rem;
    z-index: -1;
    border: 2px solid rgba(var(--bs-white-rgb), 0.4);
    border-radius: var(--ttpc-r-lg);
    pointer-events: none;
}

.ttpc-hero__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding-inline: 1rem; /* dégage le texte de la bordure de table */
}

.ttpc-hero__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(var(--bs-white-rgb), 0.85);
}

.ttpc-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(2.25rem, 10vw, 3.75rem);
    text-transform: uppercase;
    color: var(--bs-white);
}

.ttpc-hero__title em {
    font-style: normal;
    color: var(--ttpc-ball);
}

.ttpc-hero__lead {
    margin: 0;
    max-width: 40ch;
    font-size: 1.0625rem;
    color: rgba(var(--bs-white-rgb), 0.9);
}

.ttpc-hero__actions {
    display: grid;
    gap: 0.75rem;
}

.ttpc-hero__actions .btn {
    min-height: 3rem;
}

/* Boutons sur fond bleu : états visibles sans dépendre du survol */
.ttpc-hero .btn-outline-primary:active,
.ttpc-hero .btn-outline-primary:focus-visible {
    background-color: var(--bs-white);
    color: var(--ttpc-table-deep);
}

.ttpc-hero .btn:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-white-rgb), 0.45);
}

.ttpc-hero__trust {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 1.25rem 0 0;
    font-size: 0.875rem;
    color: rgba(var(--bs-white-rgb), 0.8);
}

/* Aperçu de Player Card : décoratif, entre l'accroche et les actions sur mobile, à droite sur desktop */
.ttpc-hero__visual .ttpc-player-card {
    max-width: 20rem;
    margin-inline: auto;
    background: var(--ttpc-btn-primary);
    box-shadow: 0 18px 40px rgba(var(--bs-black-rgb), 0.25);
}

@media (min-width: 576px) {
    .ttpc-hero__actions {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (min-width: 992px) {
    .ttpc-hero {
        padding: 4.5rem 0;
    }

    .ttpc-hero::before {
        inset: 1.25rem;
    }

    /* Ligne médiane, entre le texte et la carte */
    .ttpc-hero::after {
        content: "";
        position: absolute;
        top: 1.25rem;
        bottom: 1.25rem;
        left: 50%;
        z-index: -1;
        width: 1px;
        background: rgba(var(--bs-white-rgb), 0.3);
        pointer-events: none;
    }

    .ttpc-hero__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "intro visual"
            "cta   visual";
        column-gap: 4rem;
        row-gap: 1.5rem;
        padding-inline: 0;
    }

    .ttpc-hero__intro {
        grid-area: intro;
        align-self: end;
    }

    .ttpc-hero__cta {
        grid-area: cta;
        align-self: start;
    }

    .ttpc-hero__visual {
        grid-area: visual;
    }

    .ttpc-hero__visual .ttpc-player-card {
        max-width: 24rem;
    }
}

/* ============================================
   Accueil : sections
   ============================================ */
.ttpc-home-section {
    padding: 2.5rem 0;
}

.ttpc-home-section--band {
    background: var(--ttpc-surface);
    border-block: 1px solid var(--ttpc-line);
}

.ttpc-home-head {
    margin: 0 auto 1.5rem;
    max-width: 40rem;
    text-align: center;
}

.ttpc-home-head h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.875rem, 7vw, 2.75rem);
    text-transform: uppercase;
}

.ttpc-home-head p {
    margin: 0;
    color: var(--bs-secondary-color);
}

/* Analyse vidéo par un coach certifié : bandeau orange, l'offre payante */
.ttpc-certified {
    background: var(--ttpc-ball-soft);
}

.ttpc-certified__grid {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.ttpc-certified__eyebrow {
    color: var(--ttpc-ball-ink);
}

.ttpc-certified__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 6.5vw, 2.5rem);
    text-transform: uppercase;
}

.ttpc-certified__lead {
    margin: 0 0 1rem;
    color: var(--ttpc-ink);
}

.ttpc-certified__points {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ttpc-certified__points li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.ttpc-certified__points i {
    flex: none;
    color: var(--ttpc-ball);
}

.ttpc-certified__offer {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1.25rem;
    border-radius: var(--ttpc-r-lg);
    background: var(--ttpc-surface);
    box-shadow: var(--ttpc-shadow);
    text-align: center;
}

.ttpc-certified__price {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    margin: 0;
    font-family: var(--ttpc-font-display);
}

.ttpc-certified__price b {
    font-size: 3.25rem;
    line-height: 1;
    color: var(--ttpc-ball-ink);
}

.ttpc-certified__price span {
    font-size: 1.125rem;
    color: var(--bs-secondary-color);
}

.ttpc-certified__terms {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    color: var(--bs-secondary-color);
}

.ttpc-certified__offer .btn {
    width: 100%;
    min-height: 3rem;
}

.ttpc-certified__offer small {
    color: var(--bs-secondary-color);
}

/* Liste d'atouts : une colonne sur mobile, 2 puis 3 colonnes */
.ttpc-features {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ttpc-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    border: 1px solid var(--ttpc-line);
    border-radius: var(--ttpc-r-md);
    background: var(--ttpc-surface);
}

.ttpc-home-section--band .ttpc-feature {
    background: var(--ttpc-bg);
}

.ttpc-feature__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--ttpc-r-sm);
    background: var(--ttpc-table-soft);
    color: var(--ttpc-table);
    font-size: 1.25rem;
}

.ttpc-feature h3 {
    margin: 0 0 0.25rem;
    font-family: var(--ttpc-font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

.ttpc-feature p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--bs-secondary-color);
}

.ttpc-home-cta {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    text-align: center;
}

.ttpc-home-cta .btn {
    width: 100%;
    min-height: 3rem;
}

/* Diaporama de captures : une capture dans un cadre de navigateur, sa légende, puis la navigation */
.ttpc-showcase {
    max-width: 17rem;
    margin: 0 auto 2rem;
}

.ttpc-showcase__item {
    /* Marges du <figure> annulées, sauf le margin-right: -100% de Bootstrap qui superpose les diapositives pendant la transition */
    margin: 0 -100% 0 0;
}

.ttpc-showcase__frame {
    overflow: hidden;
    border: 1px solid var(--ttpc-line);
    border-radius: var(--ttpc-r-lg);
    background: var(--ttpc-surface);
    box-shadow: var(--ttpc-shadow);
}

/* La barre de navigateur n'a de sens qu'avec la capture desktop */
.ttpc-showcase__bar {
    display: none;
}

.ttpc-showcase__frame img {
    display: block;
    width: 100%;
    height: auto;
}

.ttpc-showcase__caption {
    padding: 1rem 0.25rem 0;
    text-align: center;
}

.ttpc-showcase__caption h3 {
    margin: 0 0 0.25rem;
    font-family: var(--ttpc-font-body);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0;
}

.ttpc-showcase__caption p {
    margin: 0 auto;
    max-width: 36rem;
    font-size: 0.9375rem;
    color: var(--bs-secondary-color);
}

.ttpc-showcase__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.ttpc-showcase__control {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--ttpc-line);
    border-radius: 50%;
    background: var(--ttpc-surface);
    color: var(--ttpc-ink);
    font-size: 1.125rem;
}

.ttpc-showcase__control:hover {
    border-color: var(--ttpc-table);
    color: var(--ttpc-table);
}

/* Indicateurs Bootstrap remis dans le flux, sous la légende */
.ttpc-showcase__dots.carousel-indicators {
    position: static;
    margin: 0;
    gap: 0.25rem;
}

.ttpc-showcase__dots.carousel-indicators [data-bs-target] {
    width: 0.625rem;
    height: 0.625rem;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--ttpc-ink-3);
    opacity: 0.45;
}

.ttpc-showcase__dots.carousel-indicators .active {
    width: 1.5rem;
    border-radius: 999px;
    background-color: var(--ttpc-table);
    opacity: 1;
}

/* Étapes numérotées */
.ttpc-steps {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ttpc-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ttpc-step__num {
    display: grid;
    place-items: center;
    flex: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--ttpc-btn-primary);
    color: var(--bs-white);
    font-family: var(--ttpc-font-display);
    font-size: 1.625rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ttpc-step h3 {
    margin: 0.25rem 0 0.25rem;
    font-family: var(--ttpc-font-body);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0;
}

.ttpc-step p {
    margin: 0;
    color: var(--bs-secondary-color);
}

/* Pourquoi PingPerf */
.ttpc-why {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.ttpc-why__list {
    display: grid;
    gap: 1.125rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ttpc-why__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ttpc-why__item > i {
    flex: none;
    font-size: 1.25rem;
    color: var(--ttpc-table);
}

.ttpc-why__item h3 {
    margin: 0 0 0.25rem;
    font-family: var(--ttpc-font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.ttpc-why__item p {
    margin: 0;
    color: var(--bs-secondary-color);
}

.ttpc-why__card .card-body {
    display: grid;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.ttpc-why__card .ttpc-brand {
    justify-self: center;
    font-size: 2rem;
}

.ttpc-why__card h3 {
    margin: 0;
    font-size: 1.75rem;
    text-transform: uppercase;
}

.ttpc-why__card p {
    margin: 0 0 0.5rem;
    color: var(--bs-secondary-color);
}

.ttpc-why__actions {
    display: grid;
    gap: 0.625rem;
}

@media (min-width: 768px) {
    .ttpc-home-section {
        padding: 4rem 0;
    }

    .ttpc-home-head {
        margin-bottom: 2.5rem;
    }

    .ttpc-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .ttpc-feature {
        padding: 1.25rem;
    }

    .ttpc-home-cta .btn {
        width: auto;
        padding-inline: 2rem;
    }

    .ttpc-showcase {
        max-width: 56rem;
        margin-bottom: 3rem;
    }

    .ttpc-showcase__frame {
        border-radius: var(--ttpc-r-md);
    }

    .ttpc-showcase__bar {
        display: flex;
        gap: 0.375rem;
        padding: 0.625rem 0.875rem;
        border-bottom: 1px solid var(--ttpc-line);
        background: var(--ttpc-surface-2);
    }

    .ttpc-showcase__bar span {
        width: 0.625rem;
        height: 0.625rem;
        border-radius: 50%;
        background: var(--ttpc-line);
    }

    .ttpc-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .ttpc-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ttpc-why__card .card-body {
        padding: 2.5rem 2rem;
    }
}

@media (min-width: 992px) {
    .ttpc-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ttpc-certified__grid {
        grid-template-columns: 3fr 2fr;
        gap: 3rem;
    }

    .ttpc-why {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ttpc-auth-choice {
        transition: none;
    }
}

/* ============================================
   Pages légales : mentions légales et CGU (SPEC_Pages_Legales.md)
   Usage :
   <div class="container ttpc-legal">
       <header class="ttpc-legal__head">…</header>
       <div class="ttpc-legal__grid"><nav class="ttpc-legal__toc">…</nav><div class="ttpc-legal__content">…</div></div>
   </div>
   ============================================ */
.ttpc-legal {
    padding-block: 1.5rem 2.5rem;
}

.ttpc-legal__head {
    max-width: 48rem;
    margin-bottom: 1.5rem;
}

.ttpc-legal__head h1 {
    margin: 0 0 0.5rem;
}

.ttpc-legal__lead {
    margin: 0 0 0.5rem;
    color: var(--ttpc-ink-2);
    line-height: 1.55;
}

.ttpc-legal__updated {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ttpc-ink-3);
}

.ttpc-legal__grid {
    display: grid;
    gap: 1.5rem;
}

/* Sommaire : encadré en tête sur mobile, colonne collante sur desktop */
.ttpc-legal__toc {
    padding: 1rem 1.25rem;
    border: 1px solid var(--ttpc-line);
    border-radius: var(--ttpc-r-md);
    background: var(--ttpc-surface);
    font-size: 0.9375rem;
}

.ttpc-legal__toc-title {
    margin: 0 0 0.5rem;
    font-family: var(--ttpc-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ttpc-ink);
}

.ttpc-legal__toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.ttpc-legal__toc a {
    display: inline-block;
    padding-block: 0.2rem;
    color: var(--ttpc-ink-2);
    text-decoration: none;
}

.ttpc-legal__toc a:hover {
    color: var(--ttpc-table);
}

.ttpc-legal__content {
    max-width: 48rem;
    line-height: 1.6;
}

.ttpc-legal__content section {
    scroll-margin-top: 5rem; /* sous la barre du haut */
}

.ttpc-legal__content section + section {
    margin-top: 2rem;
}

.ttpc-legal__content h2 {
    margin: 0 0 0.75rem;
    font-size: 1.375rem;
}

.ttpc-legal__content h3 {
    margin: 1.25rem 0 0.5rem;
    font-family: var(--ttpc-font-body);
    font-size: 1rem;
    font-weight: 700;
}

.ttpc-legal__content ul {
    padding-left: 1.25rem;
}

.ttpc-legal__content li + li {
    margin-top: 0.25rem;
}

/* Liste « libellé : valeur » (éditeur, hébergeur, définitions) */
.ttpc-legal__facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0 0 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--ttpc-line);
    border-radius: var(--ttpc-r-md);
    background: var(--ttpc-surface);
}

.ttpc-legal__facts dt {
    font-weight: 600;
    color: var(--ttpc-ink);
}

.ttpc-legal__facts dd {
    margin: 0 0 0.75rem;
    color: var(--ttpc-ink-2);
}

.ttpc-legal__facts dd:last-child {
    margin-bottom: 0;
}

.ttpc-legal__other {
    margin: 2.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--ttpc-line);
}

@media (min-width: 768px) {
    .ttpc-legal__facts {
        grid-template-columns: 12rem minmax(0, 1fr);
        column-gap: 1rem;
    }

    .ttpc-legal__facts dd {
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 992px) {
    .ttpc-legal__grid {
        grid-template-columns: 15rem minmax(0, 1fr);
        align-items: start;
        gap: 2.5rem;
    }

    .ttpc-legal__toc {
        position: sticky;
        top: 5rem;
    }
}

/* Liens légaux pour les visiteurs sur mobile (le pied de page y est masqué) */
.ttpc-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 1.25rem;
    padding: 1rem;
    border-top: 1px solid var(--ttpc-line);
    font-size: 0.8125rem;
}

.ttpc-legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem; /* cible tactile de 44 px */
    color: var(--ttpc-ink-2);
}

/* Sélecteur de langue compact (SPEC_Internationalisation.md 2.3) */
.ttpc-locale-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.75rem; /* cible tactile de 44 px */
    padding: 0;
    border: 0;
    background: none;
    color: var(--ttpc-ink-2);
    font-size: inherit;
}

/* Pied de page allégé des écrans d'authentification (templates/layout/_auth_footer.html.twig) */
.ttpc-auth-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 1.5rem;
    padding: 0.5rem 1rem 1.5rem;
    font-size: 0.8125rem;
    color: var(--ttpc-ink-2);
}

.ttpc-auth-footer__legal,
.ttpc-auth-footer__prefs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 1.25rem;
}

.ttpc-auth-footer__legal a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem; /* cible tactile de 44 px */
    color: var(--ttpc-ink-2);
}

.ttpc-auth-footer__legal a:hover {
    color: var(--ttpc-table);
}

.ttpc-auth-footer__copy {
    margin: 0;
}

/* Le sélecteur de thème compact est prévu pour une barre sombre : couleurs de surface claire */
.ttpc-auth-footer .ttpc-theme-switcher--compact .ttpc-theme-switcher__group {
    background: var(--ttpc-surface-2);
}

.ttpc-auth-footer .ttpc-theme-switcher--compact .ttpc-theme-switcher__group button {
    color: var(--ttpc-ink-2);
}

.ttpc-auth-footer .ttpc-theme-switcher--compact .ttpc-theme-switcher__group button[aria-pressed="true"] {
    background: var(--ttpc-surface);
    color: var(--ttpc-ink);
    box-shadow: var(--ttpc-shadow-sm);
}

/* ============================================
   Player Card partagée (SPEC_Partage_Player_Card.md 5.3)
   Usage :
   <div class="container ttpc-shared-card">
       <header class="ttpc-shared-card__head">photo, nom, club</header>
       Player Card (ui.player_card)
       <section class="ttpc-shared-card__cta">…</section>
   </div>
   ============================================ */
.ttpc-shared-card {
    display: grid;
    gap: 1.25rem;
    max-width: 30rem;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.ttpc-shared-card__head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ttpc-shared-card__photo {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ttpc-surface);
    box-shadow: 0 0 0 2px var(--ttpc-table);
}

.ttpc-shared-card__photo--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ttpc-table);
    color: #fff;
    font-family: var(--ttpc-font-display);
    font-size: 1.75rem;
    font-weight: 700;
}

.ttpc-shared-card__head .ttpc-eyebrow {
    margin-bottom: 0.125rem;
}

.ttpc-shared-card__name {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.1;
}

.ttpc-shared-card__club {
    margin: 0.25rem 0 0;
    color: var(--ttpc-ink-2);
}

.ttpc-shared-card__cta {
    padding: 1.25rem;
    border: 1px solid var(--ttpc-line);
    border-radius: var(--ttpc-r-lg);
    background: var(--ttpc-surface);
}

.ttpc-shared-card__cta h2 {
    font-size: 1.25rem;
}

.ttpc-shared-card__cta p {
    color: var(--ttpc-ink-2);
}
