/* Pages de texte (13/11) : qui sommes-nous, mentions légales, charte éditoriale, sources des données.
   Même vocabulaire que la page ville D1 : bande de titre, filet jaune au-dessus des titres, une idée par bloc.
   Identité : bleu #1F4FA3, nuit #14213D, jaune #F5C400, relief #DCE6F2, brume #F1F5FA, Overpass. */
.pt{--pt-ligne:#D5DEEA;color:var(--nuit)}
.pt-tete{background:var(--brume);padding:34px 0 40px;border-bottom:1px solid var(--pt-ligne)}
.pt-tete h1{font-size:clamp(32px,4.2vw,50px);line-height:1.04;letter-spacing:-.03em;font-weight:900;max-width:20ch;text-wrap:balance}
.pt-tete h1::before{content:"";display:block;width:56px;height:6px;border-radius:2px;background:var(--jaune);margin-bottom:18px}
.pt-chapo{font-size:20px;line-height:1.45;color:var(--gris);max-width:56ch;margin-top:14px;text-wrap:pretty}
.pt-grille{display:grid;grid-template-columns:240px minmax(0,1fr);gap:64px;align-items:start;padding-top:48px;padding-bottom:72px}
.pt-grille.pt-seule{grid-template-columns:minmax(0,1fr)}
.pt-seule .pt-texte{margin:0 auto;width:100%;max-width:760px}

/* Le plan de la page, à gauche ; il suit la lecture */
.pt-plan{position:sticky;top:20px;font-size:15px}
.pt-plan p{font-weight:800;margin-bottom:10px}
.pt-plan ol{list-style:none;padding:0;margin:0;border-left:2px solid var(--relief)}
.pt-plan a{display:block;padding:7px 0 7px 14px;margin-left:-2px;border-left:2px solid transparent;color:var(--nuit);text-decoration:none;line-height:1.3}
.pt-plan a:hover{border-left-color:var(--jaune);color:var(--bleu)}

/* Le texte : une colonne de lecture, des titres qui respirent */
.pt-texte{max-width:760px;font-size:18px;line-height:1.65}
.pt-texte>*{margin:0}
.pt-texte>*+*{margin-top:16px}
.pt-texte h2{font-size:28px;line-height:1.15;letter-spacing:-.02em;font-weight:900;margin-top:52px;scroll-margin-top:20px;text-wrap:balance}
.pt-texte h2::before{content:"";display:block;width:40px;height:5px;border-radius:2px;background:var(--jaune);margin-bottom:14px}
.pt-texte>h2:first-child{margin-top:0}
.pt-texte h3{font-size:21px;font-weight:800;margin-top:32px}
.pt-texte h2+*,.pt-texte h3+*{margin-top:12px}
.pt-texte p,.pt-texte li{max-width:68ch;text-wrap:pretty}
.pt-texte ul,.pt-texte ol{padding-left:0;list-style:none;display:grid;gap:10px}
.pt-texte ul>li{position:relative;padding-left:22px}
.pt-texte ul>li::before{content:"";position:absolute;left:2px;top:.62em;width:9px;height:9px;border-radius:2px;background:var(--bleu)}
.pt-texte a{color:var(--bleu);font-weight:700;text-decoration:underline;text-decoration-color:var(--jaune);text-decoration-thickness:2px;text-underline-offset:4px;border:0}
.pt-texte a:hover{text-decoration-color:var(--bleu)}
.pt-texte :focus-visible{outline:3px solid var(--bleu);outline-offset:3px;border-radius:4px}

/* Point clé : un encadré */
.pt-cle{background:var(--brume);border-left:6px solid var(--jaune);border-radius:0 12px 12px 0;padding:18px 22px;margin-top:24px!important}
.pt-cle>*+*{margin-top:8px}
.pt-cle b:first-child{display:block;font-size:17px}
.pt-nuit{background:var(--nuit);color:#fff;border-left-color:var(--jaune)}
.pt-nuit a{color:#fff}

/* Fiche d'identité (mentions légales) */
.pt-fiche{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:0 24px;border:1px solid var(--pt-ligne);border-radius:12px;padding:6px 20px;font-size:16px;margin-top:20px!important}
.pt-fiche dt,.pt-fiche dd{padding:10px 0;border-bottom:1px solid var(--relief);margin:0}
.pt-fiche dt{font-weight:800}
.pt-fiche dt:last-of-type,.pt-fiche dd:last-of-type{border-bottom:0}

/* Tableau lisible : colonnes à largeur tenue, puis des cartes empilées sous 700 px */
.pt-texte.pt-large{max-width:none}
.pt-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:15px;line-height:1.45;margin-top:8px}
.pt-table th{text-align:left;font-weight:800;font-size:14px;padding:10px 14px;background:var(--nuit);color:#fff;vertical-align:bottom}
.pt-table th:first-child{border-radius:10px 0 0 0}.pt-table th:last-child{border-radius:0 10px 0 0}
.pt-table td{padding:14px;border-bottom:1px solid var(--pt-ligne);vertical-align:top;text-align:left;hyphens:none}
.pt-table tbody tr:nth-child(even) td{background:var(--brume)}
.pt-table td:first-child{font-weight:800;font-size:16px}
.pt-table .nb{font-variant-numeric:tabular-nums;white-space:normal;text-align:left}
.pt-table .col-1{width:17%}.pt-table .col-2{width:17%}.pt-table .col-3{width:25%}.pt-table .col-4{width:150px}.pt-table .col-5{width:auto}
.pt-table td[data-t="Relevé"]{white-space:nowrap}
.pt-table td,.pt-table th{word-break:normal;overflow-wrap:normal}
.pt-source{font-size:14px;color:var(--gris)}

/* page à tableau : pas de colonne de plan, le plan passe au-dessus et le tableau prend toute la largeur */
.pt-grille:has(.pt-large){grid-template-columns:minmax(0,1fr);gap:28px;padding-top:28px;padding-bottom:56px}
.pt-grille:has(.pt-large) .pt-plan{position:static;background:var(--brume);border-radius:12px;padding:14px 18px}
.pt-grille:has(.pt-large) .pt-plan ol{border:0;display:flex;flex-wrap:wrap;gap:6px 8px}
.pt-grille:has(.pt-large) .pt-plan a{border:1px solid var(--pt-ligne);border-radius:999px;background:#fff;padding:7px 14px;margin:0;font-weight:700;font-size:14px}
.pt-grille:has(.pt-large) .pt-plan a:hover{border-color:var(--bleu)}
@media (max-width:1000px){
  .pt-grille{grid-template-columns:minmax(0,1fr);gap:28px;padding-top:28px;padding-bottom:56px}
  .pt-plan{position:static;background:var(--brume);border-radius:12px;padding:14px 18px}
  .pt-plan ol{border:0;display:flex;flex-wrap:wrap;gap:6px 8px}
  .pt-plan a{border:1px solid var(--pt-ligne);border-radius:999px;background:#fff;padding:7px 14px;margin:0;font-weight:700;font-size:14px}
  .pt-plan a:hover{border-color:var(--bleu)}
}
@media (max-width:700px){
  .pt-tete{padding:22px 0 26px}
  .pt-tete h1::before{width:44px;height:5px;margin-bottom:14px}
  .pt-chapo{font-size:17px}
  .pt-texte{font-size:17px;line-height:1.6}
  .pt-texte h2{font-size:23px;margin-top:40px}
  .pt-fiche{grid-template-columns:minmax(0,1fr);padding:4px 16px}
  .pt-fiche dt{border-bottom:0;padding-bottom:0}
  .pt-fiche dd{padding-top:2px}
}
@media (max-width:1100px){
  /* le tableau devient une pile de cartes : chaque cellule porte son intitulé (data-t) */
  .pt-table,.pt-table tbody,.pt-table tr,.pt-table td{display:block;width:auto}
  .pt-table thead{position:absolute;left:-9999px}
  .pt-table tr{border:1px solid var(--pt-ligne);border-radius:12px;padding:6px 16px 10px;margin-top:12px;background:#fff}
  .pt-table tbody tr:nth-child(even) td{background:none}
  .pt-table td{border:0;padding:8px 0 0;font-size:15px}
  .pt-table td:first-child{font-size:19px;padding:8px 0 6px;border-bottom:3px solid var(--jaune)}
  .pt-table td[data-t]:not(:first-child)::before{content:attr(data-t);display:block;font-size:12px;font-weight:800;color:var(--bleu);margin-bottom:1px}
}

/* Pages de service (contact, avis, recherche, page introuvable, mon programme) : même bande de titre, sans changer leur code */
.tete-page,.titre-page{background:var(--brume);box-shadow:0 0 0 100vmax var(--brume);clip-path:inset(0 -100vmax);padding-top:34px;padding-bottom:40px;border:0;margin-bottom:8px}
.tete-page h1,.titre-page h1{font-size:clamp(32px,4.2vw,50px);line-height:1.04;letter-spacing:-.03em;font-weight:900;max-width:22ch;text-wrap:balance}
.tete-page h1::before,.titre-page h1::before{content:"";display:block;width:56px;height:6px;border-radius:2px;background:var(--jaune);margin-bottom:18px}
.tete-page .chapo,.titre-page .chapo{font-size:20px;line-height:1.45;color:var(--gris);max-width:56ch;margin-top:14px}
.sortie.demandes a{border:1px solid #D5DEEA;border-radius:14px;padding:20px 22px;background:#fff;box-shadow:0 3px 0 var(--relief)}
.sortie.demandes a:hover{border-color:var(--bleu);box-shadow:0 3px 0 var(--bleu);background:#fff}
.sortie.demandes b{color:var(--bleu)}
/* Liens de fin et liste d'articles (page auteur) */
.pt-texte ul.pt-liens{display:flex;flex-wrap:wrap;gap:8px 12px}
.pt-texte ul.pt-liens li{padding:0}.pt-texte ul.pt-liens li::before{display:none}
.pt-liens a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid var(--pt-ligne);border-radius:999px;text-decoration:none!important;background:#fff}
.pt-liens a:hover{border-color:var(--bleu)}
.pt-texte ul.pt-fil{gap:0}
.pt-texte ul.pt-fil li{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;align-items:baseline;padding:12px 0;border-bottom:1px solid var(--pt-ligne);max-width:none}
.pt-texte ul.pt-fil li::before{display:none}
.pt-fil time{font-size:14px;font-weight:800;color:var(--bleu)}
.pt-fil h3{margin:0;font-size:18px;line-height:1.3}
.pt-fil h3 a{color:var(--nuit);text-decoration:none}
.pt-fil h3 a:hover{color:var(--bleu);text-decoration:underline}
@media (max-width:700px){
  .tete-page,.titre-page{padding-top:22px;padding-bottom:26px}
  .tete-page .chapo,.titre-page .chapo{font-size:17px}
}
.tete-page+.bloc,.tete-page+section,.cadre:has(>.titre-page)+*{border-top:0}
/* « C'est mon club » : formulaire de la fiche (pages/ma-fiche.php) */
.fiche-club-form fieldset{border:0;border-top:2px solid var(--relief,#DCE6F2);padding:16px 0 0;margin:6px 0 0;display:grid;gap:16px;min-width:0}
.fiche-club-form legend{font-weight:900;font-size:var(--t-lg,20px);padding:0 10px 0 0}
.fiche-club-form .cases{display:flex;flex-wrap:wrap;gap:6px 18px}
.formulaire .case{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:9px 0;font-weight:600;line-height:1.4;cursor:pointer}
.formulaire .case input{flex:none;width:22px;height:22px;min-height:0;margin:1px 0 0;accent-color:var(--bleu,#1F4FA3)}
.fiche-club-form .champ.court{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.fiche-club-form .champ.court label{margin:0;flex:1 1 100%}
.fiche-club-form .champ.court input{width:120px}
.fiche-club-form .champ.court select{width:auto}
.formulaire details summary{cursor:pointer;font-weight:800;min-height:44px;display:flex;align-items:center}
