:root{--ink:#152c39;--muted:#70828c;--sea:#007c7b;--sea-dark:#065c5b;--mist:#e5f1ed;--bg:#f5f7f6;--line:#e4eae9;--white:#fff;--soft-shadow:0 12px 34px rgba(16,44,57,.052);font-family:'DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:15px}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer}a{color:inherit}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #51b9ad;outline-offset:3px}button:disabled{opacity:.6;cursor:default}
.app-shell{max-width:820px;min-height:100vh;margin:auto;background:var(--bg);box-shadow:0 0 140px rgba(27,51,59,.08)}
.app-header{background:#102c39;color:white;position:relative;z-index:5}.header-content{max-width:820px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:19px 24px;gap:20px}.identity{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{display:grid;grid-template-columns:1fr 1fr;gap:0px 4px;align-content:center;width:41px;height:43px;font-family:Georgia,serif;font-size:21px;line-height:21px;flex-shrink:0}.brand-mark span:nth-child(2),.brand-mark span:nth-child(3){color:#ef8c87}.brand-text strong{font-family:'Manrope',sans-serif;font-weight:800;letter-spacing:1.35px;font-size:14px;white-space:nowrap;display:block}.brand-text em{font-style:normal;color:#9dd8ca}.brand-text small{color:#aabfc3;font-size:10px;letter-spacing:1px;margin-top:2px;display:block}.icon-button{display:grid;place-items:center;border:1px solid #41616b;color:#d9eded;background:#203f4b;border-radius:50%;width:39px;height:39px;flex-shrink:0}.icon-button svg{width:19px;height:19px}.icon-button.is-spinning svg{animation:turn .9s linear infinite}
.hero{background:linear-gradient(135deg,#102c39 7%,#163b48 58%,#1e5152 115%);color:white;position:relative;overflow:hidden}.hero:after{content:'';position:absolute;inset:auto -30% -90% -20%;height:250px;background:radial-gradient(ellipse,#25878533,transparent 65%);pointer-events:none}.hero-content{position:relative;z-index:1;padding:30px 26px 28px}.hero-glow{position:absolute;font:300px Georgia,serif;right:-18px;top:-70px;color:#ffffff08;transform:rotate(-18deg)}.eyebrow{display:flex;align-items:center;gap:10px;color:#91d6ca;font-size:11px;text-transform:uppercase;font-weight:800;letter-spacing:2px}.pulse-dot{width:7px;height:7px;border-radius:50%;background:#7fdac7;box-shadow:0 0 0 5px #7fdac727}.hero h1{font-family:Manrope,sans-serif;font-size:clamp(27px,5vw,37px);line-height:1.22;letter-spacing:-1.5px;margin:15px 0 11px;font-weight:800}.hero h1 span{color:#9dd8ca}.hero p{max-width:510px;color:#c6d7d8;font-size:13px;line-height:1.8;margin:0 0 26px}.hero-bottom{border-top:1px solid #ffffff20;padding-top:17px;display:flex;justify-content:space-between;align-items:center;gap:10px;color:#b9d1d1;font-size:12px}.hero-suits{color:#c2cfcb;letter-spacing:5px;font-family:Georgia,serif;font-size:17px}.hero-suits i{color:#de928e;font-style:normal}
.content-wrap{padding:22px 24px 118px;min-height:55vh}.sync-banner{display:flex;align-items:center;gap:10px;background:#ecf4f1;color:#3d746e;border-radius:12px;padding:11px 13px;font-size:11px;font-weight:700;line-height:1.4}.sync-indicator{width:8px;height:8px;flex-shrink:0;border-radius:50%;background:#369b86}.sync-indicator.is-pending{background:#cda14f;animation:breathe 1.2s infinite}.sync-indicator.is-error{background:#d87868}.sync-aside{margin-left:auto;font-size:10px;font-weight:600;color:#719b95;white-space:nowrap}.panel{padding-top:30px}.panel.hidden{display:none}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}.section-title h2{font-family:Manrope,sans-serif;font-size:22px;letter-spacing:-.6px;margin:4px 0 0;font-weight:800}.section-overline{color:var(--sea);letter-spacing:2px;font-size:10px;font-weight:800;margin:0}.section-symbol{font-size:23px;color:#9baeb1}.count-bubble{display:inline-grid;place-items:center;background:var(--mist);color:var(--sea-dark);font:700 12px 'DM Sans',sans-serif;vertical-align:middle;border-radius:999px;width:25px;height:25px;position:relative;top:-2px;margin-left:5px}.card-stack{display:grid;gap:12px}.event-card{border:1px solid var(--line);background:white;border-radius:15px;padding:16px 18px;box-shadow:var(--soft-shadow)}.event-header{display:flex;align-items:center;gap:13px}.date-square{width:55px;min-width:55px;min-height:62px;border-radius:11px;background:#e6f1ed;color:#0d776c;display:flex;flex-direction:column;align-items:center;justify-content:center}.date-square strong{font-size:25px;line-height:1.1;font-weight:800;font-family:Manrope,sans-serif}.date-square span{font-size:9px;text-transform:uppercase;letter-spacing:1px;font-weight:800;margin-top:2px}.event-title{flex:1;min-width:0}.card-kicker{font-size:10px;color:#06877c;font-weight:800;letter-spacing:.65px;margin-bottom:4px}.event-title h3{font-family:Manrope,sans-serif;font-size:15px;line-height:1.32;margin:0;font-weight:800;overflow-wrap:anywhere}.favorite-toggle{color:#8da0a2;border:0;background:#f5f7f6;border-radius:50%;width:33px;height:33px;flex:none;font-size:20px;display:grid;place-items:center}.favorite-toggle[aria-pressed="true"]{color:#d7a147;background:#fff4d9}.event-meta{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0 0;padding-left:69px;font-size:11px;color:#6e8287}.meta{display:inline-flex;align-items:center;gap:5px}.meta.tag{background:#f1f5f4;color:#59747b;padding:4px 7px;border-radius:6px;font-weight:700}.event-actions{margin-top:15px;padding-top:12px;border-top:1px solid #edf1f0;display:flex;justify-content:space-between;align-items:center;gap:8px}.stage{font-size:10px;letter-spacing:.4px;color:#8b9a9e;font-weight:800}.result-link{display:inline-flex;align-items:center;gap:6px;text-decoration:none;background:#e8f5f1;color:#087c6f;border-radius:8px;font-size:11px;font-weight:800;padding:9px 10px;white-space:nowrap}.result-link:hover{background:#d5eae3}.source-link{color:#607e84;font-size:11px;text-decoration:none;font-weight:700}.source-link:hover{text-decoration:underline}.today-feature{border:1px solid #b1d7c8;background:linear-gradient(145deg,#fff,#f5fcf9);box-shadow:0 8px 25px #0e74600a}.today-feature .date-square{background:#087d74;color:white}.upcoming-heading{margin-top:35px}.text-button{border:0;background:none;color:var(--sea);font-weight:800;font-size:11px;display:inline-flex;align-items:center;gap:6px;padding:7px 0}.text-button span{font-size:18px}.empty-card{border:1px dashed #cddbd8;background:#fff;border-radius:15px;text-align:center;padding:28px 22px;color:#6f8285;line-height:1.6}.empty-card .empty-icon{display:block;font-size:29px;margin-bottom:6px;opacity:.7}.empty-card strong{display:block;color:#253d46;font-size:13px}.empty-card p{margin:5px 0 0;font-size:12px}.loading-card{padding:28px;background:white;border:1px solid #e4eae9;border-radius:14px;font-size:12px;color:#70828c;text-align:center}.spinner{display:inline-block;width:15px;height:15px;border:2px solid #bedbd2;border-top-color:var(--sea);border-radius:50%;vertical-align:-3px;animation:turn .8s linear infinite;margin-right:8px}.tip{display:flex;align-items:flex-start;gap:12px;margin-top:32px;border-radius:15px;background:#eaf1ee;padding:17px 16px}.tip-icon{font-size:18px;background:white;color:#378578;display:grid;place-items:center;border-radius:9px;min-width:34px;height:34px}.tip strong{font-size:12px}.tip p{font-size:11px;line-height:1.6;color:#68827e;margin:6px 0 0}.section-desc{font-size:12px;line-height:1.8;color:#70828c;margin:-5px 0 20px}.search-box{display:flex;align-items:center;gap:10px;background:white;border:1px solid #dbe5e2;border-radius:12px;padding:0 13px;height:46px}.search-box svg{width:18px;height:18px;color:#7a9592}.search-box input{border:0;outline:0;min-width:0;width:100%;background:transparent;color:#263a44;font-size:13px}.search-box input::placeholder{color:#9caeae}.category-chips{display:flex;gap:7px;overflow:auto;padding:14px 0 12px;margin-right:-24px;scrollbar-width:none}.category-chips::-webkit-scrollbar{display:none}.filter-chip{flex-shrink:0;background:#fff;border:1px solid #dce7e3;border-radius:100px;padding:8px 13px;color:#6a7f83;font-weight:700;font-size:11px}.filter-chip.selected{background:#0f6e69;border-color:#0f6e69;color:white}.list-subhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:3px 0 13px;font-size:11px;color:#7d9095;font-weight:700}.toggle-inline{display:flex;align-items:center;gap:6px;white-space:nowrap;cursor:pointer}.toggle-inline input{accent-color:#087d73}.page-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:42px;font-size:10px;color:#8da1a5}.page-footer a{color:#608d88}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:820px;width:100%;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid #e8eeee;padding:10px 10px calc(10px + env(safe-area-inset-bottom));z-index:20;box-shadow:0 -8px 36px #0a293411}.nav-item{display:flex;flex-direction:column;align-items:center;gap:5px;border:none;background:none;color:#92a1a4;font-size:10px;font-weight:700;padding:4px 0}.nav-item svg{width:21px;height:21px}.nav-item.active{color:#08776f}.nav-item.active::after{content:'';position:absolute;top:0;width:35px;height:3px;border-radius:0 0 5px 5px;background:#14867a}.toast{pointer-events:none;opacity:0;position:fixed;bottom:90px;left:50%;transform:translateX(-50%) translateY(12px);background:#193d47;color:white;font-size:12px;padding:12px 17px;border-radius:10px;max-width:calc(100vw - 35px);z-index:30;transition:.2s}.toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}#sourceFrame{position:absolute!important;left:-99999px!important;top:0!important;width:1px!important;height:1px!important;border:0!important;pointer-events:none!important;opacity:0!important}
@keyframes turn{to{transform:rotate(360deg)}}@keyframes breathe{50%{opacity:.4}}@media(min-width:700px){.hero-content{padding:45px 52px 34px}.content-wrap{padding:26px 52px 125px}.header-content{padding-left:52px;padding-right:52px}.event-card{padding:19px 22px}.category-chips{margin-right:-52px}}@media(max-width:360px){.header-content{padding-left:15px;padding-right:15px}.brand-text strong{font-size:12px}.brand-text small{font-size:9px}.content-wrap{padding-left:16px;padding-right:16px}.hero-content{padding-left:17px;padding-right:17px}.event-card{padding:13px}.event-meta{padding-left:0}.date-square{width:50px;min-width:50px}.event-actions{flex-wrap:wrap}}

/* --- v3 : calendrier en cartes, inspiré de la présentation du site du club --- */
.competition-browser{padding-top:10px}.category-tabs{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:10px 0 14px;margin:0 0 18px;position:sticky;top:0;z-index:3;background:linear-gradient(var(--bg) 82%,rgba(245,247,246,0));-webkit-overflow-scrolling:touch}.category-tabs::-webkit-scrollbar{display:none}.category-tabs .filter-chip{flex:0 0 auto;border:1px solid #cfd8d6;background:#fff;color:#1e4642;border-radius:999px;padding:11px 16px;font-weight:800;box-shadow:0 2px 8px rgba(16,44,57,.025)}.category-tabs .filter-chip.selected{background:#153c38;color:#fff;border-color:#0b2724;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.competition-heading{display:flex;justify-content:space-between;gap:22px;align-items:flex-start;padding:8px 2px 20px}.competition-heading h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(34px,7vw,48px);line-height:1;margin:2px 0 10px;color:#102c45}.competition-category-note{margin:0;color:#657b85;font-size:14px}.competition-heading .section-symbol{font-family:Georgia,serif;color:#142e42;font-size:17px;letter-spacing:5px;padding-top:25px}.competition-tools{display:grid;grid-template-columns:minmax(240px,1fr) auto;align-items:center;gap:14px;margin-bottom:22px}.compact-search{margin:0}.competition-tools .list-subhead{margin:0;white-space:nowrap}
.competition-sections{display:flex;flex-direction:column;gap:26px}.competition-format-section{display:flex;flex-direction:column;gap:14px}.format-heading{display:flex;align-items:center;gap:12px;border-bottom:2px solid #dde4e2;padding:0 0 9px}.format-heading .suit-pair{font-family:Georgia,serif;font-weight:700;color:#112d42;letter-spacing:4px}.format-heading .format-kicker{font-size:11px;letter-spacing:1.7px;text-transform:uppercase;color:#b78317;font-weight:900}.format-heading h3{margin:0;font-family:Georgia,'Times New Roman',serif;color:#102c45;font-size:25px;line-height:1.1}.competition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.competition-group-card{background:#fff;border:2px solid #c58b19;border-radius:18px;padding:20px 20px 16px;box-shadow:0 10px 28px rgba(59,43,14,.04);min-width:0}.competition-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #e7ebe9;padding-bottom:14px;margin-bottom:8px}.competition-card-title{min-width:0}.format-pill{display:inline-flex;align-items:center;border-radius:999px;background:#edf3f0;color:#2c635a;font-size:11px;font-weight:900;padding:7px 10px;margin-bottom:9px}.competition-card-title h4{font-family:Georgia,'Times New Roman',serif;color:#0e2a43;font-size:24px;line-height:1.05;margin:0;overflow-wrap:anywhere}.competition-count{flex:0 0 auto;background:#f7f5f0;border-radius:12px;padding:8px 10px;text-align:center;color:#776e5d;font-size:10px;font-weight:900;letter-spacing:1px;text-transform:uppercase}.competition-count strong{display:block;color:#173c37;font-size:14px;letter-spacing:0;margin-top:3px}.competition-rounds{display:flex;flex-direction:column}.competition-round{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px dashed #dce3e1}.competition-round:last-child{border-bottom:0;padding-bottom:2px}.stage-badge{justify-self:start;display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:8px 7px;border-radius:9px;font-size:12px;font-weight:900}.stage-fc{background:#dcefd5;color:#197226}.stage-fl{background:#fff0a9;color:#7c5e00}.stage-fn{background:#f8d6d0;color:#9a2d22}.stage-qc{background:#d8e9f7;color:#245b83}.stage-other{background:#e9efed;color:#536761}.round-main{min-width:0}.round-date{display:block;font-weight:900;color:#0d293c;font-size:15px;margin-bottom:5px}.round-place{display:inline-flex;align-items:center;gap:5px;color:#667b83;font-size:13px;text-decoration:none;border-bottom:1px dotted #8fa09f;max-width:100%;overflow-wrap:anywhere}.round-place::before{content:'●';color:#e44278;font-size:9px}.round-place:hover{color:#173c37;border-bottom-style:solid}.round-result{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;background:#153c38;color:#fff;text-decoration:none;font-weight:800;font-size:11px;padding:8px 10px;white-space:nowrap}.round-result:hover{background:#0f302d}.round-no-result{font-size:11px;color:#9ba8a6;white-space:nowrap}.category-block-title{display:flex;align-items:center;gap:8px;margin:0 0 -4px;color:#a57414;text-transform:uppercase;font-weight:900;font-size:11px;letter-spacing:1.5px}.category-block-title strong{font-family:Georgia,'Times New Roman',serif;color:#102c45;text-transform:none;font-size:28px;letter-spacing:0}
@media(max-width:680px){.competition-tools{grid-template-columns:1fr}.competition-tools .list-subhead{justify-content:space-between}.competition-grid{grid-template-columns:1fr}.competition-group-card{padding:17px 16px 14px}.competition-card-title h4{font-size:22px}.competition-round{grid-template-columns:42px minmax(0,1fr);gap:10px}.round-result,.round-no-result{grid-column:2;justify-self:start;margin-top:-5px}.competition-heading .section-symbol{display:none}.category-tabs{margin-left:-4px;margin-right:-4px}.category-tabs .filter-chip{padding:10px 13px}.format-heading h3{font-size:23px}}


.competition-deadline{flex:0 0 auto;background:#f7f5f0;border-radius:12px;padding:9px 12px;text-align:center;color:#776e5d;min-width:128px}.competition-deadline span{display:block;font-size:10px;font-weight:900;letter-spacing:1.2px}.competition-deadline strong{display:block;color:#173c37;font-size:13px;line-height:1.25;margin-top:5px;white-space:nowrap}.competition-count{display:none!important}
@media(max-width:460px){.competition-card-head{align-items:flex-start}.competition-deadline{min-width:118px;padding:8px 9px}.competition-deadline strong{font-size:12px;white-space:normal}}

/* V5 : dates limites d’inscription fidèles aux fiches du site du club. */
.competition-deadline{text-align:right;background:#f7f5ef;border-radius:13px;padding:9px 11px;min-width:118px;color:#7b817e}
.competition-deadline span{display:block;font-size:.65rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.competition-deadline strong{display:block;font-size:.88rem;color:#173c33;line-height:1.4;margin-top:3px;white-space:normal;font-weight:800}


/* V8 : cartouches du calendrier plus proches du site du club. */
.competition-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;align-items:start;border-bottom:1px solid #e7ebe9;padding-bottom:14px;margin-bottom:8px}
.competition-card-title{min-width:0}
.competition-card-title h4{font-family:Georgia,'Times New Roman',serif;color:#0e2a43;font-size:22px;line-height:1.05;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.competition-card-note{margin:10px 0 0;color:#a06d15;font-size:13px;line-height:1.55;max-width:34ch}
.competition-deadline{align-self:start;text-align:right;background:#f7f5ef;border-radius:13px;padding:10px 12px;min-width:170px;max-width:170px;color:#7b817e}
.competition-deadline span{display:block;font-size:.65rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.competition-deadline strong{display:block;font-size:.88rem;color:#173c33;line-height:1.45;margin-top:4px;white-space:normal;font-weight:800}
.round-no-result{display:none}
@media(max-width:680px){
  .competition-card-head{grid-template-columns:minmax(0,1fr) 132px;gap:10px 10px}
  .competition-card-title h4{font-size:18px}
  .competition-card-note{font-size:12px;line-height:1.45;max-width:22ch}
  .competition-deadline{min-width:132px;max-width:132px;padding:9px 10px}
  .competition-deadline strong{font-size:.82rem;line-height:1.35}
}
@media(max-width:460px){
  .competition-card-head{grid-template-columns:minmax(0,1fr) 124px}
  .competition-card-title h4{font-size:17px}
  .competition-deadline{min-width:124px;max-width:124px;padding:8px 9px}
  .competition-deadline strong{font-size:.78rem}
}


/* V9 : favoris accessibles directement depuis le calendrier. */
.competition-card-side{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex:0 0 auto}
.competition-favorite-toggle{width:34px;height:34px;background:#f5f7f6;border:1px solid #e3e9e7;box-shadow:0 1px 3px rgba(16,44,57,.05)}
.competition-favorite-toggle[aria-pressed="true"]{background:#fff4d9;border-color:#f0d186}
@media(max-width:680px){.competition-card-side{gap:8px}.competition-favorite-toggle{width:32px;height:32px}}

/* V10 : mêmes cartes pour le calendrier et les favoris. */
.event-empty-result{font-size:11px;color:#9ba8a6;font-weight:600}
#favoriteCards.competition-sections{display:flex;flex-direction:column;gap:26px}

/* V11 — Identité FFBRIDGE / Comité de Picardie, bleu officiel #1448DB. */
:root{--ink:#172b52;--muted:#6e7b97;--sea:#1448db;--sea-dark:#0d319e;--mist:#edf2ff;--bg:#f5f7ff;--line:#e0e6f4;--soft-shadow:0 12px 34px rgba(20,72,219,.06)}
.app-header{background:#0e309e}
.header-content{padding:15px 22px;gap:12px;min-height:88px}
.identity{gap:15px;flex:1;min-width:0}
.ffbridge-logo{height:66px;width:auto;max-width:min(45vw,205px);object-fit:contain;flex-shrink:1}
.brand-subtitle{font-size:13px;font-weight:800;line-height:1.35;letter-spacing:.1px;color:#fff;white-space:nowrap;border-left:1px solid #ffffff55;padding-left:14px}
.brand-subtitle small{font-size:10px;font-weight:600;color:#c9d6ff}
.icon-button{background:#2951b7;color:white;border-color:#7e9af0}
.hero{background:linear-gradient(135deg,#102f94 0%,#1448db 70%,#2c61f3 120%)}
.hero:after{background:radial-gradient(ellipse,#ffffff1b,transparent 66%)}
.eyebrow{color:#d5e0ff}.pulse-dot{background:#e7efff;box-shadow:0 0 0 5px #e6eeff33}
.hero h1 span{color:#d7e3ff}.hero p{color:#e0e8ff}.hero-bottom{color:#dce7ff}
.hero-suits{color:#f0f4ff}.hero-suits i{color:#ffd411}
.sync-banner{background:#eef3ff;color:#3153a3}.sync-aside{color:#6883c6}
.date-square{background:#e8efff;color:#1448db}.today-feature .date-square{background:#1448db}
.card-kicker{color:#1448db}.result-link{background:#e9efff;color:#1647c9}.result-link:hover{background:#dce6ff}
.filter-chip.selected,.category-tabs .filter-chip.selected{background:#1448db;border-color:#1448db;color:white}
.category-tabs .filter-chip{color:#253f77}.nav-item.active{color:#1448db}.nav-item.active::after{background:#1448db}
.search-box:focus-within{border-color:#1448db}.format-pill{background:#eef2ff;color:#264cb7}
.competition-group-card{border-color:#94acee;box-shadow:0 10px 28px rgba(24,64,170,.055)}
.round-result{background:#1448db}.round-result:hover{background:#0b32a0}
.tip{background:#edf2ff}.tip-icon{color:#1448db}
.competition-deadline{background:#edf2ff;color:#516eaf}.competition-deadline strong{color:#183a91}
@media(max-width:430px){.header-content{padding:12px 14px;min-height:75px}.ffbridge-logo{height:56px;max-width:44vw}.identity{gap:9px}.brand-subtitle{padding-left:8px;font-size:11px}.brand-subtitle small{font-size:9px}.icon-button{width:35px;height:35px}}


/* V12 — Correctif mobile : le badge "Powered by Netlify" ne doit plus masquer le menu. */
.bottom-nav{z-index:2147483646}
@media(max-width:680px){
  .content-wrap{padding-bottom:170px}
  .bottom-nav{bottom:52px;width:calc(100% - 16px);max-width:804px;border-radius:18px 18px 0 0;box-shadow:0 -10px 36px rgba(10,41,52,.14)}
  .toast{bottom:148px}
}


/* V13 — Invitation discrète à installer la PWA, y compris depuis un QR code. */
.install-card{border:1px solid #cddaf9;background:#fff;border-radius:16px;padding:15px;margin-top:16px;box-shadow:0 7px 24px rgba(20,72,219,.07)}
.install-card[hidden],.install-guide[hidden]{display:none!important}
.install-card-top{display:flex;align-items:flex-start;gap:12px}
.install-card-icon{border-radius:12px;flex:none;box-shadow:0 2px 6px rgba(11,45,111,.12)}
.install-card-description{min-width:0;flex:1}
.install-card-description strong{display:block;font-size:14px;line-height:1.35;color:#143c9c}
.install-card-description p{margin:5px 0 0;font-size:12px;line-height:1.45;color:#607293}
.install-dismiss{border:0;background:#f0f3fc;color:#4d6394;border-radius:50%;height:26px;width:26px;line-height:1;font-size:19px;flex:none;padding:0}
.install-action{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:13px;border:0;border-radius:11px;color:white;background:#1448db;padding:12px 15px;font-weight:800;font-size:13px;min-height:44px}
.install-action:hover{background:#103db9}.install-action:focus-visible,.install-link:focus-visible{outline:3px solid #ffd411;outline-offset:2px}
.install-guide{border-top:1px solid #e3eaf9;margin-top:15px;padding:13px 2px 2px;color:#293c65;font-size:12px;line-height:1.65}
.install-guide-title{font-size:13px;font-weight:800;margin:0 0 7px}
.install-guide ol{margin:4px 0 12px;padding-left:20px}.install-guide li{margin:6px 0}.install-guide-hint{color:#526690;margin:10px 0}
.install-link{background:#edf2ff;color:#1646bf;border:1px solid #b7c8f6;border-radius:9px;padding:10px 13px;font-size:12px;font-weight:800;min-height:40px}
.install-manual-url{display:block;width:100%;margin-top:9px;border:1px solid #b7c8f6;border-radius:9px;padding:10px;font-size:12px;color:#172b52}

/* V14: rendre l'invitation immédiatement visible avant la synchronisation. */
.install-card{margin:0 0 15px;border:2px solid #a8baf5;background:linear-gradient(125deg,#fff,#f4f7ff)}
.install-card[hidden]{display:none!important}
@media(max-width:680px){.install-action{min-height:48px;font-size:14px}}

/* V15 — phases DF et QN */
.stage-df{background:#d8e9f7;color:#245b83}
.stage-qn{background:#e7def8;color:#5b3c88}

#festivalPanel .festival-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 1.3fr) auto;
  align-items: center;
  gap: 12px 18px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
#festivalPanel .festival-row.is-next { border-color: #7798ef; background: #f5f7ff; }
#festivalPanel .festival-date { display: grid; gap: 5px; font-size: 13px; }
#festivalPanel .festival-status { font-size: 11px; color: #536782; }
#festivalPanel .festival-status.next { color: #1448db; font-weight: 800; }
#festivalPanel .festival-event h3 { margin: 0; font-size: 15px; }
#festivalPanel .festival-event p { margin: 4px 0 0; font-size: 12px; color: #536782; }
#festivalPanel .festival-result-link {
  display: inline-block;
  padding: 9px 10px;
  border-radius: 8px;
  color: #1741af;
  background: #edf1ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
#festivalPanel .festival-result-wait { font-size: 12px; color: #536782; }
@media (max-width: 550px) {
  #festivalPanel .festival-row { grid-template-columns: 1fr; gap: 8px; }
  #festivalPanel .festival-date { display: flex; flex-wrap: wrap; gap: 8px; }
}
/* V19 — classements généraux du Festival */
#festivalPanel .festival-ranking-links {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 2px 0 16px;
}
#festivalPanel .festival-ranking-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:42px;
  padding:10px 14px;
  border-radius:10px;
  background:#1448db;
  color:#fff;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 4px 12px rgba(20,72,219,.16);
}
#festivalPanel .festival-ranking-link.secondary {
  background:#edf1ff;
  color:#1741af;
  border:1px solid #c9d5ff;
  box-shadow:none;
}
@media (max-width:550px){
  #festivalPanel .festival-ranking-links{display:grid;grid-template-columns:1fr;}
  #festivalPanel .festival-ranking-link{width:100%;box-sizing:border-box;}
}


/* V151 — Calculateur de handicap Trophée de France (IC) */
.tdf-handicap{margin-top:14px;border-top:1px solid #e2e7f3;padding-top:14px}
.tdf-handicap-toggle{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;background:#eef3ff;color:#1448db;font-weight:900;padding:11px 14px}
.tdf-handicap-toggle:hover{background:#e2eaff}.tdf-handicap-panel{margin-top:12px;background:#f8faff;border:1px solid #dce5fb;border-radius:14px;padding:14px}
.tdf-handicap-panel[hidden]{display:none}.tdf-handicap-intro{margin:0 0 12px;color:#5f6f91;font-size:12px;line-height:1.45}
.tdf-halves{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tdf-half{background:white;border:1px solid #e2e8f7;border-radius:12px;padding:12px;min-width:0}
.tdf-half-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.tdf-half-head strong{color:#17345f;font-size:14px}
.tdf-boards{display:flex;align-items:center;gap:6px;color:#6c7a98;font-size:11px;font-weight:800}.tdf-boards input{width:52px;padding:6px 7px;border:1px solid #ccd7ee;border-radius:8px;text-align:center;color:#17345f;background:#fff}
.tdf-team{margin-top:9px}.tdf-team-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:11px;font-weight:900;color:#3f5680}.tdf-ic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.tdf-ic-grid input{width:100%;min-width:0;padding:8px 5px;border:1px solid #ccd7ee;border-radius:8px;text-align:center;color:#17345f;background:#fff;font-weight:800}.tdf-ic-grid input:focus,.tdf-boards input:focus{border-color:#1448db;box-shadow:0 0 0 2px #1448db1a;outline:0}
.tdf-half-result{margin-top:10px;padding-top:9px;border-top:1px dashed #dce3f1;color:#5b6c8b;font-size:11px;line-height:1.5}.tdf-half-result strong{color:#17345f}
.tdf-copy{margin:12px 0 0;width:100%;border:1px solid #cbd8f4;background:#fff;color:#244b9c;border-radius:10px;padding:9px 10px;font-weight:800;font-size:12px}
.tdf-final{margin-top:12px;background:#143fae;color:white;border-radius:12px;padding:13px 14px;text-align:center}.tdf-final small{display:block;color:#dce6ff;font-weight:700;margin-bottom:4px}.tdf-final strong{font-size:18px}.tdf-final span{display:block;font-size:11px;color:#dce6ff;margin-top:4px}
.tdf-reset{margin-top:9px;width:100%;border:0;background:transparent;color:#6d7b99;text-decoration:underline;font-size:11px}
@media(max-width:620px){.tdf-halves{grid-template-columns:1fr}.tdf-ic-grid{gap:5px}.tdf-ic-grid input{padding:9px 4px}}
