@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');
:root{color-scheme:dark;--bg:#090e18;--panel:#131b29;--line:#344151;--cream:#f7ebd3;--gold:#e5bd7e;--red:#ad3f33}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:#f5f1e8;background:var(--bg);font:15px/1.6 'DM Sans',Arial,sans-serif}a{color:inherit;text-decoration:none}.wrap{max-width:1240px;margin:auto;padding:0 25px}.nav{height:78px;display:flex;align-items:center;justify-content:space-between;gap:25px}.brand{font:700 25px 'Playfair Display',serif;white-space:nowrap;color:var(--cream)}.brand em{font-style:normal;color:var(--gold)}nav{display:flex;gap:30px}nav a:hover,.back:hover{color:var(--gold)}.account{display:flex;align-items:center;gap:15px}.who{color:var(--gold);max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.google{background:#f5f5f5;color:#222;padding:10px 14px;border-radius:10px;font-weight:700}.hero{min-height:490px;background:linear-gradient(90deg,#090e18 0%,rgba(9,14,24,.90) 27%,rgba(9,14,24,.12) 80%),url('/static/img/hero.jpg') center center/cover}.hero-inner{height:490px;display:flex;align-items:center}.hero-text{max-width:510px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--gold);font-weight:700;text-transform:uppercase}h1,h2,h3{font-family:'Playfair Display',Georgia,serif;line-height:1.18;color:var(--cream)}h1{font-size:clamp(45px,5.5vw,74px);margin:16px 0}h1 i{color:var(--gold)}h2{font-size:32px}h3{font-size:23px}.hero p{max-width:430px;font-size:17px;color:#e4e9ed;margin-bottom:30px}.primary,.ghost{border:1px solid #cb7d68;border-radius:9px;padding:12px 19px;background:linear-gradient(#bb4a39,#842b2b);color:#fff;font:700 14px 'DM Sans',sans-serif;cursor:pointer;display:inline-block}.primary:hover{filter:brightness(1.15)}.ghost{background:transparent;border-color:#89919a}.small{padding:7px 10px}.wide{width:100%}.center{text-align:center}.sectionhead{display:flex;justify-content:space-between;align-items:end;gap:20px}.muted,.meta{color:#b0b9c7}section.wrap{padding-top:55px;padding-bottom:25px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.story,.panel,.mygame{background:linear-gradient(140deg,#1b2635,#0e151f);border:1px solid #726047;border-radius:15px;overflow:hidden}.story img{width:100%;height:215px;object-fit:cover;display:block}.story-body{padding:24px}.story-body h3{min-height:55px;margin:11px 0}.story-body p{min-height:72px;color:#d5dce3}.meta{font-size:13px;margin:18px 0}.modes{display:flex;flex-wrap:wrap;gap:12px;margin:15px 0}.modes label{font-size:13px;cursor:pointer}.modes input{accent-color:var(--red)}.mygames{display:grid;gap:12px}.mygame{padding:18px;display:flex;justify-content:space-between;gap:10px;align-items:center}.mygame small{color:#a6b6c5}.mygame span{color:var(--gold)}footer{padding:60px 25px!important;font-size:12px;color:#8792a0}.gamehero{background-position:center;background-size:cover;padding:43px 0 55px}.gamehero h1{font-size:42px}.gamehero p{max-width:520px}.back{display:block;color:#d5dded;margin-bottom:23px}.pill{display:inline-block;padding:4px 15px;border:1px solid #9a7953;color:var(--gold);border-radius:20px}.gamegrid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:22px;margin-top:30px}.panel{padding:24px;margin-bottom:22px;border-color:#3e4958}.panel h2{font-size:25px}.panel h3{font-size:21px;margin-top:4px}.calendar{display:grid;grid-template-columns:repeat(8,1fr);gap:9px;margin:20px 0}.day{height:55px;display:grid;place-items:center;border-radius:7px;background:#27364a;border:1px solid #ad9164;font:700 19px Georgia}.day.locked{background:#181f2b;filter:grayscale(1);border-color:#354151;font-size:13px;opacity:.6}.clues details{margin:8px 0;border:1px solid #344151;border-radius:8px;overflow:hidden}.clues summary{padding:12px;cursor:pointer}.paper{padding:21px 25px;background:#ead8b5;color:#2d261e;border-radius:5px;margin:11px}.paper h3,.paper .eyebrow{color:#513724}.paper p{font-size:17px}.paper small{color:#806c50}.note,.msg{background:#202c3d;border-radius:9px;padding:11px 15px;margin:10px 0;overflow-wrap:anywhere}.note p,.msg p{margin:3px 0}.note b,.msg b{color:var(--gold)}textarea,select,input[readonly]{background:#0e1723;border:1px solid #526072;border-radius:7px;padding:12px;color:#fff;font:inherit;width:100%;margin:8px 0}textarea{min-height:72px;resize:vertical}.member,.suspects>div{padding:8px 0;border-bottom:1px solid #344151}.chat{max-height:380px;overflow:auto}.suspects{display:grid;grid-template-columns:1fr 1fr;gap:0 10px;font-size:13px}@media(max-width:850px){nav{display:none}.cards{grid-template-columns:1fr}.story img{height:270px}.gamegrid{grid-template-columns:1fr}.who{display:none}.sectionhead{align-items:start;flex-direction:column}.mygame{flex-direction:column;align-items:start}}@media(max-width:480px){.nav{height:72px}.brand{font-size:18px}.google{font-size:11px;padding:9px}.hero{background-position:60%}.hero-inner{height:450px}.calendar{grid-template-columns:repeat(6,1fr)}.day{height:47px}}
/* v0.2 — multi-thèmes, salon d'enquête, profil et compte à rebours */
[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.nav{height:auto;min-height:80px;flex-wrap:wrap}.brand{display:flex;gap:11px;align-items:center}.brand small{display:block;font:400 11px/1.2 'DM Sans',Arial,sans-serif;letter-spacing:1px;color:#a7b3c5;margin-top:3px}.brand-icon{font:44px/1 Georgia;color:var(--gold)}.myavatar{display:flex;gap:6px;align-items:center;padding:7px 10px;background:#1b293c;border:1px solid #3c4b60;border-radius:9px}.myavatar span{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.google-mark{font-weight:900;background:linear-gradient(70deg,#4285f4 30%,#34a853 50%,#fbbc05 70%,#ea4335 95%);background-clip:text;-webkit-text-fill-color:transparent}
.hero-inner{gap:30px;justify-content:space-between}.hero-clock{flex:0 0 330px;background:rgba(12,18,30,.85);padding:25px;border:1px solid #b89967;border-radius:14px;backdrop-filter:blur(7px)}.clock-display{font:bold clamp(25px,3vw,39px) Georgia,serif;letter-spacing:.4px;color:#ffe7af;display:block;margin:12px 0}.smallline{font-size:13px}.features{display:grid;grid-template-columns:repeat(4,1fr);padding-top:22px!important;padding-bottom:10px!important;gap:12px}.features>div{text-align:center;font-size:23px}.features b,.features small{display:block;font-size:15px}.features small{font-size:12px;color:#adb7c5}
.filterbar{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0 24px}.filter{background:transparent;border:1px solid #68748a;border-radius:20px;color:#f0f0eb;cursor:pointer;padding:8px 14px;font:600 12px 'DM Sans',Arial}.filter.active{background:#dec59c;color:#171717;border-color:#dec59c}.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.story-body h3{min-height:55px}.story-body p{min-height:75px}
.clock-wrap{padding:12px 20px;background:#1e2a3b;border:1px solid #807254;border-radius:12px}.clock-wrap>span{font-size:13px;color:#aab5c6}.countdown-line{background:#222f42;padding:10px 15px;border-radius:9px}.timer-inline{font-size:17px;color:#ffe1a0}.countdown-line small{color:#acb5c7}
.gamehero h1{font-size:clamp(32px,4vw,50px)}.gamegrid{grid-template-columns:minmax(0,1.75fr) minmax(320px,1fr)}.gamegrid .panel{overflow:hidden}.calendar{grid-template-columns:repeat(8,minmax(0,1fr))}.day{position:relative}.day small{position:absolute;font-size:10px;bottom:1px;right:4px;color:#b5b6bc}.day.open:hover{background:#5b4539}.invite-row{display:flex;gap:7px}.invite-row input{min-width:0;flex:1}.invite-row button{align-self:center}.owner-icon{color:var(--gold);margin-left:auto;font-size:11px}.member{display:flex;align-items:center;gap:8px;flex-wrap:wrap;overflow-wrap:anywhere}.member small{color:#b5bbca}.avatar-mini{font-size:23px}.live-indicator{white-space:nowrap;color:#86d9a5;font-size:12px}.chat{height:340px;max-height:340px;overflow-y:auto;scrollbar-color:#596477 transparent;padding-right:7px}.msg div,.note{display:flex;gap:8px;flex-wrap:wrap;align-items:baseline}.msg div small,.note small{color:#a8b3c0;margin-left:auto;font-size:11px}.msg p,.note p{width:100%;margin:4px 0;white-space:pre-wrap}.chat-panel .sectionhead{align-items:center}.chat-panel .sectionhead h3{margin:7px 0}.recipient-types{border:1px solid #45546b;border-radius:9px;margin:14px 0;padding:10px}.recipient-types label{display:block;margin:7px 0;font-size:13px}.recipient-types input{accent-color:var(--gold)}.recipient-list{max-height:200px;overflow:auto;border:1px solid #45546b;border-radius:8px;padding:10px}.recipient-list .toggle{margin:5px 0}.toggle{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-size:14px}.toggle input{flex:none;width:17px;height:17px;accent-color:#e2bd83;margin-top:3px}.toggle small{color:#b6bac6}.panel label:not(.toggle):not(.avatar-option){display:block;margin-top:9px}.panel input:not([type=radio]):not([type=checkbox]),.profile-form input[type=text]{background:#0e1723;border:1px solid #526072;border-radius:7px;padding:11px;color:#fff;font:inherit;width:100%;margin:7px 0}.panel fieldset{font:inherit}.panel fieldset legend{color:#e9d2aa;font-weight:700}.success{background:#183a30;border:1px solid #3d8068;border-radius:8px;padding:11px;color:#b8f4d0}
.profile-page{padding-top:45px;padding-bottom:60px}.profile-page h1{font-size:clamp(36px,5vw,55px)}.profile-form{max-width:710px}.profile-form h2{font-size:25px;margin-top:24px}.avatar-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}.avatar-option{display:block;position:relative;cursor:pointer}.avatar-option span{display:grid;place-items:center;aspect-ratio:1;font-size:30px;border-radius:10px;border:2px solid #4e5a69;background:#1b293a}.avatar-option input{opacity:0;position:absolute;pointer-events:none}.avatar-option input:checked+span{border-color:#ebc789;background:#483c31;box-shadow:0 0 0 2px rgba(235,199,137,.3)}.avatar-option input:focus-visible+span{outline:3px solid #fff}.profile-form .toggle{padding:10px;background:#1b293a;border-radius:10px;margin-bottom:5px}
@media(max-width:1100px){.hero-clock{flex-basis:300px}.features{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.gamegrid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.nav{gap:10px;padding:10px 20px}.nav nav{display:none}.brand{font-size:21px}.brand small{font-size:9px}.account form{display:none}.hero-inner{height:auto;min-height:520px;flex-direction:column;align-items:stretch;justify-content:center;padding-top:35px;padding-bottom:35px}.hero-clock{flex:auto;max-width:100%;padding:17px}.hero-text p{margin-bottom:20px}.cards{grid-template-columns:1fr}.features{grid-template-columns:repeat(2,1fr)}.calendar{grid-template-columns:repeat(6,minmax(0,1fr))}.avatar-grid{grid-template-columns:repeat(4,1fr)}.myavatar span{max-width:80px}.story-body h3,.story-body p{min-height:0}}
/* Ajustement du grand titre et de l'espace du compte à rebours. */
@media(min-width:701px){.hero,.hero-inner{min-height:540px}.hero-inner{height:auto}.hero-text{max-width:650px}.hero-text h1{font-size:clamp(44px,4.45vw,62px);line-height:1.1}.hero-clock{flex-basis:320px}}
.hero-clock .clock-display{font-size:clamp(23px,2.05vw,29px);white-space:nowrap}
