/* Profoot Dossiers Joueur — styles de la fiche (vert/blanc du club, aucun rouge) */
.pfd-wrap { max-width: 1080px; margin: 0 auto; padding: 8px 4px 24px; font-size: 15px; color: #1d2b22; }
.pfd-wrap h2 { font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; color: #123; }
.pfd-wrap h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: #1b7a3e; margin: 18px 0 8px; }
.pfd-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: #1b7a3e; font-weight: 700; }
.pfd-name { font-size: 2.2rem; margin: 4px 0 10px; color: #111; }
.pfd-num { color: #1b7a3e; }
.pfd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pfd-chip { display: inline-block; padding: 5px 14px; border: 1px solid #cfe3d4; border-radius: 999px; background: #f4faf5; font-size: .85rem; }
.pfd-chip-main { background: #1b7a3e; color: #fff; border-color: #1b7a3e; font-weight: 600; }
.pfd-grid { display: grid; grid-template-columns: 340px 1fr; gap: 18px; margin-bottom: 18px; }
.pfd-grid-2 { grid-template-columns: 1fr 1fr; }
.pfd-card { background: #fff; border: 1px solid #e3ece5; border-radius: 14px; padding: 20px 22px; box-shadow: 0 2px 10px rgba(20,60,35,.05); }
.pfd-sub { color: #5c6f61; font-size: .88rem; margin: -6px 0 14px; }
.pfd-photo-box { background: #14532d; border-radius: 10px; aspect-ratio: 4/4.4; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; overflow: hidden; }
.pfd-photo-box img.pfd-photo { width: 100%; height: 100%; object-fit: cover; }
.pfd-initiales { width: 110px; height: 110px; border-radius: 50%; border: 3px solid rgba(255,255,255,.7); color: #fff; font-size: 2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pfd-dl { margin: 0 0 12px; }
.pfd-dl > div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #e3ece5; }
.pfd-dl dt { color: #6b7d70; } .pfd-dl dd { margin: 0; font-weight: 600; text-align: right; }
.pfd-score-box { display: flex; align-items: center; gap: 8px; background: #eef7f0; border: 1px solid #cfe3d4; border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.pfd-score { font-size: 2rem; font-weight: 800; color: #1b7a3e; }
.pfd-score-out { color: #6b7d70; } .pfd-score-label { font-size: .85rem; color: #41544a; }
.pfd-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.pfd-row strong { color: #1b7a3e; }
.pfd-bar { height: 8px; background: #e8efe9; border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.pfd-bar span { display: block; height: 100%; background: #1b7a3e; border-radius: 99px; }
.pfd-bars { list-style: none; margin: 0; padding: 0; }
.pfd-tag { display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #1b7a3e; border: 1px solid #1b7a3e; border-radius: 6px; padding: 3px 10px; margin-bottom: 8px; }
.pfd-feet { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pfd-foot-stat { border: 1px solid #e3ece5; border-radius: 10px; padding: 14px; text-align: center; }
.pfd-big { font-size: 1.9rem; font-weight: 800; color: #1b7a3e; } .pfd-unit { color: #6b7d70; }
.pfd-cap { font-size: .82rem; color: #6b7d70; margin-top: 4px; }
.pfd-mental-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.pfd-obs { background: #f4faf5; border-left: 4px solid #1b7a3e; border-radius: 0 8px 8px 0; padding: 12px 14px; font-size: .92rem; }
.pfd-delta-num { display: inline-block; background: #1b7a3e; color: #fff; font-weight: 800; border-radius: 8px; padding: 4px 12px; margin-right: 6px; }
.pfd-cr { background: #f7faf8; border-left: 4px solid #1b7a3e; border-radius: 0 8px 8px 0; padding: 10px 14px; margin-bottom: 10px; }
.pfd-cr strong { color: #1b7a3e; font-size: .82rem; letter-spacing: .06em; } .pfd-cr p { margin: 4px 0 0; font-size: .92rem; }
.pfd-next { background: #eef7f0; border: 1px solid #1b7a3e; border-radius: 10px; padding: 12px 16px; margin-top: 14px; }
.pfd-next h3 { margin-top: 0; }
.pfd-foot { color: #8a978e; font-size: .8rem; border-top: 1px solid #e3ece5; padding-top: 12px; margin-top: 6px; }
.pfd-login, .pfd-empty { background: #f7faf8; border: 1px solid #e3ece5; border-radius: 10px; padding: 16px; }
.pfd-search-form { display: flex; gap: 10px; margin-bottom: 16px; }
/* v1.67.0 — le thème force les champs à 100 % de large : on verrouille les
   proportions (menu déroulant compact, champ du nom extensible). */
.pfd-search-form select { flex: 0 0 auto; width: auto; max-width: 160px; padding: 10px 12px; border: 1px solid #cfe3d4; border-radius: 8px; background: #fff; }
.pfd-search-form input[type="search"] { flex: 1 1 0%; width: auto; min-width: 0; padding: 10px 14px; border: 1px solid #cfe3d4; border-radius: 8px; }
.pfd-search-form button { flex: 0 0 auto; width: auto; background: #1b7a3e; color: #fff; border: 0; border-radius: 8px; padding: 10px 22px; cursor: pointer; font-weight: 600; }
/* v1.67.0 — sur mobile, le champ du nom prend toute la largeur (le menu
   déroulant et le bouton passent sur la ligne suivante). */
@media (max-width: 560px) {
  .pfd-search-form { flex-wrap: wrap; }
  .pfd-search-form input[type="search"] { flex: 1 1 100%; order: -1; }
  .pfd-search-form select { flex: 1 1 auto; max-width: none; }
  .pfd-search-form button { flex: 1 1 auto; }
}
.pfd-results { list-style: none; margin: 0; padding: 0; }
.pfd-results li { padding: 10px 4px; border-bottom: 1px solid #e3ece5; }
.pfd-results a { font-weight: 700; color: #14532d; } .pfd-meta { color: #6b7d70; font-size: .85rem; margin-left: 8px; }
@media (max-width: 860px) {
  .pfd-grid, .pfd-grid-2, .pfd-mental-grid, .pfd-feet { grid-template-columns: 1fr; }
  .pfd-name { font-size: 1.7rem; }
}
@media print {
  .pfd-search-form, .pfd-login { display: none; }
  .pfd-card { box-shadow: none; break-inside: avoid; }
}

/* Saisie front-end (coach) */
.pfd-fieldset { border: 1px solid #e3ece5; border-radius: 12px; padding: 18px 20px; margin: 0 0 16px; background: #fff; }
.pfd-fieldset legend { font-weight: 700; color: #14532d; padding: 0 8px; text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
.pfd-field { margin-bottom: 12px; }
.pfd-field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .92rem; }
.pfd-form input[type="text"], .pfd-form textarea, .pfd-form select { width: 100%; max-width: 520px; padding: 8px 10px; border: 1px solid #cfe3d4; border-radius: 8px; font-size: .95rem; }
.pfd-form input[type="number"], .pfd-form input[type="date"] { padding: 8px 10px; border: 1px solid #cfe3d4; border-radius: 8px; font-size: .95rem; }
.pfd-form input[type="number"] { width: 130px; }
.pfd-submit { background: #1b7a3e; color: #fff; border: 0; border-radius: 8px; padding: 12px 28px; font-weight: 700; cursor: pointer; font-size: 1rem; }
.pfd-submit:hover { background: #14532d; }
.pfd-cancel { margin-left: 12px; color: #1b7a3e; font-weight: 600; }
.pfd-saved { background: #eef7f0; border: 1px solid #1b7a3e; color: #14532d; border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.pfd-error { background: #fff8e6; border: 1px solid #c9a227; color: #7a5c00; border-radius: 10px; padding: 12px 16px; }

/* Espace membre (v1.2.0) */
.pfd-espace { max-width: 1080px; margin: 0 auto; padding: 8px 4px 24px; color: #1d2b22; }
.pfd-espace-head { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pfd-espace-id { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e3ece5; border-radius: 14px; padding: 10px 16px; box-shadow: 0 2px 10px rgba(20,60,35,.05); }
.pfd-espace-avatar { width: 56px; height: 56px; border-radius: 50%; }
.pfd-espace-who { display: flex; flex-direction: column; line-height: 1.25; margin-right: 4px; }
.pfd-espace-bonjour { font-size: .75rem; color: #6b7d70; text-transform: uppercase; letter-spacing: .08em; }
.pfd-espace-name { font-weight: 800; color: #14532d; font-size: 1.05rem; }
.pfd-espace-role { font-size: .8rem; color: #1b7a3e; font-weight: 600; }
.pfd-btn { display: inline-block; background: #1b7a3e; color: #fff !important; border-radius: 8px; padding: 11px 22px; font-weight: 700; text-decoration: none !important; }
.pfd-btn:hover { background: #14532d; }
.pfd-btn-light { background: #fff; color: #14532d !important; border: 1px solid #1b7a3e; }
.pfd-btn-light:hover { background: #eef7f0; }
.pfd-espace-card, .pfd-espace-section { background: #fff; border: 1px solid #e3ece5; border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(20,60,35,.05); }
.pfd-espace-section h3, .pfd-espace-card h3 { margin: 0 0 12px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: #1b7a3e; }
.pfd-espace-actions { display: flex; flex-wrap: wrap; gap: 10px; }


/* --- Inscription aux programmes (v1.3.0) --- */
/* Multi-enfants (v1.3.8) : blocs répétables de l'étape 1 */
.pfd-enfant { margin-bottom: 16px; border: 1px solid #cfe3d4; border-radius: 14px; padding: 18px 20px; background: #fbfdfb; }
.pfd-enfant > legend { background: #eef7f0; padding: 4px 12px; border-radius: 8px; }
.pfd-enfant .pfd-enfant-num { font-weight: 800; color: #1b7a3e; }
.pfd-enfant-retirer { margin: 10px 0 0; }

.pfd-insc-lines { list-style: none; margin: 0 0 14px; padding: 0; }
.pfd-insc-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #e3ece5; }
.pfd-insc-lines li.pfd-insc-total { border-bottom: none; font-size: 1.05rem; }
.pfd-insc-note { background: #eef7f0; border: 1px solid #cfe6d6; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.pfd-insc-list { list-style: none; margin: 12px 0; padding: 0; }
.pfd-insc-list li { background: #fff; border: 1px solid #e3ece5; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.pfd-insc-ok { color: #1b7a3e; font-weight: 600; }
/* v1.60.0+ : messages de confirmation/erreur dans l'espace membre */
.pfd-ok { background: #eef7f0; border: 1px solid #cfe6d6; color: #1b7a3e; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
/* v1.62.0 : badge de confirmation « déjà dans un groupe » (onglet Inscriptions) */
.pfd-groupe-badge { display: inline-block; padding: 2px 10px; margin: 3px 4px 0 0; border-radius: 999px; background: #1b7a3e; color: #fff; font-size: .82rem; font-weight: 600; white-space: nowrap; }
/* v1.63.0 : compteur « non vus » sur l'onglet Inscriptions */
.pfd-tab-badge { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #c0392b; color: #fff; font-size: .75rem; font-weight: 700; text-align: center; vertical-align: middle; }
/* v1.66.0 : menu du profil en colonne latérale sur ordinateur (le mobile garde le bouton ☰ Menu). */
@media (min-width: 641px) {
  .pfd-espace { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 22px; align-items: start; }
  .pfd-espace-head { grid-column: 1 / -1; }
  .pfd-espace .pfd-tabs {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
    padding: 0 16px 4px 0;
    border-bottom: none;
    border-right: 2px solid #d8e0e8;
    position: sticky;
    top: 14px;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
  }
  .pfd-espace .pfd-tab { display: block; border-radius: 12px; }
  .pfd-espace .pfd-tab-content { padding-top: 0; min-width: 0; }
}
.pfd-insc-wait { color: #9a6a12; font-weight: 600; }
.pfd-insc-resume { display: inline-block; margin: 6px 0 0 8px; }
.pfd-insc-resume .pfd-btn { padding: 8px 16px; }
.pfd-back { margin: 12px 0; }
.pfd-error { background: #fdf0ec; border: 1px solid #efc4b8; color: #8c3a26; border-radius: 10px; padding: 12px 14px; }
.pfd-insc .pfd-form select, .pfd-insc .pfd-form input[type="text"], .pfd-insc .pfd-form input[type="date"] { width: 100%; max-width: 420px; }
/* Catégories de programmes (v1.3.9) : en-têtes « Programme d’hiver / d’été » du menu déroulant */
.pfd-insc .pfd-programme optgroup { font-style: normal; font-weight: 700; color: #1b7a3e; }
.pfd-insc .pfd-programme option { font-weight: 400; color: #222; }


/* --- Mes informations CRM (v1.3.6) --- */
.pfd-info-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pfd-info-table th, .pfd-info-table td { padding: 9px 8px; border-bottom: 1px solid #e3ece5; text-align: left; vertical-align: middle; }
.pfd-info-table th { color: #14532d; text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; }
.pfd-info-montant { text-align: right !important; white-space: nowrap; }
.pfd-info-statut { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #f4faf5; border: 1px solid #cfe3d4; font-size: .82rem; font-weight: 600; }
.pfd-info-statut-ok { background: #1b7a3e; border-color: #1b7a3e; color: #fff; }
.pfd-info-statut-du { background: #fdf6e0; border-color: #c9a227; color: #7a5c00; }
.pfd-info-du-num { font-size: 1.8rem; font-weight: 800; color: #14532d; margin: 4px 0; }
.pfd-info-du-ok { font-weight: 700; color: #1b7a3e; margin: 4px 0; }
@media (max-width: 560px) {
  .pfd-info-table { font-size: .85rem; }
  .pfd-info-table th, .pfd-info-table td { padding: 7px 5px; }
}

/* --- Page « Performance » (v1.4.0) : cartes des joueurs de 18 ans et plus, photo d'abord --- */
.pfd-perf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 14px; }
.pfd-perf-card { display: block; background: #fff; border: 1px solid #e3ece5; border-radius: 14px; overflow: hidden; text-decoration: none !important; color: #1d2b22; box-shadow: 0 2px 10px rgba(20,60,35,.05); transition: transform .12s ease, box-shadow .12s ease; }
.pfd-perf-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20,60,35,.10); }
.pfd-perf-photo { display: flex; align-items: center; justify-content: center; background: #14532d; aspect-ratio: 4/3.2; overflow: hidden; }
.pfd-perf-photo img.pfd-perf-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfd-perf-photo .pfd-initiales { width: 84px; height: 84px; font-size: 1.6rem; }
.pfd-perf-body { display: block; padding: 14px 16px 16px; }
.pfd-perf-name { display: block; font-size: 1.08rem; font-weight: 800; color: #14532d; margin-bottom: 4px; }
.pfd-perf-meta { display: block; color: #5c6f61; font-size: .88rem; margin-bottom: 6px; }
.pfd-perf-score { margin: 8px 0 0; }
.pfd-perf-score .pfd-score { font-size: 1.5rem; }
.pfd-perf-none { display: inline-block; color: #6b7d70; font-size: .85rem; background: #f4faf5; border: 1px solid #e3ece5; border-radius: 999px; padding: 4px 12px; margin-top: 8px; }
@media (max-width: 560px) {
  .pfd-perf-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pfd-perf-body { padding: 10px 12px 12px; }
  .pfd-perf-name { font-size: .98rem; }
}
.pfd-badge-benevole { display: inline-block; margin-left: .5rem; padding: .15rem .6rem; border-radius: 999px; background: #1b7a3e; color: #fff; font-size: .75rem; font-weight: 700; }

/* --- Message de bienvenue sur la page de confirmation (v1.7.11) --- */
.pfd-welcome { background: linear-gradient(135deg, #0b3d2e, #14532d); color: #fff; border-radius: 16px; padding: 28px 30px; margin: 0 0 24px; box-shadow: 0 4px 18px rgba(20,60,35,.18); }
.pfd-welcome h2 { color: #fff; font-size: 1.5rem; margin: 0 0 10px; }
.pfd-welcome p { color: #eaf4ec; font-size: 1.05rem; margin: 0; }
.pfd-welcome p strong { color: #fff; }

/* --- Covoiturage entre parents (v1.8.0) --- */
.pfd-cov-trajet { background: #fff; border: 1px solid #d8e0e8; border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; }
.pfd-note { color: #5a6b7c; font-size: .9rem; }
.pfd-form input[type="time"] { padding: 8px 10px; border: 1px solid #cfe3d4; border-radius: 8px; font-size: .95rem; }
.pfd-form label { display: block; margin-bottom: 2px; }
.pfd-cov-demandes { margin: 10px 0; padding: 10px 12px; background: #fdf3e7; border: 1px solid #f0d9b5; border-radius: 8px; }
.pfd-cov-demande { margin: 6px 0; }
.pfd-cov-demande form { margin-left: 8px; }

/* --- Onglets du profil (v1.9.0) --- */
.pfd-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; border-bottom: 2px solid #d8e0e8; padding-bottom: 10px; }
.pfd-tab { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #eef4fa; color: #0c3b5d; text-decoration: none; font-weight: 600; font-size: .95rem; border: 1px solid #d8e0e8; }
.pfd-tab:hover { background: #e0ebf5; text-decoration: none; }
.pfd-tab-active { background: #0c3b5d; color: #fff; border-color: #0c3b5d; }
.pfd-tab-content { padding-top: 14px; }

/* --- Page profil unique (v1.37.1) --- */
/* Le shortcode [profoot_espace] est posé sur la page Mon compte, à côté de
   [woocommerce_my_account] : on masque la navigation native WooCommerce
   (doublon) quand notre menu d'onglets est affiché sur la même page.
   La navigation n'est de toute façon rendue que pour les connectés. */
.pfd-espace ~ .woocommerce .woocommerce-MyAccount-navigation { display: none !important; }

/* --- Menu plein écran sur mobile (v1.40.0) --- */
.pfd-menu-btn, .pfd-menu-overlay { display: none; }
/* v1.52.0 — bouton Tutoriels : caché sur bureau (l'onglet est dans la barre), visible sur mobile à côté du bouton Menu. */
.pfd-tuto-btn { display: none; }
/* v1.53.0 — badge « vidéo vue » dans l'onglet Tutoriels. */
.pfd-vu-badge {
  display: inline-block; margin-left: 8px; padding: 2px 10px;
  background: #1b7a3e; color: #fff; border-radius: 999px;
  font-size: .8rem; font-weight: 700; vertical-align: middle;
}
/* v1.54.0 — sections de tutoriels par public (Pour tous / Parents / Joueurs / Staff). */
.pfd-tuto-section { margin: 1.1em 0 .3em; font-size: 1.05rem; }
.pfd-tuto h5 { font-size: 1rem; margin: 0 0 .35em; }
/* v1.54.1 — mention « section vide » (visible par l'admin seulement). */
.pfd-tuto-vide { color: #666; font-style: italic; margin: 0 0 1em; }
@media (max-width: 640px) {
  .pfd-tabs { display: none; }
  .pfd-menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 12px 0 4px; padding: 10px 18px;
    background: #0c3b5d; color: #fff; border: none; border-radius: 999px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
  }
  /* v1.52.0 — bouton Tutoriels à côté du bouton Menu sur mobile. */
  .pfd-tuto-btn {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 12px 0 4px 8px; padding: 10px 18px;
    background: #1b7a3e; color: #fff !important; border-radius: 999px;
    font-size: 1rem; font-weight: 700; text-decoration: none !important;
  }
  .pfd-menu-overlay {
    display: none; position: fixed; inset: 0; z-index: 99999;
    background: #0c3b5d; color: #fff; flex-direction: column;
  }
  .pfd-menu-overlay.pfd-open { display: flex; }
  .pfd-menu-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.18);
  }
  .pfd-menu-title { font-size: 1.15rem; font-weight: 700; }
  .pfd-menu-close {
    background: rgba(255,255,255,.12); color: #fff; border: none;
    width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
  }
  .pfd-menu-list { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 12px 24px; }
  .pfd-menu-link {
    display: block; padding: 13px 14px; margin: 2px 0; border-radius: 10px;
    color: #fff; text-decoration: none; font-size: 1.02rem;
  }
  .pfd-menu-link:active { background: rgba(255,255,255,.12); }
  .pfd-menu-active { background: rgba(255,255,255,.16); font-weight: 700; }
}

/* --- Assignation de rôle depuis le profil membre (v1.41.0) --- */
.pfd-assign-role { background: #f4f7fb; border: 1px solid #d8e0e8; border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
.pfd-assign-role form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.pfd-assign-role select { padding: 8px 10px; border-radius: 8px; border: 1px solid #c9d4e0; max-width: 100%; }
.pfd-assign-role .pfd-saved { margin: 6px 0 0; }

/* --- Recherche joueur / membre + ajout au groupe (v1.42.0) --- */
/* v1.67.0 — la règle .pfd-search-form select vit plus haut (avec flex et max-width) ; pas de doublon ici. */
.pfd-add-group { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.pfd-add-group select { padding: 7px 10px; border-radius: 8px; border: 1px solid #c9d4e0; max-width: 100%; }

/* ============================================================
 * v2.0.12 — Refonte mobile (accueil + espace membre)
 * ============================================================ */

/* --- Actions rapides (grille) --- */
.pfd-actions-rapides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 16px; }
.pfd-action { background: #fff; border: 1px solid #e3ece5; border-radius: 16px; box-shadow: 0 2px 10px rgba(20,60,35,.05); padding: 14px 4px 10px; text-align: center; text-decoration: none !important; color: #14532d; font-size: .72rem; font-weight: 600; display: block; }
.pfd-action-ic { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.pfd-action:active { transform: scale(.96); }

/* --- Carte d'événement avec badge de date --- */
.pfd-ev-card { display: flex; gap: 14px; align-items: flex-start; }
.pfd-ev-badge { flex: 0 0 auto; width: 54px; text-align: center; background: #e8f5ec; border-radius: 12px; padding: 8px 0; }
.pfd-ev-badge b { display: block; font-size: 1.25rem; color: #14532d; line-height: 1.1; }
.pfd-ev-badge span { font-size: .68rem; text-transform: uppercase; color: #1b7a3e; font-weight: 700; }
.pfd-ev-contenu { flex: 1; min-width: 0; }

/* --- Carte QR en bandeau --- */
.pfd-qr-bandeau { display: flex; gap: 16px; align-items: center; }
.pfd-qr-code { flex: 0 0 auto; }
.pfd-qr-code img, .pfd-qr-code canvas { display: block; border-radius: 8px; }
.pfd-qr-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pfd-qr-meta strong { font-size: 1rem; color: #14532d; }
.pfd-qr-aide { font-size: .8rem; color: #6b7d70; }

/* --- Espace membre : en-tête appli + carte QR en bandeau (mobile) --- */
@media (max-width: 768px) {
    .pfd-espace { padding: 0 0 24px; }
    .pfd-espace-head {
        background: linear-gradient(160deg, #0e3a20 0%, #1b7a3e 100%);
        border-radius: 0 0 26px 26px;
        padding: 20px 18px 34px;
        margin-bottom: 0;
        justify-content: flex-start;
    }
    .pfd-espace-id { background: transparent; border: none; box-shadow: none; padding: 0; }
    .pfd-espace-bonjour { color: rgba(255,255,255,.75); }
    .pfd-espace-name { color: #fff; font-size: 1.15rem; }
    .pfd-espace-role { color: #c9e8d2; }
    .pfd-espace-head .pfd-btn { background: rgba(255,255,255,.15); color: #fff; border: none; }
    #pfd-ma-carte {
        margin: -22px 14px 14px;
        position: relative;
        z-index: 2;
        border-radius: 18px;
        padding: 14px 16px;
    }
    #pfd-ma-carte h3 { font-size: .85rem; margin-bottom: 10px; }
    #pfd-ma-carte .pfd-qr-code img, #pfd-ma-carte .pfd-qr-code canvas { width: 110px !important; height: 110px !important; }
    #pfd-ma-carte .pfd-qr-aide { display: none; }
    .pfd-espace > .pfd-espace-section { margin-left: 14px; margin-right: 14px; }
    .pfd-actions-rapides { margin-left: 14px; margin-right: 14px; }
    .pfd-espace-tabs { margin: 0 14px; overflow-x: auto; }
}

/* --- Navigation basse : bouton Scanner central --- */
#pfd-bottom-nav .pfd-bn-fab {
    flex: 0 0 auto;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #1b7a3e;
    margin: -24px 6px 0;
    box-shadow: 0 6px 16px rgba(27,122,62,.4);
    border: 4px solid #f4f7f5;
    align-items: center;
    justify-content: center;
    padding: 0;
}
#pfd-bottom-nav .pfd-bn-fab .pfd-bn-icon { font-size: 1.6rem; }
#pfd-bottom-nav .pfd-bn-fab:active { transform: scale(.94); }

/* --- Accueil mobile : polish + cartes programmes + CTA fixe --- */
@media (max-width: 768px) {
    body.home .elementor-173 h1 { font-size: 2rem !important; line-height: 1.15 !important; }
    body.home .elementor-button { padding: 14px 28px !important; font-size: 1rem !important; }
}
.pfd-prog-accueil { padding: 8px 0 4px; }
.pfd-prog-accueil h2 { text-align: center; color: #14532d; font-size: 1.3rem; margin: 18px 0 4px; }
.pfd-prog-accueil .pfd-prog-sous { text-align: center; color: #6b7d70; font-size: .88rem; margin-bottom: 14px; }
.pfd-prog-liste { display: flex; gap: 12px; overflow-x: auto; padding: 4px 18px 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.pfd-prog-liste::-webkit-scrollbar { width: 0; }
.pfd-prog-carte { scroll-snap-align: start; flex: 0 0 230px; border-radius: 18px; padding: 20px 18px; color: #fff; text-decoration: none !important; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 4px 18px rgba(20,60,35,.12); }
.pfd-prog-carte .pfd-pc-emoji { font-size: 2rem; margin-bottom: auto; }
.pfd-prog-carte h3 { color: #fff !important; font-size: 1.05rem; margin: 0 0 4px; }
.pfd-prog-carte p { font-size: .82rem; opacity: .9; margin: 0; }
.pfd-pc-1 { background: linear-gradient(150deg, #14532d, #2c9e58); }
.pfd-pc-2 { background: linear-gradient(150deg, #0b3d5c, #2b8fc4); }
.pfd-pc-3 { background: linear-gradient(150deg, #5c3a0b, #d99a2b); }
.pfd-pc-4 { background: linear-gradient(150deg, #4a0b5c, #9b4dca); }
@media (min-width: 769px) {
    .pfd-prog-liste { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1080px; margin: 0 auto; overflow: visible; }
    .pfd-prog-carte { flex: none; }
}
#pfd-sticky-cta { display: none; }
@media (max-width: 768px) {
    body.home #pfd-sticky-cta {
        display: block;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 9997;
        background: rgba(255,255,255,.97);
        border-top: 1px solid #e3ece5;
        padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
        backdrop-filter: blur(6px);
    }
    body.home #pfd-sticky-cta a {
        display: block; text-align: center;
        background: #1b7a3e; color: #fff !important;
        font-weight: 700; text-decoration: none !important;
        border-radius: 999px; padding: 13px;
    }
    body.home { padding-bottom: 76px; }
}

/* ============================================================
 * v2.0.13 — CTA inscription visible dès la connexion
 * (nouveaux membres : aucun dossier joueur lié).
 * ============================================================ */
.pfd-cta-nouveau {
    background: linear-gradient(150deg, #14532d, #1b7a3e);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    box-shadow: 0 4px 18px rgba(20,60,35,.12);
}
.pfd-cta-nouveau-txt { flex: 1; min-width: 0; }
.pfd-cta-nouveau-txt strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.pfd-cta-nouveau-txt span { font-size: .88rem; opacity: .9; }
.pfd-btn-cta { background: #fff !important; color: #14532d !important; font-size: 1rem; padding: 13px 26px; white-space: nowrap; }
@media (max-width: 768px) {
    .pfd-cta-nouveau { margin: 14px 14px 16px; }
    .pfd-cta-nouveau + #pfd-ma-carte { margin-top: 14px; }
}
