/* ════════════════════════════════════════════════════
   Ducklics Club Manager — Front-end
   Variables pilotées par les réglages du club (couleurs)
   ════════════════════════════════════════════════════ */
.dcm-match-card,
.dcm-matches-list,
.dcm-standings,
.dcm-grid,
.dcm-partners-flex,
.dcm-team-card,
.dcm-partners-grid {
	--dcm-primary: #0a3d62;
	--dcm-accent: #e58e26;
	font-family: inherit;
	box-sizing: border-box;
}
.dcm-match-card *, .dcm-standings *, .dcm-team-grid *, .dcm-player-grid *, .dcm-partners-grid * { box-sizing: border-box; }

/* ── Carte de match ─────────────────────────────── */
.dcm-match-card {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 18px 20px; margin-bottom: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.dcm-match-card__teams { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.dcm-match-card__logo { width: 40px; height: 40px; object-fit: contain; }
.dcm-match-card__team { font-weight: 700; font-size: 16px; color: var(--dcm-primary); }
.dcm-match-card__vs { color: #94a3b8; font-size: 14px; font-style: italic; padding: 0 4px; }
.dcm-match-card__score { font-size: 22px; font-weight: 800; color: var(--dcm-primary); background: #f1f5f9; border-radius: 8px; padding: 2px 14px; }
.dcm-match-card__meta { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: #64748b; }

/* ── Badges résultats ───────────────────────────── */
.dcm-badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.dcm-badge--win { background: #d1fae5; color: #065f46; }
.dcm-badge--draw { background: #fef3c7; color: #92400e; }
.dcm-badge--loss { background: #fee2e2; color: #991b1b; }
.dcm-badge--not_played { background: #f1f5f9; color: #64748b; }

/* ── Classement ─────────────────────────────────── */
.dcm-standings { width: 100%; border-collapse: collapse; font-size: 14px; }
.dcm-standings th { background: var(--dcm-primary); color: #fff; padding: 10px 8px; text-align: center; font-weight: 600; }
.dcm-standings th.dcm-standings__club, .dcm-standings td.dcm-standings__club { text-align: left; }
.dcm-standings td { padding: 9px 8px; text-align: center; border-bottom: 1px solid #f1f5f9; }
.dcm-standings tr:nth-child(even) { background: #f8fafc; }
.dcm-standings__own { background: var(--dcm-accent) !important; color: #fff; font-weight: 700; }
.dcm-standings__own td { color: #fff; }
.dcm-standings__pts { font-weight: 800; }

/* ── Grille équipes ─────────────────────────────── */
/* Conteneur de grille générique : les colonnes/gap viennent des contrôles Elementor.
   Fallback pour shortcodes (sans Elementor) : grille auto-fill. */
.dcm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }

/* Carte équipe */
.dcm-team-card { display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; }
.dcm-team-card__img { width: 100%; height: 140px; object-fit: cover; display: block; }
.dcm-team-card__info { padding: 14px; text-align: center; }
.dcm-team-card__name { display: block; font-weight: 700; color: var(--dcm-primary); }
.dcm-team-card__cat, .dcm-team-card__type { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }

/* ── Carte joueur ───────────────────────────────── */
.dcm-player-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; text-align: center; }
.dcm-player-card__photo { position: relative; background: linear-gradient(135deg, var(--dcm-primary), #1e5a8a); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.dcm-player-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.dcm-player-card__placeholder { font-size: 48px; opacity: .5; }
.dcm-player-card__number { position: absolute; top: 8px; right: 8px; background: var(--dcm-accent); color: #fff; font-weight: 800; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.dcm-player-card__info { padding: 12px; }
.dcm-player-card__name { display: block; font-weight: 700; color: var(--dcm-primary); }
.dcm-player-card__pos, .dcm-player-card__nat { display: block; font-size: 12px; color: #64748b; }

/* ── Partenaires ────────────────────────────────── */
.dcm-partners-flex { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; }
.dcm-partners-grid { align-items: center; justify-items: center; }
.dcm-partner-logo { display: flex; align-items: center; justify-content: center; padding: 8px; transition: transform .2s, filter .2s; }
.dcm-partner-logo:hover { transform: scale(1.05); }
.dcm-partners-gray-yes .dcm-partner-logo { filter: grayscale(1); opacity: .75; }
.dcm-partners-gray-yes .dcm-partner-logo:hover { filter: grayscale(0); opacity: 1; }
.dcm-partner-logo img { max-width: 140px; max-height: 70px; object-fit: contain; }
.dcm-partner-logo__name { font-weight: 600; color: var(--dcm-primary); }

/* ── États vides ────────────────────────────────── */
.dcm-empty, .dcm-widget-empty { color: #94a3b8; font-style: italic; text-align: center; padding: 20px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; }

@media (max-width: 600px) {
	.dcm-standings { font-size: 12px; }
	.dcm-standings th, .dcm-standings td { padding: 6px 4px; }
	.dcm-match-card__team { font-size: 14px; }
}

/* ════════════════════════════════════════════════════
   Templates front-end (single & archive) — Étape 8
   ════════════════════════════════════════════════════ */
.dcm-page.dcm-container { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.dcm-page { --dcm-primary: #0a3d62; --dcm-accent: #e58e26; }

/* En-têtes */
.dcm-team-header, .dcm-partner-header, .dcm-person-header { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.dcm-team-header__photo img, .dcm-person-header__photo img { border-radius: 12px; max-width: 240px; height: auto; }
.dcm-partner-header__logo img { max-width: 160px; height: auto; }
.dcm-team-header__title, .dcm-comp-header h1, .dcm-archive-header h1, .dcm-album-header h1 { color: var(--dcm-primary); margin: 0 0 8px; }
.dcm-team-header__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.dcm-comp-header, .dcm-album-header, .dcm-archive-header { margin-bottom: 24px; }

/* Tags / étiquettes */
.dcm-tag { display: inline-block; background: var(--dcm-primary); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 12px; }
.dcm-tag--type { background: var(--dcm-accent); }

/* Sections */
.dcm-team-section { margin: 28px 0; }
.dcm-team-section h2 { color: var(--dcm-primary); border-bottom: 2px solid var(--dcm-accent); padding-bottom: 6px; display: inline-block; margin-bottom: 16px; }

/* Entraînements */
.dcm-training-list { list-style: none; padding: 0; margin: 0; }
.dcm-training-list li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }

/* Détails (lieu, homme du match…) */
.dcm-match-single__details, .dcm-person-meta { display: flex; gap: 24px; flex-wrap: wrap; margin: 16px 0; }
.dcm-detail { display: flex; flex-direction: column; }
.dcm-detail__label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; }
.dcm-match-single__comp { display: block; text-align: center; color: #64748b; font-size: 14px; margin-bottom: 12px; }

/* Bouton */
.dcm-button { display: inline-block; background: var(--dcm-accent); color: #fff !important; text-decoration: none; padding: 10px 22px; border-radius: 8px; font-weight: 600; transition: opacity .2s; }
.dcm-button:hover { opacity: .9; }

/* Galerie */
.dcm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.dcm-gallery__img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }
.dcm-gallery__link { display: block; overflow: hidden; border-radius: 8px; }
.dcm-album-video { margin: 16px 0; }
.dcm-album-video iframe { max-width: 100%; }

/* Grille albums */
.dcm-album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.dcm-album-grid__item { text-decoration: none; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; display: block; }
.dcm-album-grid__item img { width: 100%; height: 150px; object-fit: cover; }
.dcm-album-grid__title { display: block; padding: 12px; font-weight: 600; color: var(--dcm-primary); }

/* Liens d'équipe en archive (l'item devient cliquable) */

/* ── Formes d'image (pilotées par les contrôles Elementor) ── */
.dcm-imgshape-square .dcm-player-card__photo,
.dcm-imgshape-square .dcm-player-card__photo img,
.dcm-imgshape-square .dcm-team-card__img { border-radius: 0 !important; }
.dcm-imgshape-circle .dcm-player-card__photo,
.dcm-imgshape-circle .dcm-team-card__img { border-radius: 50% !important; aspect-ratio: 1 / 1; }
.dcm-imgshape-circle .dcm-player-card__photo img { border-radius: 50% !important; }

/* La photo joueur en cercle : recadrer proprement */
.dcm-imgshape-circle .dcm-player-card { background: transparent; border: none; box-shadow: none; }
