/* Portail public (téléphone d'abord) */
:root { --p-accent: #e8660c; --p-accent-dark: #b84f06; --p-ink: #212529; }
.p-body { background: #f4f4f4; color: var(--p-ink); min-height: 100vh; }
.p-wrap { max-width: 640px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.p-header { background: #fff; border-bottom: 4px solid var(--p-accent); padding: 12px 0; }
.p-logo { height: 44px; width: auto; }
.p-club { font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.p-subtitle { color: #6c757d; font-size: .9rem; }
.p-main { padding-top: 24px; padding-bottom: 32px; }
.p-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; }
.p-lead { font-size: 1.05rem; color: #444; }
.p-section { font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--p-accent-dark);
    margin: 24px 0 12px; }
.p-form { background: #fff; border-radius: 12px; padding: 4px 16px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.p-required::after { content: " *"; color: #b02a37; }
.p-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.p-consent { background: color-mix(in srgb, var(--p-accent) 5%, #fff); border: 1px solid color-mix(in srgb, var(--p-accent) 35%, #fff); border-radius: 10px; padding: 14px; margin: 24px 0 20px; font-size: .95rem; }
.p-consent.is-invalid { border-color: #dc3545; }
.p-consent .invalid-feedback { display: block; }
.p-submit { background: var(--p-accent); border-color: var(--p-accent); color: #fff; font-weight: 700; }
.p-submit:hover, .p-submit:active, .p-submit:focus { background: var(--p-accent-dark); border-color: var(--p-accent-dark); color: #fff; }
.p-card { display: block; background: #fff; border-radius: 12px; padding: 18px; text-decoration: none; color: inherit;
    border-left: 6px solid var(--p-accent); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.p-card:hover { color: inherit; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.p-card-title { display: block; font-weight: 700; font-size: 1.2rem; margin-bottom: 4px; }
.p-card-text { display: block; color: #555; }
.p-done { background: #fff; border-radius: 12px; padding: 24px 20px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.p-done-icon { font-size: 3.5rem; color: #198754; line-height: 1; }
.p-steps { text-align: left; font-size: 1.1rem; margin: 20px auto; max-width: 440px; }
.p-steps li { margin-bottom: 8px; }
.p-footer { color: #888; font-size: .85rem; padding-bottom: 24px; text-align: center; }
.p-photo { display: flex; gap: 14px; align-items: flex-start; }
.p-photo-frame { width: 96px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #e9ecef; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; }
.p-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.p-photo-none { font-size: 2.6rem; font-weight: 800; color: #adb5bd; }
.p-photo .invalid-feedback { display: block; }
.p-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f0f0f0; }
.p-row:last-child { border-bottom: 0; }
.p-row span { color: #666; }
.p-row strong { text-align: right; }
.p-code { font-size: 2rem; letter-spacing: .4em; font-family: Consolas, Menlo, monospace; }
.p-family:has(#f-family:not(:checked)) .p-family-fields { display: none; }
.p-staff { margin-top: 6px; font-size: .8rem; }
.p-staff a { color: #aaa; text-decoration: none; }
.p-staff a:hover { color: #666; text-decoration: underline; }

/* Ma carte de membre (portail/carte.php) : grande à l'écran, taille réelle sur papier lettre, à découper */
.p-card-preview { display: flex; justify-content: center; margin: 8px 0 20px; }
.p-card-preview .m-card { zoom: 1.75; }
@media (max-width: 560px) { .p-card-preview .m-card { zoom: 1.3; } }
@media (max-width: 430px) { .p-card-preview .m-card { zoom: 1.05; } }
@media (max-width: 360px) { .p-card-preview .m-card { zoom: .95; } }
.p-card-cut { display: none; }
@media print {
    @page { size: letter; margin: 15mm; }
    .p-body { background: #fff; }
    .p-header, .p-footer, .p-noprint { display: none !important; }
    .p-main { padding: 0; }
    .p-card-preview { justify-content: flex-start; margin: 0; }
    .p-card-preview .m-card { zoom: 1 !important; border-radius: 0; box-shadow: none; outline: .2mm dashed #777; outline-offset: 0; }
    .p-card-cut { display: block; font-size: 9pt; color: #555; margin-top: 4mm; }
}

/* Mention TirPass, discrète, au pied du portail */
.tp-powered { display: inline-flex; align-items: center; gap: 5px; color: #b0b0b0; font-size: .75rem; text-decoration: none; }
.tp-powered:hover { color: #666; }
.tp-powered img { width: 14px; height: 14px; filter: grayscale(1); opacity: .7; }
.tp-powered:hover img { filter: none; opacity: 1; }
