/*
Theme Name: Sport'inn
Theme URI: https://sportinn.tn
Author: Manus (via Claude original)
Description: Thème WordPress pour la réservation de terrains de sport.
Version: 1.0
Text Domain: sportinn
*/

/* Styles extraits du site statique */
:root{
  --ink:#0B2027;
  --ink-2:#0F2C31;
  --pitch:#123C33;
  --pitch-line:#1E4F44;
  --lime:#D5E82B;
  --lime-dim:#a9b823;
  --orange:#FF7A3D;
  --paper:#F6F5EF;
  --paper-line:#E1DECF;
  --text-dark:#10231F;
  --text-muted:#5B6B69;
  --text-light:#EAF2EE;
  --text-light-muted:#9FB6AE;
  --radius:16px;
  --shadow: 0 18px 40px -18px rgba(0,0,0,.55);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0; background:var(--ink); color:var(--text-light); font-family:'Manrope',system-ui,sans-serif; -webkit-font-smoothing:antialiased;}
h1,h2,h3{font-family:'Anton',sans-serif; letter-spacing:.5px; font-weight:400; margin:0;}
.mono{font-family:'IBM Plex Mono',monospace;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer;}
.wrap{max-width:1180px; margin:0 auto; padding:0 24px;}
img{max-width:100%; display:block;}

header.site{position:sticky; top:0; z-index:40; background:rgba(11,32,39,.88); backdrop-filter:blur(10px); border-bottom:1px solid rgba(255,255,255,.08);}
.nav{display:flex; align-items:center; justify-content:space-between; padding:16px 0; gap:16px; flex-wrap:wrap;}
.logo{display:flex; align-items:center; gap:10px; font-family:'Anton',sans-serif; font-size:22px; letter-spacing:.5px;}
.logo .dot{color:var(--lime);}
.logo-badge{width:34px;height:34px;border-radius:9px;background:linear-gradient(145deg,var(--lime),#8fae00);display:flex;align-items:center;justify-content:center;font-size:18px;}
.nav-links{display:flex; gap:28px; font-weight:600; font-size:14.5px;}
.nav-links button.linklike, .nav-links a.linklike{background:none;border:none;color:var(--text-light-muted);padding:6px 2px;border-bottom:2px solid transparent; cursor:pointer;}
.nav-links button.linklike:hover, .nav-links button.linklike.active, .nav-links a.linklike:hover{color:var(--text-light); border-color:var(--lime);}
.nav-actions{display:flex; gap:10px; align-items:center;}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border:none; border-radius:999px; padding:12px 22px; font-weight:700; font-size:14.5px; transition:transform .15s ease, box-shadow .15s ease, background .15s ease;}
.btn-primary{background:var(--lime); color:var(--ink);}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 10px 22px -8px rgba(213,232,43,.6);}
.btn-outline{background:transparent; color:var(--text-light); border:1.5px solid rgba(255,255,255,.25);}
.btn-outline:hover{border-color:var(--lime); color:var(--lime);}
.btn-orange{background:var(--orange); color:#2b1204;}
.btn-orange:hover{transform:translateY(-2px); box-shadow:0 10px 22px -8px rgba(255,122,61,.55);}
.btn-ghost{background:rgba(255,255,255,.06); color:var(--text-light);}
.btn:disabled{opacity:.45; cursor:not-allowed; transform:none !important; box-shadow:none !important;}
.btn-sm{padding:8px 14px; font-size:13px;}
.btn-full{width:100%;}

.hero{position:relative; padding:76px 0 56px; overflow:hidden;}
.hero::before{content:""; position:absolute; inset:-40% -10% auto -10%; height:520px; background: radial-gradient(60% 60% at 30% 20%, rgba(213,232,43,.14), transparent 70%), radial-gradient(50% 50% at 80% 10%, rgba(255,122,61,.10), transparent 70%); pointer-events:none;}
.eyebrow{display:inline-flex; align-items:center; gap:8px; background:rgba(213,232,43,.1); color:var(--lime); border:1px solid rgba(213,232,43,.35); padding:6px 14px; border-radius:999px; font-size:12.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;}
.hero h1{font-size:clamp(40px,7vw,78px); line-height:.98; margin:20px 0 18px; color:var(--text-light);}
.hero h1 span{color:var(--lime);}
.hero p.lead{max-width:520px; color:var(--text-light-muted); font-size:18px; line-height:1.55; margin-bottom:30px;}
.hero-ctas{display:flex; gap:14px; flex-wrap:wrap; margin-bottom:36px;}
.hero-stats{display:flex; gap:34px; flex-wrap:wrap; border-top:1px solid rgba(255,255,255,.1); padding-top:22px;}
.hero-stat b{display:block; font-family:'IBM Plex Mono',monospace; font-size:26px; color:var(--lime);}
.hero-stat span{font-size:12.5px; color:var(--text-light-muted); text-transform:uppercase; letter-spacing:.05em;}

.toggle-row{display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin:60px 0 26px;}
.section-title{color:var(--text-light);}
.section-title small{display:block; font-family:'Manrope'; font-size:13px; color:var(--text-light-muted); font-weight:600; text-transform:uppercase; letter-spacing:.08em; margin-bottom:6px;}
.section-title h2{font-size:clamp(26px,4vw,38px);}

.sport-toggle{display:inline-flex; background:var(--pitch); border:1px solid var(--pitch-line); border-radius:999px; padding:5px;}
.sport-toggle button{border:none; background:transparent; color:var(--text-light-muted); font-weight:700; font-size:14px; padding:11px 22px; border-radius:999px; display:flex; align-items:center; gap:8px; transition:.15s ease;}
.sport-toggle button.active{background:var(--lime); color:var(--ink);}

.matches-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:22px; margin-bottom:20px;}
.ticket{position:relative; display:flex; background:var(--paper); border-radius:var(--radius); box-shadow:var(--shadow); overflow:visible; min-height:190px;}
.ticket-main{flex:1; padding:22px 20px; color:var(--text-dark); display:flex; flex-direction:column; gap:10px; min-width:0;}
.sport-pill{display:inline-flex; align-self:flex-start; align-items:center; gap:6px; background:var(--ink); color:var(--lime); font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; padding:5px 11px; border-radius:999px;}
.ticket-club{font-family:'Manrope'; font-weight:800; font-size:19px; line-height:1.25; color:var(--text-dark); margin-top:2px;}
.ticket-when{font-family:'IBM Plex Mono',monospace; font-size:16px; font-weight:600; color:var(--text-dark); display:flex; align-items:baseline; gap:8px;}
.ticket-when .time{font-size:22px; color:var(--ink);}
.ticket-meta{display:flex; gap:14px; flex-wrap:wrap; font-size:13px; color:var(--text-muted); font-weight:600;}
.ticket-progress-wrap{margin-top:auto;}
.ticket-progress-label{display:flex; justify-content:space-between; font-size:12px; font-weight:700; color:var(--text-muted); margin-bottom:5px;}
.progress-bar{height:7px; border-radius:999px; background:var(--paper-line); overflow:hidden;}
.progress-bar > i{display:block; height:100%; background:linear-gradient(90deg,var(--lime-dim),var(--lime)); border-radius:999px;}

.ticket-stub{width:132px; flex:none; position:relative; padding:20px 14px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:10px; border-left:2px dashed var(--paper-line); color:var(--text-dark);}
.ticket-price b{display:block; font-family:'IBM Plex Mono',monospace; font-size:22px; color:var(--orange);}
.ticket-price span{font-size:10.5px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.04em; font-weight:700;}
.pay-tag{font-size:10px; font-weight:700; color:var(--text-muted); background:var(--paper-line); padding:4px 8px; border-radius:6px; line-height:1.3;}
.notch{position:absolute; width:24px; height:24px; background:var(--ink); border-radius:50%; right:130px; margin-right:-12px;}
.notch.top{top:-12px;}
.notch.bottom{bottom:-12px;}

.empty-state{grid-column:1/-1; text-align:center; padding:60px 20px; background:var(--pitch); border:1px dashed var(--pitch-line); border-radius:var(--radius); color:var(--text-light-muted);}
.empty-state h3{color:var(--text-light); font-size:22px; margin-bottom:8px;}
.empty-state p{margin:0 0 18px;}

.steps{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:26px;}
.step-card{background:var(--pitch); border:1px solid var(--pitch-line); border-radius:var(--radius); padding:26px 22px;}
.step-num{font-family:'IBM Plex Mono',monospace; color:var(--lime); font-size:14px; font-weight:700; margin-bottom:14px;}
.step-card h3{font-family:'Manrope'; font-weight:800; font-size:18px; color:var(--text-light); margin-bottom:8px;}
.step-card p{color:var(--text-light-muted); font-size:14.5px; line-height:1.55; margin:0;}

section{padding:60px 0;}

footer.site{background:var(--ink-2); border-top:1px solid rgba(255,255,255,.08); padding:40px 0 26px;}
.foot-row{display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; margin-bottom:24px;}
.foot-note{color:var(--text-light-muted); font-size:13px;}
.foot-links{display:flex; gap:20px; font-size:13.5px; font-weight:600; color:var(--text-light-muted);}

.overlay{position:fixed; inset:0; background:rgba(6,16,19,.72); backdrop-filter:blur(3px); display:flex; align-items:center; justify-content:center; padding:20px; z-index:100;}
.overlay[hidden]{display:none;}
.modal{background:var(--paper); color:var(--text-dark); border-radius:20px; max-width:460px; width:100%; max-height:88vh; overflow-y:auto; padding:30px 28px; position:relative; box-shadow:var(--shadow);}
.modal h2{font-family:'Manrope'; font-weight:800; font-size:22px; margin-bottom:6px;}
.modal .sub{color:var(--text-muted); font-size:14px; margin-bottom:22px;}
.modal-close{position:absolute; top:16px; right:16px; background:var(--paper-line); border:none; width:32px; height:32px; border-radius:50%; font-size:16px; color:var(--text-dark);}

.field{margin-bottom:16px;}
.field label{display:block; font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-muted); margin-bottom:6px;}
.field input, .field select{width:100%; padding:12px 13px; border-radius:10px; border:1.5px solid var(--paper-line); background:#fff; color:var(--text-dark); font-family:inherit; font-size:14.5px;}
.field input:focus, .field select:focus{border-color:var(--lime-dim);}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.form-error{background:#FFEAE3; color:#B5401A; padding:10px 12px; border-radius:10px; font-size:13.5px; font-weight:600; margin-bottom:14px;}

#toast{position:fixed; left:50%; bottom:26px; transform:translate(-50%,140%); background:var(--ink); color:var(--text-light); border:1px solid var(--lime); padding:14px 22px; border-radius:12px; font-weight:700; font-size:14px; z-index:200; transition:transform .25s ease; box-shadow:var(--shadow); max-width:90vw;}
#toast.show{transform:translate(-50%,0);}

.account-card{background:var(--pitch); border:1px solid var(--pitch-line); border-radius:var(--radius); padding:26px; margin-bottom:24px; display:flex; gap:20px; flex-wrap:wrap; align-items:center; justify-content:space-between;}
.account-id{display:flex; gap:16px; align-items:center;}
.avatar{width:56px; height:56px; border-radius:14px; background:linear-gradient(145deg,var(--lime),#8fae00); color:var(--ink); font-family:'Anton'; font-size:22px; display:flex; align-items:center; justify-content:center;}
.tag-row{display:flex; gap:8px; flex-wrap:wrap; margin-top:6px;}
.tag{font-size:11.5px; font-weight:700; background:rgba(255,255,255,.08); color:var(--text-light-muted); padding:4px 10px; border-radius:999px;}

.my-matches-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:18px;}

.admin-gate{max-width:380px; margin:0 auto; background:var(--pitch); border:1px solid var(--pitch-line); border-radius:var(--radius); padding:30px;}
.admin-panel{display:grid; grid-template-columns:340px 1fr; gap:28px; align-items:start;}
@media (max-width:860px){.admin-panel{grid-template-columns:1fr;}}
.admin-form{background:var(--pitch); border:1px solid var(--pitch-line); border-radius:var(--radius); padding:24px;}
.admin-form h3{font-family:'Manrope'; font-weight:800; font-size:17px; color:var(--text-light); margin-bottom:16px;}
.admin-form .field label{color:var(--text-light-muted);}
.admin-form .field input, .admin-form .field select{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.15); color:var(--text-light);}
.admin-form .field input:focus, .admin-form .field select:focus{border-color:var(--lime);}

.admin-table{width:100%; border-collapse:collapse;}
.admin-table th{text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--text-light-muted); padding:10px 12px; border-bottom:1px solid var(--pitch-line);}
.admin-table td{padding:12px; font-size:14px; border-bottom:1px solid rgba(255,255,255,.06); color:var(--text-light); vertical-align:middle;}
.admin-table tr:last-child td{border-bottom:none;}
.admin-wrap{background:var(--pitch); border:1px solid var(--pitch-line); border-radius:var(--radius); padding:6px 20px; overflow-x:auto;}
.del-btn{background:rgba(255,90,60,.15); color:#FF8A6B; border:none; padding:6px 12px; border-radius:8px; font-size:12.5px; font-weight:700;}

.view{display:none;}
.view.active{display:block;}
.loading-row{padding:40px; text-align:center; color:var(--text-light-muted);}

@media (max-width:640px){
  .field-row{grid-template-columns:1fr;}
  .nav-links{order:3; width:100%; justify-content:space-between;}
  .steps{grid-template-columns:1fr;}
  .toggle-row{align-items:flex-start;}
}
