/* Page dédiée d'un professionnel ou d'un club (/pros/<slug>, /clubs/<slug>). Maquette : docs/maquettes/page-pro.
   Charte : rouge #a51e16, texte #171717, fond de page du site, cartes blanches à bord #e1e1e1 et angles de 14 px. */
.cn-pro, .cn-team { --cn-pro-red: #a51e16; --cn-pro-red-dark: #86150f; --cn-pro-line: #e1e1e1; --cn-pro-muted: #6b6b6b; --cn-pro-stick: 88px; padding-bottom: 56px; }
.cn-pro a { text-decoration: none; }
.cn-pro h1, .cn-pro h2 { color: #212121; font-weight: 700; }
.cn-pro-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border-radius: 8px; background: var(--cn-pro-red); color: #fff; font-weight: 700; border: 1px solid var(--cn-pro-red); font-size: 14px; cursor: pointer; }
.cn-pro-btn:hover { background: var(--cn-pro-red-dark); color: #fff; }
.cn-pro-btn--ghost { background: #fff; color: var(--cn-pro-red); }
.cn-pro-btn--ghost:hover { background: #fbeae7; color: var(--cn-pro-red); }
.cn-pro-btn--sm { min-height: 40px; padding: 0 16px; }
.cn-pro a:focus-visible, .cn-pro button:focus-visible, .cn-pro input:focus-visible, .cn-pro textarea:focus-visible, .cn-pro select:focus-visible { outline: 3px solid #1b4fd8; outline-offset: 2px; }

/* Bannière collée sous le bandeau du site, logo à cheval dessus */
.cn-pro-cover { position: relative; aspect-ratio: 4.44 / 1; border-radius: 0 0 14px 14px; background: linear-gradient(135deg, #cfc8b8, #a9a190); }
.cn-pro-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 0 14px 14px; }
.cn-pro-logo { position: absolute; left: 24px; bottom: -56px; width: 112px; height: 112px; background: #fff; border: 1px solid var(--cn-pro-line); border-radius: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); overflow: hidden; z-index: 2; }
.cn-pro-logo img { width: 100%; height: 100%; object-fit: contain; }

/* Grille : en-tête, présentation, annonces, suite en pleine largeur ; colonne de droite collante par-dessus la bannière */
.cn-pro-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 32px; align-items: start; }
.cn-pro-head { grid-column: 1; grid-row: 1; min-width: 0; }
.cn-pro-main { grid-column: 1; grid-row: 2; min-width: 0; }
.cn-pro-ads { grid-column: 1; grid-row: 3; min-width: 0; }
.cn-pro-rest { grid-column: 1 / 3; grid-row: 4; min-width: 0; }
.cn-pro-side { grid-column: 2; grid-row: 1 / 4; margin-top: -108px; position: relative; z-index: 3; align-self: stretch; }
.cn-pro-cols--solo { grid-template-columns: minmax(0, 1fr); }
.cn-pro-cols--solo .cn-pro-rest { grid-column: 1; }

.cn-pro-tabs { display: flex; gap: 4px; margin: 0 0 0 144px; border-bottom: 1px solid var(--cn-pro-line); overflow-x: auto; }
.cn-pro-tabs a { padding: 14px 16px; font-weight: 600; color: #3d3d3d; border-bottom: 3px solid transparent; white-space: nowrap; min-height: 44px; }
.cn-pro-tabs a.on, .cn-pro-tabs a:hover { color: var(--cn-pro-red); }
.cn-pro-tabs a.on { border-color: var(--cn-pro-red); }
.cn-pro-hero { padding: 28px 0 24px; }
.cn-pro-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cn-pro-red); }
.cn-pro-hero h1 { font-size: 26px; line-height: 1.25; margin: 4px 0 8px; }
.cn-pro-lead { font-size: 15px; line-height: 1.55; color: #3d3d3d; margin: 0; max-width: 70ch; }
.cn-pro-actions { display: none; }

.cn-pro-main h2, .cn-pro-ads h2, .cn-pro-rest h2 { font-size: 18px; margin: 28px 0 12px; }
.cn-pro-main h2:first-child { margin-top: 8px; }
.cn-pro-presrow { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; }
.cn-pro-about { background: #fff; border: 1px solid var(--cn-pro-line); border-radius: 14px; padding: 20px 24px; color: #3d3d3d; font-size: 15px; line-height: 1.6; position: relative; }
.cn-pro-about.is-clamped { max-height: 9.2em; overflow: hidden; }
.cn-pro-about.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.6em; background: linear-gradient(transparent, #fff); }
.cn-pro-more { margin: 8px 0 0; }
.cn-pro-more button { font: inherit; font-weight: 700; text-decoration: underline; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.cn-pro-facts { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 1px solid var(--cn-pro-line); display: grid; gap: 14px; align-content: start; font-size: 14px; color: #3d3d3d; }
.cn-pro-facts li { display: flex; gap: 10px; align-items: flex-start; }
.cn-pro-facts svg { flex: none; color: var(--cn-pro-muted); margin-top: 1px; }
.cn-pro-legal { margin: 20px 0 4px; font-size: 14px; color: #3d3d3d; }
.cn-pro-legal .ok { color: #1f6b3a; font-weight: 600; }
.cn-pro-site { margin: 8px 0 0; }
.cn-pro-ext { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: underline !important; min-height: 44px; color: #212121; }
.cn-pro-stags { display: flex; flex-wrap: wrap; gap: 8px; }
.cn-pro-stags a { background: #ece8df; border-radius: 6px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: #3d3d3d; }
.cn-pro-stags a:hover { color: var(--cn-pro-red); }
.cn-pro-txt { margin: 0; color: #3d3d3d; font-size: 15px; line-height: 1.6; }
.cn-pro-minimap { width: 50%; min-width: 260px; height: 180px; border-radius: 14px; overflow: hidden; border: 1px solid var(--cn-pro-line); margin-top: 12px; z-index: 0; }
.cn-pro-addr-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 12px 0 0; }
.cn-pro-soc { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.cn-pro-soc a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: #fff; border: 1px solid #d7d0c5; border-radius: 999px; font-weight: 600; font-size: 14px; color: #212121; }
.cn-pro-soc a:hover { border-color: var(--cn-pro-red); color: var(--cn-pro-red); }

.cn-pro-ads { padding-top: 24px; }
.cn-pro-ads h2 { margin-top: 28px; }
.cn-pro-badge { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #e9f3ec; color: #1f6b3a; border-radius: 999px; padding: 3px 10px; vertical-align: middle; }
.cn-pro-sort { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: -8px 0 12px; font-size: 13px; color: var(--cn-pro-muted); }
.cn-pro-sort select { border: 1px solid #958b7d; border-radius: 8px; padding: 6px 10px; background: #fff; min-height: 40px; }
.cn-pro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cn-pro-grid > div > * { height: 100%; }
.cn-pro-note { font-size: 12px; color: var(--cn-pro-muted); margin: 12px 0 0; }

.cn-pro-phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0 12px; }
.cn-pro-phead h2 { margin: 0 !important; }
.cn-pro-mos { display: grid; gap: 8px; height: 270px; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.cn-pro-mos button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #d7d0c5; cursor: pointer; min-height: 0; }
.cn-pro-mos button:first-child { grid-row: 1 / 3; }
.cn-pro-mos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-pro-mos button:hover { filter: brightness(.96); }
.cn-pro-mos--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.cn-pro-mos--2 { grid-template-rows: 1fr; }
.cn-pro-mos--2 button:first-child { grid-row: auto; }
.cn-pro-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cn-pro-chip { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid #d7d0c5; border-radius: 999px; padding: 8px 16px; font-weight: 600; min-height: 44px; color: #212121; }
.cn-pro-chip i { font-style: normal; font-weight: 500; color: var(--cn-pro-muted); }
.cn-pro-chip:hover { border-color: var(--cn-pro-red); color: var(--cn-pro-red); }

/* Formulaire de contact collant : reste affiché pendant le défilement des annonces puis repart avec la page.
   88 px = hauteur du bandeau du site : à ajuster si le bandeau devient collant. */
.cn-pro-cf { position: sticky; top: var(--cn-pro-stick); background: #fff; border: 1px solid var(--cn-pro-line); border-radius: 14px; padding: 20px 22px; box-shadow: 0 12px 36px rgba(0, 0, 0, .16); }
.cn-pro-cf h2 { font-size: 18px; margin: 0 0 12px; }
.cn-pro-ctabs { display: flex; gap: 4px; border-bottom: 1px solid var(--cn-pro-line); margin: 12px 0 4px; }
.cn-pro-ctabs button { padding: 10px 14px; font-weight: 600; font-size: 14px; color: #3d3d3d; border: 0; border-bottom: 3px solid transparent; background: none; min-height: 44px; cursor: pointer; }
.cn-pro-ctabs .on { color: var(--cn-pro-red); border-color: var(--cn-pro-red); }
.cn-pro-cf label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.cn-pro-cf label span { font-weight: 400; color: var(--cn-pro-muted); }
.cn-pro-cf input:not([type=checkbox]), .cn-pro-cf textarea { width: 100%; font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid #958b7d; border-radius: 8px; background: #fff; color: #171717; min-height: 40px; }
.cn-pro-cf textarea { resize: vertical; min-height: 76px; }
.cn-pro-cf input:disabled, .cn-pro-cf textarea:disabled { background: #f4f2ec; }
.cn-pro-cf fieldset { border: 0; padding: 0; margin: 14px 0 0; }
.cn-pro-cf legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; float: none; width: auto; }
.cn-pro-cf .ck { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 0; min-height: 30px; font-size: 14px; }
.cn-pro-cf .ck input { width: 18px; height: 18px; min-height: 0; accent-color: var(--cn-pro-red); }
.cn-pro-cf .cn-pro-btn { width: 100%; margin-top: 16px; }
.cn-pro-cf .help { font-size: 12px; line-height: 1.4; color: var(--cn-pro-muted); margin: 10px 0 0; }
.cn-pro-phone { font-size: 20px; font-weight: 700; margin: 16px 0 4px; }
.cn-pro-phone a { color: #212121; }

@media (max-width: 1100px) {
    .cn-pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .cn-pro-cover { aspect-ratio: 16 / 7; }
    .cn-pro-logo { width: 72px; height: 72px; left: 16px; bottom: -36px; }
    .cn-pro-cols { grid-template-columns: 1fr; }
    .cn-pro-head, .cn-pro-side, .cn-pro-main, .cn-pro-ads, .cn-pro-rest { grid-column: 1; grid-row: auto; }
    .cn-pro-head { order: 1; } .cn-pro-side { order: 2; margin-top: 0; } .cn-pro-main { order: 3; } .cn-pro-ads { order: 4; } .cn-pro-rest { order: 5; }
    .cn-pro-tabs { margin: 44px 0 0; }
    .cn-pro-tabs a { padding: 14px 9px; font-size: 13px; }
    .cn-pro-hero h1 { font-size: 22px; }
    .cn-pro-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
    .cn-pro-actions .cn-pro-btn { padding: 0 8px; font-size: 13px; }
    .cn-pro-cf { position: static; box-shadow: none; }
    .cn-pro-main { margin-top: 24px; }
    .cn-pro-presrow { grid-template-columns: 1fr; }
    .cn-pro-facts { border-left: 0; border-top: 1px solid var(--cn-pro-line); padding: 14px 0 0; }
    .cn-pro-minimap { width: 100%; }
    .cn-pro-grid { grid-template-columns: 1fr; }
    .cn-pro-phead { flex-wrap: wrap; }
    .cn-pro-mos { height: 220px; }
}

/* Section « L'équipe » de la page (portraits ronds) */
.cn-pro-team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; text-align: center; }
.cn-pro-team li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cn-pro-team img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; background: #d7d0c5; }
.cn-pro-team b { font-size: 15px; }
.cn-pro-team span { font-size: 13px; color: #6b6b6b; }

/* Écran « Mon équipe » */
.cn-team { max-width: 760px; padding-top: 32px; padding-bottom: 56px; }
.cn-team h1 { font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.cn-team h2 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; }
.cn-team-intro { color: #171717; font-size: 15px; line-height: 1.55; }
.cn-team-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.cn-team-list li { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e1e1e1; border-radius: 14px; padding: 12px 16px; }
.cn-team-list img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.cn-team-list .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cn-team-list .who span { font-size: 13px; color: #6b6b6b; }
.cn-team-list .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cn-team-list .acts form { margin: 0; }
.cn-team-add { background: #fff; border: 1px solid #e1e1e1; border-radius: 14px; padding: 8px 24px 24px; margin-top: 24px; }
.cn-team-add .mb-3, .cn-team-add > form > div { margin-top: 12px; }
.cn-team-add label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cn-team .cn-team-add input[type=text], .cn-team .cn-team-add input[type=file] { width: 100%; font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid #958b7d; border-radius: 8px; background: #fff; min-height: 40px; height: auto; }
.cn-team-add input[type=checkbox] { width: 18px; height: 18px; accent-color: #a51e16; margin-right: 8px; vertical-align: middle; }
.cn-team-add .invalid-feedback, .cn-team-add ul li { color: #a51e16; font-size: 13px; }
.cn-team-add button[type=submit] { margin-top: 16px; }
@media (max-width: 820px) {
    .cn-pro-team { grid-template-columns: repeat(2, 1fr); }
    .cn-team-list li { flex-wrap: wrap; }
}

/* Évènements proches : pastille de date, titre, ville et distance */
.cn-pro-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.cn-pro-events li { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--cn-pro-line); border-radius: 14px; padding: 14px 18px; }
.cn-pro-events .d { flex: none; width: 56px; text-align: center; border-radius: 10px; background: #fbeae7; color: var(--cn-pro-red); font-weight: 800; line-height: 1.1; padding: 8px 0; }
.cn-pro-events .d small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.cn-pro-events h3 { margin: 0; font-size: 15px; font-weight: 700; }
.cn-pro-events h3 a { color: #212121; display: inline-flex; align-items: center; min-height: 44px; }
.cn-pro-events .sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cn-pro-events h3 a:hover { color: var(--cn-pro-red); }
.cn-pro-events .m { font-size: 13px; color: var(--cn-pro-muted); }
