:root{color-scheme:dark;--blue:#009fe8;--bg:#071526;--card:#10263e;--border:#25445f;--text:#f4f8ff}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#143b5c,#071526 60%);color:var(--text);font:16px system-ui,-apple-system,Segoe UI,sans-serif;min-height:100vh}a{color:inherit}.top{display:flex;align-items:center;justify-content:space-between;padding:18px max(20px,calc((100vw - 1120px)/2));border-bottom:1px solid var(--border);background:#071a2d}.brand{display:flex;gap:12px;align-items:center;text-decoration:none}.brand img{width:47px;height:47px;object-fit:contain}.brand b{display:block;letter-spacing:1px}.brand small{font-size:10px;color:#a8c4dc;letter-spacing:1.2px}.back{color:#a9dbfa;text-decoration:none}main{max-width:1080px;margin:40px auto;padding:0 18px}.eyebrow{color:#55c6ff;font-weight:750;font-size:12px;letter-spacing:2px}.intro h1{font-size:clamp(30px,5vw,50px);margin:8px 0}.intro em{font-style:normal;color:#43baf4}.intro>p:last-child{color:#b4cce0}.panel{background:#10253c;border:1px solid #29445e;border-radius:18px;padding:clamp(16px,3vw,28px);margin:26px 0}.panelhead{display:flex;justify-content:space-between;align-items:center;gap:12px}.panel h2{font-size:18px;letter-spacing:.7px}button{background:#0c4268;border:1px solid #3477a1;color:white;border-radius:11px;padding:11px 15px;cursor:pointer;font:inherit}button:hover{border-color:#70d2ff}#days{display:flex;overflow-x:auto;gap:10px;padding:18px 0;scroll-snap-type:x proximity}#days button{flex:0 0 auto;min-width:112px;background:#122d48;scroll-snap-align:start}#days button.active{background:#075b90;border:2px solid #5fc9ff}#days button small{display:block;color:#c5dfed;margin-top:5px}.match{display:grid;grid-template-columns:78px 1fr auto;gap:14px;align-items:center;background:#0a1e32;border:1px solid var(--border);border-radius:12px;margin:10px 0;padding:16px}.time{font-weight:800;color:#64c8ff}.teams{font-weight:750}.detail{font-size:13px;color:#aec7dc;margin-top:5px}.channel{font-size:13px;border:1px solid #315c7d;border-radius:8px;padding:8px;text-align:center}.empty{color:#b5d1e4;padding:30px 0}.footnote{color:#8facbf;font-size:13px}#sharebox{border-top:1px solid var(--border);padding-top:15px}#sharebox button{margin:4px}input{width:100%;padding:12px;border-radius:8px;background:#091c2e;color:white;border:1px solid #41617a}label{display:block;margin:12px 0 5px;color:#c3ddf0}form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}form button{margin-top:20px}#adminList button{padding:7px;margin:5px}@media(max-width:560px){.match{grid-template-columns:65px 1fr}.channel{grid-column:2;justify-self:start}.panelhead h2{font-size:15px}form{grid-template-columns:1fr}.top{padding:14px}.brand small{font-size:9px}}
.teams{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.team{display:inline-flex;align-items:center;gap:7px}.team+.team:before{content:'–';margin-right:4px;color:#8cb6d0}.team-logo{width:34px;height:34px;object-fit:contain}.small-logo{width:24px;height:24px;object-fit:contain;margin-right:7px}.detail{display:flex;align-items:center}.channel{display:flex;align-items:center;justify-content:center;gap:8px}.channel-logo{width:42px;height:32px;object-fit:contain}.admin-preview{display:block;max-width:85px;max-height:65px;object-fit:contain;margin:8px 0}.admin-preview[hidden]{display:none}input[type=file]{font-size:12px}

.logo-editor[hidden]{display:none!important}.logo-editor{position:fixed;inset:0;z-index:9999;background:#000b;display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}.logo-editor-panel{background:#10243d;color:#fff;border:1px solid #36b8ed;border-radius:16px;padding:20px;max-width:490px;width:100%;max-height:95vh;overflow:auto}.logo-editor-panel canvas{display:block;width:100%;max-width:360px;height:auto;margin:12px auto;background:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%) 50%/20px 20px;border-radius:8px}.logo-editor-panel label{display:block;margin:10px 0}.logo-editor-panel input[type=range]{display:block;width:100%}.logo-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.logo-actions button{flex:1;min-width:110px}

.score-fields{display:flex;align-items:center;gap:10px}.score-fields input{max-width:110px}.match-score{display:inline-block;background:#0b5685;border:1px solid #55c6ff;color:#fff;padding:5px 10px;border-radius:8px;font-size:18px;margin:0 10px}.match-status{display:inline-flex;width:max-content;margin-top:8px;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:800}.status-upcoming{background:#123e60;color:#9bdcff}.status-live{background:#68430b;color:#ffd47a}.status-finished{background:#124c36;color:#a5f0c9}

/* V168 — présentation des rencontres plus lisible, inspirée d'une grille TV */
.match{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"time channel" "info channel";align-items:center;column-gap:18px;row-gap:8px;padding:17px 18px}
.match>.time{grid-area:time;font-size:14px;color:#a9c7dc;font-weight:650;letter-spacing:.15px}
.match>.match-info{grid-area:info;min-width:0}
.match>.channel{grid-area:channel;align-self:center;max-width:170px}
.match .teams{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;font-size:clamp(17px,2.2vw,22px);line-height:1.2;color:#f7fbff}
.match .team{display:inline-flex;align-items:center;min-width:0;gap:7px}
.match .team span:last-child{overflow-wrap:anywhere}
.match .team-logo{width:30px;height:30px;flex:0 0 30px}
.match .team+.team:before{margin-right:0}
.match .detail{margin-top:7px;font-size:14px;color:#b7cde0}
.match .small-logo{width:25px;height:25px;object-fit:contain}
.match .match-status{margin-top:8px}
.match .channel{background:transparent;border:0;padding:0;font-size:13px;font-weight:700;color:#e7f4ff;white-space:normal}
.match .channel-logo{width:58px;height:42px;object-fit:contain}
@media(max-width:560px){
 .match{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"time time" "info channel";gap:7px 10px;padding:15px}
 .match>.time{font-size:13px}
 .match .teams{flex-wrap:wrap;gap:5px 8px;font-size:18px}
 .match .team{gap:5px}
 .match .team-logo{width:27px;height:27px;flex-basis:27px}
 .match .team+.team:before{content:'–';margin-right:0}
 .match>.channel{max-width:92px;justify-self:end;align-self:center}
 .match .channel{display:flex;flex-direction:column;gap:3px;text-align:center;font-size:11px}
 .match .channel-logo{width:48px;height:34px}
 .match .detail{font-size:12px;line-height:1.35;flex-wrap:wrap}
 .match .match-status{font-size:11px}
}

/* V170 — Programme TV en liste claire, inspirée de la deuxième capture */
body{background:#f4fbfd;color:#171b22;min-height:100vh}
.top{background:#20aef0;border-bottom:0;color:#fff}
.top .brand,.top .back{color:#fff}
.top .brand small{color:#e8f8ff}
main{max-width:100%;margin:0 auto;padding:0}
.intro{background:#20aef0;color:#fff;padding:28px max(20px,calc((100vw - 980px)/2)) 30px}
.intro .eyebrow,.intro>p:last-child{color:#e9f7ff}
.intro h1{color:#fff}
.intro em{color:#fff}
.panel{background:transparent;border:0;border-radius:0;padding:0;margin:0}
.panelhead{padding:18px max(20px,calc((100vw - 980px)/2));background:#fff;border-bottom:1px solid #e3edf1}
.panelhead h2{color:#20242a;margin:0}
.panelhead button{background:#20aef0;border-color:#20aef0;color:#fff}
#days{padding:14px max(20px,calc((100vw - 980px)/2));background:#fff}
#days button{background:#eef8fb;color:#20242a;border:1px solid #d8eaf0;border-radius:8px}
#days button.active{background:#dff5fd;border:2px solid #20aef0}
#days button small{color:#536a78}
#matches{background:#fff}
.match{display:grid;grid-template-columns:minmax(0,1fr) 120px;grid-template-areas:"time channel" "info channel";align-items:center;gap:7px 18px;margin:0;border:0;border-radius:0;padding:22px max(20px,calc((100vw - 980px)/2));background:#fff;color:#171b22;border-bottom:1px solid #edf1f3}
.match:nth-child(even){background:#edf8fb}
.match>.time{grid-area:time;color:#222;font-size:clamp(16px,2.2vw,21px);font-weight:500}
.match>.match-info{grid-area:info;min-width:0}
.match .teams{font-size:clamp(21px,3.3vw,32px);font-weight:900;line-height:1.18;color:#171b22;gap:8px}
.match .team{gap:9px}
.match .team-logo{width:34px;height:34px;flex:0 0 34px}
.match .team+.team:before{color:#171b22;font-weight:600}
.match .match-score{font-size:1em;color:#171b22}
.match .detail{display:flex;align-items:center;gap:7px;margin-top:6px;color:#252a30;font-size:clamp(14px,2.2vw,19px);line-height:1.3}
.match .small-logo{width:25px;height:25px;object-fit:contain}
.match .match-status{display:none}
.match>.channel{grid-area:channel;align-self:center;justify-self:end;display:flex;flex-direction:column;gap:4px;max-width:120px;padding:0;border:0;background:transparent;color:#303943;font-size:11px;font-weight:700;text-align:center}
.match .channel-logo{width:100px;height:55px;object-fit:contain}
.match .channel span{display:none}
.match a{grid-column:1;color:#087dbb;font-weight:700}
.footnote{padding:20px max(20px,calc((100vw - 980px)/2));color:#526574;background:#fff;margin:0}
main>p:last-child{padding:12px 20px;background:#fff;margin:0}
@media(max-width:560px){
 .top{padding:12px 16px}
 .top .brand img{width:38px;height:38px}
 .intro{padding:20px 18px 24px}
 .intro h1{font-size:clamp(27px,8vw,36px)}
 .intro>p:last-child{font-size:17px;line-height:1.4}
 .panelhead{padding:14px 18px}
 #days{padding:12px 18px}
 .match{grid-template-columns:minmax(0,1fr) 76px;gap:6px 8px;padding:17px 18px}
 .match>.time{font-size:15px}
 .match .teams{font-size:clamp(19px,5.2vw,24px);gap:5px}
 .match .team{gap:5px}
 .match .team-logo{width:27px;height:27px;flex-basis:27px}
 .match .detail{font-size:14px;flex-wrap:wrap}
 .match .channel{max-width:76px}
 .match .channel-logo{width:72px;height:43px}
}

/* V174 — rétablir les statuts et garder le panneau de partage fermé par défaut */
#matches .match-status{display:inline-flex!important;align-items:center;width:max-content;margin-top:9px;padding:5px 11px;border-radius:999px;font-size:13px;font-weight:800;line-height:1.2}
#matches .status-upcoming{background:#e5f4ff;color:#12618f;border:1px solid #9ed8f7}
#matches .status-live{background:#fff0e8;color:#b84316;border:1px solid #ffc09e}
#matches .status-finished{background:#e7f7ed;color:#167341;border:1px solid #a8dfbc}
#sharebox[hidden]{display:none!important}
#sharebox:not([hidden]){margin-top:14px;padding:16px;border:1px solid #c8e0ec;border-radius:14px;background:#f2faff;color:#172433}
#sharebox h3{font-size:18px;margin:0 0 12px;color:#172433}
#sharebox button{font-size:14px;padding:10px 13px;margin:4px;background:#17476b;color:#fff;border:1px solid #4c91bb;border-radius:9px}
#sharestatus{font-size:13px;color:#425b6e}

/* V175 — bandeau d'identité Programme TV aux couleurs bleu marine du site */
.top{
  background:#071a2d!important;
  color:#f4f8ff!important;
  border-bottom:1px solid #244765!important;
}
.top .brand,.top .back{color:#f4f8ff!important}
.top .brand small{color:#a9c8df!important}
.intro{
  background:linear-gradient(135deg,#0a2340 0%,#0b2d50 58%,#103b60 100%)!important;
  color:#f4f8ff!important;
  border-bottom:1px solid #1d5278;
}
.intro .eyebrow{color:#64caff!important}
.intro h1{color:#f7fbff!important}
.intro em{color:#64caff!important}
.intro>p:last-child{color:#c2d8e9!important}

/* V176 — couleurs corrigées selon la demande : en-tête cyan, bandeau éditorial marine */
.top{
  background:#20aef0!important;
  color:#ffffff!important;
  border-bottom:1px solid #56c8f5!important;
}
.top .brand,.top .back{color:#ffffff!important}
.top .brand small{color:#e8f8ff!important}
.intro{
  background:linear-gradient(135deg,#071a2d 0%,#0a2340 58%,#103653 100%)!important;
  color:#f4f8ff!important;
  border-bottom:1px solid #244765!important;
}
.intro .eyebrow{color:#65caff!important}
.intro h1{color:#ffffff!important}
.intro em{color:#65caff!important}
.intro>p:last-child{color:#d2e2ef!important}

/* V177 — reprendre le bleu clair de l'identité visuelle du site */
.top{
  background:#49b8e8!important;
  color:#ffffff!important;
  border-bottom:1px solid #75d5f5!important;
}
.top .brand,.top .back{color:#ffffff!important}
.top .brand small{color:#f0fbff!important}
.panelhead button{
  background:#49b8e8!important;
  border-color:#49b8e8!important;
}
#days button.active{
  background:#dff4fc!important;
  border:2px solid #49b8e8!important;
}

/* V178 — isoler l'administration du thème clair de la page publique Programme TV */
body.admin-programme-tv{
  background:#071526!important;
  color:#f4f8ff!important;
  min-height:100vh;
}
.admin-programme-tv .top{
  background:#49b8e8!important;
  color:#fff!important;
  border-bottom:1px solid #75d5f5!important;
}
.admin-programme-tv .top .brand,
.admin-programme-tv .top .back{color:#fff!important}
.admin-programme-tv .top .brand small{color:#f0fbff!important}
.admin-programme-tv main{
  width:min(1080px,100%)!important;
  max-width:1080px!important;
  margin:30px auto!important;
  padding:0 18px 60px!important;
}
.admin-programme-tv main>h1{
  color:#f4f8ff!important;
  font-size:clamp(25px,4vw,38px);
  line-height:1.2;
  margin:0 0 18px;
}
.admin-programme-tv .panel{
  background:#10253c!important;
  color:#f4f8ff!important;
  border:1px solid #29445e!important;
  border-radius:18px!important;
  padding:clamp(16px,3vw,28px)!important;
  margin:20px 0!important;
}
.admin-programme-tv .panel h2,
.admin-programme-tv .panel p,
.admin-programme-tv .panel small{color:#c5dced!important}
.admin-programme-tv .panel label{color:#c5dced!important}
.admin-programme-tv .panel input:not([type=file]):not([type=checkbox]):not([type=range]),
.admin-programme-tv .panel select{
  width:100%;
  min-height:44px;
  padding:11px 12px;
  border:1px solid #4b86a8;
  border-radius:10px;
  background:#091c32;
  color:#f4f8ff;
  font:inherit;
}
.admin-programme-tv .panel input::placeholder{color:#91adc2}
.admin-programme-tv .panel input[type=file]{max-width:100%;color:#d8eafa}
.admin-programme-tv .panel button{
  background:#0c4268;
  border:1px solid #3477a1;
  color:#fff;
  border-radius:10px;
  padding:10px 14px;
  cursor:pointer;
}
.admin-programme-tv .panel button:hover{border-color:#70d2ff}
.admin-programme-tv #adminList p{
  color:#edf7ff;
  padding:12px 0;
  border-bottom:1px solid #29445e;
  line-height:1.55;
}
.admin-programme-tv #status{color:#70dfff!important;font-weight:700}
.admin-programme-tv .score-fields input{max-width:110px}
.admin-programme-tv .admin-preview{max-width:110px;max-height:75px}
@media(max-width:560px){
 .admin-programme-tv main{margin:22px auto!important;padding:0 14px 45px!important}
 .admin-programme-tv .panel{padding:15px!important}
 .admin-programme-tv #adminList p{font-size:14px}
}

/* V202: masquer tout score et statut sur le programme public */
#matches .match-score, #matches .match-status, #matches .status-upcoming, #matches .status-live, #matches .status-finished, #matches [class*="score-badge"], #matches [class*="status-badge"] {display:none!important;}
