/* Davie Rec Soccer - feuille de style des pages publiques (portail) - 2026-11-16 (signe Claude) */
/* Autonome : les pages publiques ne chargent que cette feuille, pas style.css (reserve a l'admin). */

*{box-sizing:border-box;margin:0;padding:0}
body{font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:#eef1ef;color:#14241b}
a{text-decoration:none;color:inherit}
.wrap{max-width:1140px;margin:0 auto;padding:0 18px}
.show-mobile{display:none}

/* Barre de navigation */
.nav{position:sticky;top:0;z-index:20;background:#0b4d2a;color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:62px}
.brand{display:flex;align-items:center;gap:11px;font-weight:800;font-size:1.12rem}
.brand .mark{width:34px;height:34px;border-radius:9px;background:#ffb300;color:#0b4d2a;display:flex;align-items:center;justify-content:center;font-weight:900}
.nav nav{display:flex;align-items:center;gap:4px}
.nav nav a{padding:8px 13px;border-radius:7px;font-weight:600;font-size:.92rem;color:#d7e6dd}
.nav nav a:hover{background:rgba(255,255,255,.1);color:#fff}
.nav .reg{background:#ffb300;color:#0b4d2a;font-weight:800}
.nav .reg:hover{background:#ffc233;color:#0b4d2a}

/* Hero */
.hero{background:linear-gradient(135deg,#0b6b3a 0%,#073f22 100%);color:#fff;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;background:rgba(255,255,255,.05)}
.hero .wrap{padding:34px 18px 30px;position:relative;z-index:2}
.badge{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);padding:5px 14px;border-radius:999px;font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.hero h1{font-size:2.9rem;font-weight:900;line-height:1.05;margin:16px 0 6px;max-width:16ch}
.hero .hsub{font-size:1.3rem;font-weight:800;color:#ffce5c;margin:0 0 10px}
.hero p{font-size:1.1rem;max-width:52ch;opacity:.92;line-height:1.5}
.hero .cta{margin-top:24px;display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-block;padding:14px 30px;border-radius:10px;font-weight:800;font-size:1rem;cursor:pointer;border:0;transition:transform .12s,box-shadow .12s}
.btn.primary{background:#ffb300;color:#0b4d2a;box-shadow:0 6px 18px rgba(255,179,0,.35)}
.btn.primary:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(255,179,0,.45)}
.btn.ghost{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.4)}
.btn.ghost:hover{background:rgba(255,255,255,.2)}

/* Bandeau de stats */
.stats{background:#0b4d2a;color:#fff}
.stats .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;padding:0}
.stat{padding:18px 16px;text-align:center;position:relative}
.stat + .stat::before{content:"";position:absolute;left:0;top:22%;height:56%;width:1px;background:rgba(255,255,255,.14)}
.stat b{display:block;font-size:1.5rem;font-weight:900;color:#ffce5c}
.stat span{font-size:.8rem;opacity:.85;letter-spacing:.04em}

/* Mise en page 2 colonnes */
.layout{display:grid;grid-template-columns:1fr 340px;gap:22px;padding:30px 18px 50px}
.sectitle{display:flex;align-items:center;gap:10px;margin:4px 0 14px}
.sectitle h2{font-size:1.25rem;font-weight:800}
.sectitle .line{flex:1;height:2px;background:#dfe6e1}
.panel{background:#fff;border:1px solid #e3e9e5;border-radius:16px;box-shadow:0 1px 3px rgba(20,40,27,.05),0 10px 26px rgba(20,40,27,.04);margin-bottom:22px;overflow:hidden}
.panel .head{background:#f3f7f4;border-bottom:1px solid #e3e9e5;padding:13px 18px;font-weight:800;display:flex;align-items:center;justify-content:space-between}
.panel .body{padding:18px}

/* News */
.news-empty{text-align:center;color:#6a7a71;padding:26px 10px}
.news-empty .big{font-weight:700;color:#3a4f44;margin-bottom:4px}
.newsitem{padding:12px 0;border-bottom:1px solid #eef2ef}
.newsitem:last-child{border-bottom:0}
.newsitem h3{font-size:1.05rem;margin-bottom:2px}
.newsitem .date{color:#6a7a71;font-size:.82rem;margin-bottom:6px}

/* Matchs */
.daygroup{font-weight:800;color:#0b6b3a;font-size:.92rem;margin:14px 0 6px}
.daygroup:first-child{margin-top:0}
.match{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #eef2ef}
.match:last-child{border-bottom:0}
.teams{display:flex;align-items:center;gap:7px;font-weight:600}
.vs{color:#9aa8a0;font-weight:500;margin:0 2px}
.time{color:#6a7a71;font-size:.85rem;text-align:right}
.dot{width:15px;height:15px;border-radius:50%;display:inline-block;border:1px solid rgba(0,0,0,.2);flex:none}

/* Equipes */
.teamgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.teamcard{background:#fff;border:1px solid #e3e9e5;border-radius:14px;overflow:hidden;box-shadow:0 1px 3px rgba(20,40,27,.05)}
.teamcard .tbar{padding:12px 16px;color:#fff;font-weight:800;display:flex;align-items:center;gap:9px;text-shadow:0 1px 2px rgba(0,0,0,.28)}
.teamcard ul{list-style:none;padding:12px 16px}
.teamcard li{padding:5px 0;font-size:.92rem;border-bottom:1px solid #f1f4f2;display:flex;align-items:center;gap:7px}
.teamcard li:last-child{border-bottom:0}
.gk{background:#fff3cd;color:#7a5b00;font-size:.68rem;font-weight:800;padding:1px 7px;border-radius:999px}

/* Classement (fenetre) */
.standtable{width:100%;border-collapse:collapse;font-size:.88rem}
.standtable th{text-align:left;color:#6a7a71;font-size:.72rem;text-transform:uppercase;padding:6px 5px;border-bottom:1px solid #e3e9e5}
.standtable td{padding:8px 5px;border-bottom:1px solid #f1f4f2}
.standtable tr:last-child td{border-bottom:0}
.standtable td.pts{font-weight:800;color:#0b6b3a;text-align:right}
.standtable .tn{display:flex;align-items:center;gap:7px;font-weight:600}
.rank{color:#9aa8a0;font-weight:700;width:14px;display:inline-block}

/* Carte inscription laterale */
.regcard{background:linear-gradient(135deg,#0b6b3a,#0e7d44);color:#fff;text-align:center}
.regcard .body{padding:22px 18px}
.regcard h3{font-size:1.25rem;font-weight:900;margin-bottom:6px}
.regcard p{opacity:.9;font-size:.92rem;margin-bottom:16px}
.regcard .btn.primary{width:100%}

/* Infos */
.info li{list-style:none;display:flex;gap:10px;padding:9px 0;border-bottom:1px solid #f1f4f2;font-size:.92rem}
.info li:last-child{border-bottom:0}
.info .k{color:#6a7a71;min-width:84px;font-weight:600}

/* Sous-page (ex: inscription) */
.subhead{background:linear-gradient(135deg,#0b6b3a,#073f22);color:#fff}
.subhead .wrap{padding:34px 18px}
.subhead h1{font-size:1.9rem;font-weight:900}
.subhead p{opacity:.9;margin-top:5px}
.formwrap{max-width:640px;margin:26px auto 50px;padding:0 18px}

/* Formulaire */
.form label{display:block;font-weight:600;font-size:.9rem;color:#2a3f34;margin:16px 0 6px}
.form input[type=text],.form input[type=email],.form input[type=tel],.form input[type=date],.form select{width:100%;padding:12px 13px;border:1px solid #c7d2cb;border-radius:10px;background:#fff;font:inherit;transition:border-color .12s,box-shadow .12s}
.form input:focus,.form select:focus{outline:0;border-color:#0b6b3a;box-shadow:0 0 0 3px rgba(11,107,58,.15)}
.form .check{display:flex;align-items:flex-start;gap:10px;margin:14px 0}
.form .check input{margin-top:3px;flex:none}
.form .check label{margin:0;font-weight:500;font-size:.95rem}
.form hr{border:0;border-top:1px solid #e6ebe8;margin:22px 0}
.form button{background:#ffb300;color:#0b4d2a;border:0;border-radius:10px;padding:14px 32px;font-weight:800;font-size:1rem;cursor:pointer;transition:transform .12s,box-shadow .12s}
.form button:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(255,179,0,.4)}
.muted{color:#6a7a71;font-size:.9rem}
.flash{padding:11px 14px;border-radius:9px;margin-bottom:12px}
.flash.err{background:#fde0e0;color:#8a1c1c}
.flash.ok{background:#d9f2e2;color:#0b4f2b}

/* Footer */
footer{background:#0b4d2a;color:#cfe0d6}
footer .wrap{padding:26px 18px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:.9rem}
footer a{color:#ffce5c;font-weight:600}

@media(max-width:860px){
  .layout{grid-template-columns:1fr}
  .hero .wrap{padding:24px 18px 22px}
  .hero h1{font-size:2.1rem}
  .stats .wrap{grid-template-columns:repeat(2,1fr)}
  .teamgrid{grid-template-columns:1fr}
  .nav nav a:not(.reg){display:none}
  .show-mobile{display:block}
  .hide-mobile{display:none}
}
