/* Cartes FUT des joueurs */
.fut { --c1: #f6e7a8; --c2: #d9b65c; --c3: #f3e2a0; --c4: #e8cd7c; --txt: #3b2e12; --trait: rgba(59, 46, 18, .45); --ombre: #6b5420;
    position: relative; width: 100%; max-width: 300px; aspect-ratio: 300 / 420; container-type: inline-size; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45)); user-select: none; }
.fut::before { content: ''; position: absolute; inset: 0; clip-path: url(#fut-forme); background: var(--bord, #8c6d1f); }
.fut__fond { position: absolute; inset: 1.3%; clip-path: url(#fut-forme); background: linear-gradient(170deg, var(--c1) 0%, var(--c2) 54%, var(--c3) 54%, var(--c4) 100%); color: var(--txt); font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif; overflow: hidden; }
.fut__motif { position: absolute; left: 0; right: 0; top: 0; height: 54%; background: var(--motif-c, rgba(120, 90, 20, .22));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M11 6v10M6 11h10M33 28v10M28 33h10' stroke='%23000' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") 0 0 / 15cqw 15cqw repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M11 6v10M6 11h10M33 28v10M28 33h10' stroke='%23000' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") 0 0 / 15cqw 15cqw repeat; }
.fut__fond::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 45%, transparent 60%); pointer-events: none; }

.fut [hidden] { display: none !important; }
.fut__photo { position: absolute; left: 31%; top: 8%; width: 62%; height: 46%; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
.fut__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--px, 50%) var(--py, 20%); transform: scale(var(--zoom, 1)); transform-origin: var(--px, 50%) var(--py, 20%); }
.fut__silhouette { position: absolute; left: 6%; bottom: 0; width: 88%; height: 92%; fill: var(--ombre); opacity: .85; }

.fut__gauche { position: absolute; left: 9%; top: 13%; width: 24%; display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; }
.fut__note { font-size: 17cqw; font-weight: 900; line-height: .82; }
.fut__poste { font-size: 8.5cqw; font-weight: 800; line-height: 1; letter-spacing: .02em; }
.fut__trait { width: 62%; height: max(1px, .5cqw); background: var(--trait); }
.fut__drapeau { width: 11.5cqw !important; height: 8cqw !important; background-size: cover; border-radius: .6cqw; box-shadow: 0 0 0 .4cqw rgba(0, 0, 0, .08); }
.fut__club { width: 12.5cqw; height: 12.5cqw; object-fit: contain; }

.fut__nom { position: absolute; left: 8%; right: 8%; top: 56%; padding-bottom: 2cqw; border-bottom: max(1px, .5cqw) solid var(--trait); font-size: 11.5cqw; font-weight: 900; line-height: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em; }
.fut__stats { position: absolute; left: 15%; right: 13%; top: 68%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 10%; row-gap: 1.2cqw; }
.fut__stat { display: flex; align-items: baseline; gap: 2.2cqw; font-size: 9cqw; line-height: 1.05; white-space: nowrap; }
.fut__stat:nth-child(even) { padding-left: 14%; }
.fut__stat b { font-weight: 900; min-width: 2ch; }
.fut__stat i { font-style: normal; font-weight: 600; opacity: .92; }
.fut__sep { position: absolute; left: 50%; top: 2%; bottom: 2%; width: max(1px, .5cqw); background: var(--trait); }
.fut__bas { position: absolute; left: 41%; right: 41%; top: 92%; height: max(1px, .5cqw); background: var(--trait); }

/* Styles */
.fut--argent { --bord: #7d8287; --motif-c: rgba(60, 64, 70, .16); --c1: #f2f4f5; --c2: #b9bec3; --c3: #e6e9eb; --c4: #c9cdd1; --txt: #26292d; --trait: rgba(38, 41, 45, .4); --ombre: #6c7177; }
.fut--bronze { --bord: #7a4a22; --motif-c: rgba(90, 50, 20, .2); --c1: #efc79c; --c2: #b97a45; --c3: #e3b182; --c4: #c98d5a; --txt: #3a2210; --trait: rgba(58, 34, 16, .45); --ombre: #6e4320; }
.fut--tnk { --bord: #daf37c; --motif-c: rgba(218, 243, 124, .14); --c1: #1b2010; --c2: #0b0d10; --c3: #15180f; --c4: #0d0f13; --txt: #daf37c; --trait: rgba(218, 243, 124, .45); --ombre: #3a4322; }
.fut--tnk .fut__nom, .fut--tnk .fut__stat i { color: #fff; }
.fut--totw { --bord: #c9a64a; --motif-c: rgba(240, 207, 110, .14); --c1: #3a3a3a; --c2: #0e0e0e; --c3: #262626; --c4: #111; --txt: #f0cf6e; --trait: rgba(240, 207, 110, .5); --ombre: #4a4a4a; }
.fut--totw .fut__nom, .fut--totw .fut__stat i { color: #fff; }
.fut--icone { --bord: #b8954a; --motif-c: rgba(160, 125, 40, .2); --c1: #fffaf0; --c2: #e7dcbc; --c3: #f8f2e2; --c4: #e9dcb4; --txt: #5a4515; --trait: rgba(160, 125, 40, .55); --ombre: #b49a5e; }

/* Noël : rouge, bordure dorée, flocons */
.fut--noel { --bord: #e8c766; --c1: #e0313f; --c2: #9b0f1f; --c3: #b5172a; --c4: #6e0a17; --txt: #fff3d1; --trait: rgba(255, 243, 209, .5); --ombre: #5a0812; --motif-c: rgba(255, 255, 255, .55); }
.fut--noel .fut__motif { height: 100%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='8' cy='10' r='1.6'/%3E%3Ccircle cx='38' cy='6' r='1'/%3E%3Ccircle cx='24' cy='30' r='1.3'/%3E%3Ccircle cx='52' cy='34' r='1.8'/%3E%3Ccircle cx='12' cy='50' r='1'/%3E%3Ccircle cx='42' cy='54' r='1.2'/%3E%3Cpath d='M30 44v10M25 49h10M26.5 45.5l7 7M33.5 45.5l-7 7' stroke='%23000' stroke-width='.8'/%3E%3C/svg%3E") 0 0 / 22cqw 22cqw repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='8' cy='10' r='1.6'/%3E%3Ccircle cx='38' cy='6' r='1'/%3E%3Ccircle cx='24' cy='30' r='1.3'/%3E%3Ccircle cx='52' cy='34' r='1.8'/%3E%3Ccircle cx='12' cy='50' r='1'/%3E%3Ccircle cx='42' cy='54' r='1.2'/%3E%3Cpath d='M30 44v10M25 49h10M26.5 45.5l7 7M33.5 45.5l-7 7' stroke='%23000' stroke-width='.8'/%3E%3C/svg%3E") 0 0 / 22cqw 22cqw repeat; }
.fut--noel .fut__note, .fut--noel .fut__stat b { color: #ffe08a; }
.fut--noel .fut__fond::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 7%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .35)); z-index: 0; }

/* Halloween : violet nuit, orange citrouille, petites chauves-souris */
.fut--halloween { --bord: #ff8a1f; --c1: #4a2160; --c2: #1a0b24; --c3: #22102e; --c4: #0b0510; --txt: #ff9a2e; --trait: rgba(255, 154, 46, .5); --ombre: #120818; --motif-c: rgba(255, 154, 46, .28); }
.fut--halloween .fut__nom, .fut--halloween .fut__stat i { color: #f5ecff; }
.fut--halloween .fut__motif { height: 100%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cpath d='M10 14q3-4 6-1 1-3 2-1 1-2 2 1 3-3 6 1-4 0-5 3-2-2-3 0-1-2-3 0-1-3-5-3z'/%3E%3Cpath d='M44 46q3-4 6-1 1-3 2-1 1-2 2 1 3-3 6 1-4 0-5 3-2-2-3 0-1-2-3 0-1-3-5-3z'/%3E%3Ccircle cx='52' cy='14' r='1.2'/%3E%3Ccircle cx='20' cy='52' r='1'/%3E%3C/svg%3E") 0 0 / 24cqw 24cqw repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cpath d='M10 14q3-4 6-1 1-3 2-1 1-2 2 1 3-3 6 1-4 0-5 3-2-2-3 0-1-2-3 0-1-3-5-3z'/%3E%3Cpath d='M44 46q3-4 6-1 1-3 2-1 1-2 2 1 3-3 6 1-4 0-5 3-2-2-3 0-1-2-3 0-1-3-5-3z'/%3E%3Ccircle cx='52' cy='14' r='1.2'/%3E%3Ccircle cx='20' cy='52' r='1'/%3E%3C/svg%3E") 0 0 / 24cqw 24cqw repeat; }

/* Section de la fiche joueur */
.tnk-fut { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; align-items: center; }
.tnk-fut__carte { display: grid; justify-items: center; }
.tnk-fut__texte p { margin: 0 0 12px; color: #9da1a8; line-height: 1.55; }
.tnk-fut__texte strong { color: #fff; }
.tnk-fut__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tnk-fut__actions form { margin: 0; }
.tnk-fut__detail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; max-width: 420px; }
.tnk-fut__detail li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #1d2026; color: #c9ccd1; }
.tnk-fut__detail b { color: #daf37c; }

/* Fenêtre de création */
.tnk-futd { width: min(920px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #2a2e36; border-radius: 18px; background: #0d0f13; color: #fff; }
.tnk-futd::backdrop { background: rgba(0, 0, 0, .7); }
.tnk-futd form { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding: 24px; }
.tnk-futd h2 { grid-column: 1 / -1; margin: 0; font: 900 1.9rem/1 'Big Shoulders Display', 'Arial Narrow', sans-serif; text-transform: uppercase; }
.tnk-futd__apercu { position: sticky; top: 0; display: grid; justify-items: center; align-content: start; gap: 10px; }
.tnk-futd__apercu small { color: #9da1a8; text-align: center; }
.tnk-futd__champs { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tnk-futd__ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tnk-futd label > span, .tnk-futd legend { display: block; margin-bottom: 6px; color: #c9ccd1; font: 700 .85rem 'Barlow', system-ui, sans-serif; }
.tnk-futd select, .tnk-futd input[type=file] { width: 100%; box-sizing: border-box; height: 42px; padding: 0 10px; border: 1px solid #2a2e36; border-radius: 10px; background: #0a0c0f; color: #fff; font: 600 .95rem 'Barlow', system-ui, sans-serif; }
.tnk-futd input[type=file] { padding: 8px 10px; height: auto; }
.tnk-futd fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.tnk-futd__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.tnk-futd__stat { display: grid; grid-template-columns: 92px minmax(0, 1fr) 52px; align-items: center; gap: 8px; }
.tnk-futd__stat span { color: #c9ccd1; font: 700 .85rem 'Barlow', system-ui, sans-serif; }
.tnk-futd input[type=range] { width: 100%; accent-color: #daf37c; }
.tnk-futd input[type=number] { width: 100%; box-sizing: border-box; height: 36px; border: 1px solid #2a2e36; border-radius: 8px; background: #0a0c0f; color: #fff; font: 800 1rem 'Barlow', system-ui, sans-serif; text-align: center; }
.tnk-futd__reglages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tnk-futd__case { display: flex; align-items: center; gap: 8px; color: #c9ccd1; font-weight: 600; }
.tnk-futd__case input { accent-color: #daf37c; width: 18px; height: 18px; }
.tnk-futd__aide { margin: -6px 0 0; color: #6b6f77; font-size: .85rem; }
.tnk-futd__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

@media (max-width: 760px) {
    .tnk-fut { grid-template-columns: 1fr; gap: 20px; }
    .tnk-fut__carte .fut { max-width: 260px; }
    .tnk-futd form { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
    .tnk-futd__apercu { position: static; }
    .tnk-futd__apercu .fut { max-width: 200px; }
    .tnk-futd__stats, .tnk-futd__ligne { grid-template-columns: 1fr; }
    .tnk-futd__reglages { grid-template-columns: 1fr; }
}

/* Boutons */
.tnk-fut__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border: 1px solid #daf37c; border-radius: 999px; background: #daf37c; color: #0a0c0f; font: 700 .92rem 'Barlow', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.tnk-fut__btn:hover { filter: brightness(1.06); }
.tnk-fut__btn--ghost { background: transparent; border-color: #3a3f48; color: #fff; }
.tnk-fut__btn--ghost:hover { border-color: #daf37c; color: #daf37c; filter: none; }
.tnk-fut__btn--danger { background: transparent; border-color: rgba(227, 133, 133, .5); color: #e38585; }
.tnk-fut__btn i { font-size: 1.15rem; }
.tnk-membre__fut { display: block; width: 220px; }
.tnk-membre__fut .fut { transition: transform .2s; }
.tnk-membre__fut:hover .fut { transform: translateY(-4px) rotate(-1deg); }
