:root{--green:#213e18;--gold:#f5c44e;--wood:#8a4d20;--cream:#fff7e5}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top,#466d2c,#132a12 72%);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#fff}.topbar{position:sticky;top:0;z-index:5;background:#183315eF;border-bottom:1px solid #d6ad4b;box-shadow:0 5px 20px #0005;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 3vw}.brand{font-weight:900;letter-spacing:.08em;color:#ffe49a}.brand span{font-size:1.35em}.quicknav{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.quicknav button,.menu-toggle{border:1px solid #e0bb5d;background:#26451d;color:#fff;padding:9px 12px;border-radius:999px;font-weight:700;cursor:pointer}.quicknav button:hover,.tiles button:hover{background:#dcae42;color:#261806}.menu-toggle{display:none}.poster-wrap{position:relative;max-width:1646px;width:min(100%,1646px);margin:20px auto 0;line-height:0;box-shadow:0 20px 50px #0007}.poster{width:100%;height:auto;display:block}.hotspot{position:absolute;border:0;background:transparent;cursor:pointer;border-radius:12px;transition:background .15s,outline .15s}.hotspot:hover,.hotspot:focus-visible{background:#fff2;outline:3px solid #ffe27b;outline-offset:1px}/* Hotspots alignés sur les panneaux réels de l'affiche (coordonnées relatives) */
.hs-programme{left:0.4%;top:48.8%;width:18.1%;height:8.7%}
.hs-equipes{left:0.4%;top:58.1%;width:18.1%;height:8.0%}
.hs-jeux{left:0.4%;top:66.5%;width:18.1%;height:8.0%}
.hs-classement{left:0.4%;top:75.0%;width:18.1%;height:8.0%}
.hs-souvenirs{left:0.4%;top:83.3%;width:18.1%;height:8.0%}
.hs-inscriptions{left:81.0%;top:49.3%;width:17.4%;height:32.4%}
.hs-home{left:25.5%;top:0.5%;width:49%;height:32%}
.mobile-links{max-width:1000px;margin:26px auto;padding:24px;background:#f8edcf;color:#2d291b;border-radius:18px;text-align:center;display:none}.mobile-links h2{margin:0}.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.tiles button{padding:14px;border:2px solid #9b6b31;border-radius:12px;background:#e6c47b;font-weight:800;cursor:pointer;color:#38240d}.modal{position:fixed;inset:0;z-index:20;background:#000a;display:block;overflow-y:auto;padding:20px}.modal[hidden]{display:none}.modal-card{position:relative;max-width:520px;width:100%;max-height:calc(100vh - 40px);overflow-y:auto;margin:0 auto;background:var(--cream);color:#35220e;border:5px solid #b37b32;border-radius:20px;padding:30px 24px;text-align:center;box-shadow:0 20px 60px #0008}.close{position:absolute;right:10px;top:8px;border:0;background:transparent;font-size:32px;cursor:pointer;color:#49300f}.modal-icon{font-size:42px}.modal-card h2{font-family:Georgia,serif;font-size:2rem;color:#63330d;margin:8px 0}.modal-card p{line-height:1.6}.back{margin-top:14px;border:0;border-radius:999px;background:#285020;color:white;padding:12px 22px;font-weight:800;cursor:pointer}footer{text-align:center;padding:22px;color:#f6d988;font-weight:700;letter-spacing:.08em}@media(max-width:800px){.topbar{padding:8px 12px}.brand{font-size:.9rem}.menu-toggle{display:block}.quicknav{display:none;position:absolute;top:100%;left:0;right:0;background:#183315;padding:12px;justify-content:center}.quicknav.open{display:flex}.poster-wrap{margin:8px auto 0;width:100%;overflow:hidden}.mobile-links{display:block;margin:12px;padding:18px}.tiles{grid-template-columns:repeat(2,1fr)}.hotspot{border-radius:4px;display:none}}@media(max-width:430px){.brand{letter-spacing:.02em;font-size:.78rem}.tiles button{padding:11px 5px;font-size:.9rem}.mobile-links p{font-size:.9rem}}

/* Module inscriptions prototype */
#modal-extra{width:100%;margin-top:1rem}.reg-form{display:grid;gap:14px;text-align:left}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.reg-form label{display:grid;gap:5px;font-weight:600;font-size:.95rem}.reg-form input,.reg-form textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #c7b18a;border-radius:8px;font:inherit;background:#fff;color:#222}.reg-form fieldset{border:1px solid #c7b18a;border-radius:10px;padding:10px}.reg-form .check{display:flex;align-items:center;gap:8px;font-weight:400;margin:7px 0}.reg-form .check input{width:auto}.privacy-note{background:#fff3d6;border-left:4px solid #d58a13;padding:10px;border-radius:6px;font-size:.85rem}.submit-reg,.organizer-view{border:0;border-radius:9px;padding:12px 16px;background:#315a26;color:white;font-weight:bold;cursor:pointer}.organizer-view{margin-top:12px;background:#4a3924}.reg-row{padding:10px;border-bottom:1px solid #ddd}.reg-row small{color:#555}@media(max-width:560px){.form-grid{grid-template-columns:1fr}}

/* Participants admin */
.participants-admin{text-align:left;color:#33220e}.admin-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.admin-summary div{background:#e9d3a3;border-radius:10px;padding:10px;text-align:center}.admin-summary strong{display:block;font-size:1.5rem;color:#3b621f}.admin-summary span{font-size:.78rem}.participant-toolbar{display:flex;gap:8px;margin:12px 0}.participant-toolbar input{flex:1;min-width:0;padding:10px;border:1px solid #bda67c;border-radius:8px;font:inherit}.participant-toolbar button,.participant-edit-form button{border:0;border-radius:8px;padding:10px 12px;background:#315a26;color:white;font-weight:700;cursor:pointer}.participant-table-wrap{overflow:auto;max-height:48vh;border:1px solid #d5c5a2;border-radius:10px}.participant-table{width:100%;border-collapse:collapse;font-size:.85rem;background:#fff}.participant-table th,.participant-table td{padding:9px 8px;border-bottom:1px solid #e5dcc8;text-align:left;vertical-align:top}.participant-table th{position:sticky;top:0;background:#e9d3a3;z-index:1}.participant-table td small{display:block;color:#777}.participant-table .actions{white-space:nowrap}.actions button{border:0;background:transparent;cursor:pointer;font-size:1rem;padding:4px}.empty{text-align:center!important;padding:25px!important}.participant-edit-form{background:#f3e5c7;border:1px solid #c9aa6d;border-radius:12px;padding:14px;margin-top:12px;display:grid;gap:12px}.participant-edit-form h3{margin:0;color:#61350d}.participant-edit-form label{display:grid;gap:5px;font-size:.9rem;font-weight:600}.participant-edit-form input,.participant-edit-form textarea{padding:9px;border:1px solid #c7b18a;border-radius:8px;font:inherit;background:white}.participant-edit-form fieldset{border:1px solid #c7b18a;border-radius:8px}.participant-edit-form .check{display:flex;align-items:center;font-weight:400}.participant-edit-form .check input{width:auto}.edit-buttons{display:flex;gap:8px}.edit-buttons #cancel-edit{background:#776247}@media(max-width:560px){.participant-toolbar{flex-direction:column}.participant-table{font-size:.78rem}.participant-table th,.participant-table td{padding:6px}.admin-summary span{font-size:.68rem}}

/* Photos des participants */
.participant-table th:first-child,.participant-table td:first-child{width:74px;text-align:center}
.participant-thumb{width:58px;height:58px;object-fit:cover;border-radius:50%;border:2px solid #d8c9a8;display:inline-block}
.participant-no-photo{display:inline-flex;width:58px;height:58px;align-items:center;justify-content:center;border-radius:50%;background:#eee7d9;font-size:28px}
.photo-edit-label .photo-preview{display:block;margin-top:8px}
.photo-edit-label .photo-preview img{width:72px;height:72px}
/* Teams and protected organizer admin */
.teams-module{text-align:left;color:#34220e}.team-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.teams-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.team-card{border:2px solid var(--team);border-radius:14px;background:#fff;padding:12px;box-shadow:0 3px 8px #0001}.team-heading{display:flex;align-items:center;gap:10px;border-bottom:2px solid var(--team);padding-bottom:8px}.team-logo{width:54px;height:54px;display:grid;place-items:center;background:var(--team);border-radius:12px;font-size:32px}.team-heading h3{margin:0;color:var(--team)}.team-heading small{color:#5b4b35}.team-members{list-style:none;padding:8px 0 0;margin:0;display:grid;gap:7px}.team-members li{display:flex;align-items:center;gap:8px;min-width:0}.team-photo,.team-photo-placeholder{width:34px;height:34px;border-radius:50%;object-fit:cover;flex-shrink:0}.team-photo-placeholder{display:grid;place-items:center;background:#e8dec9}.team-members li>span:nth-child(2){min-width:0;flex:1}.team-members li small{display:block;color:#7a6b55}.team-members select{max-width:120px;padding:5px;border-radius:7px;border:1px solid #c5b18a}.team-empty{font-size:.9rem;color:#7a6b55}.team-action{border:0;border-radius:9px;padding:11px 14px;background:#315a26;color:white;font-weight:800;cursor:pointer}.admin-gate,.admin-panel{color:#33220e;text-align:left;background:#f4e6c8;border:1px solid #c7a56a;border-radius:14px;padding:14px}.admin-gate{text-align:center;max-width:440px;margin:0 auto}.admin-gate form{display:flex;gap:8px}.admin-gate input,.password-form input,.team-setting input{width:100%;min-width:0;padding:9px;border:1px solid #c5ad7e;border-radius:8px;background:#fff;color:#222;font:inherit}.admin-gate button{border:0;background:#315a26;color:white;border-radius:8px;padding:10px 14px;font-weight:700}.admin-error{color:#b21e1e;font-weight:700}.admin-panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.admin-panel-header h3{margin:0}.secondary{border:0;border-radius:8px;padding:9px 12px;background:#756044;color:#fff;font-weight:700}.admin-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.admin-tabs button{border:1px solid #a8844c;background:#e7d2a7;padding:9px 12px;border-radius:8px;font-weight:700;color:#38240d}.admin-tabs button.active{background:#315a26;color:white}.team-settings-list{display:grid;gap:10px}.team-setting{display:grid;grid-template-columns:48px 1.2fr 1.1fr .7fr;gap:8px;align-items:center;background:#fff8e9;border:1px solid #ddc79c;border-radius:10px;padding:9px}.team-setting-icon{height:42px;width:42px;border-radius:10px;display:grid;place-items:center;font-size:24px}.team-setting label{display:grid;gap:4px;font-size:.82rem;font-weight:700}.team-setting input[type=color]{height:38px;padding:2px}.save-success{background:#d9efd6;padding:8px;border-radius:8px;color:#235323}.password-form{display:grid;gap:10px;max-width:450px}.password-form label{display:grid;gap:5px;font-weight:700}.password-form .privacy-note{font-weight:400}@media(max-width:560px){.teams-grid{grid-template-columns:1fr}.team-setting{grid-template-columns:40px 1fr 1fr}.team-setting label:nth-of-type(3){grid-column:2/4}.team-setting-icon{height:36px;width:36px}.team-intro{align-items:stretch}.admin-gate form{flex-direction:column}}

/* Module équipes : photo de famille haute résolution en fond, icônes avec sélecteur */
.teams-module{background-image:linear-gradient(rgba(245,238,218,.90),rgba(245,238,218,.90)),url("images/famille-foret.png");background-size:cover;background-position:center;background-attachment:local;border-radius:14px;padding:12px}
.team-setting label:nth-of-type(2){min-width:0}
.emoji-picker{display:flex;flex-wrap:wrap;gap:3px;margin-top:5px}
.emoji-choice{border:1px solid #d0b98e;background:#fff;border-radius:5px;padding:3px;cursor:pointer;font-size:1.1rem;line-height:1.3}
.emoji-choice:hover{background:#e5d0a8;transform:scale(1.06)}
@media(max-width:560px){.emoji-picker{gap:2px}.emoji-choice{font-size:1rem;padding:2px}}
/* Module Jeux : catégories, fiches et formulaire détaillé */
.games-module{margin-top:18px}.games-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.games-categories{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.games-categories button{border:1px solid #d8c8a5;background:#f7f1e3;color:#4a3820;border-radius:22px;padding:9px 13px;cursor:pointer;font-weight:700}.games-categories button.active{background:#315a29;color:#fff;border-color:#315a29}.game-cards{display:grid;gap:10px}.game-card{display:flex;align-items:center;gap:12px;background:#fffdf8;border:1px solid #e2d4b8;border-radius:14px;padding:12px}.game-card-icon{font-size:30px}.game-card-main{flex:1;min-width:0}.game-card h3{margin:0 0 4px}.game-card p{margin:5px 0;color:#675b48}.game-meta{font-size:.85em;color:#88775c}.game-card button{border:1px solid #d8c8a5;border-radius:8px;background:#f6f0e3;padding:8px;cursor:pointer}.games-empty{text-align:center;padding:24px 14px;background:#f9f5eb;border:1px dashed #cdbb96;border-radius:14px}.games-empty div{font-size:32px}.game-editor-form{margin-top:18px;padding:16px;background:#f8f2e5;border:1px solid #dac9a6;border-radius:14px;display:grid;gap:12px}.game-editor-form h3{margin:0}.game-editor-form label{display:grid;gap:5px}.game-editor-form input,.game-editor-form select,.game-editor-form textarea{width:100%;box-sizing:border-box;border:1px solid #cbb995;border-radius:8px;padding:9px;font:inherit;background:white}.game-editor-buttons{display:flex;gap:8px;flex-wrap:wrap}
.game-video-upload-label{display:block;margin:14px 0;padding:12px;border:1px dashed #9c8a66;border-radius:10px;background:#faf6ec}.game-video-upload-label input{display:block;margin-top:8px;max-width:100%}.game-video-preview video,.game-video-player{display:block;width:100%;max-width:520px;max-height:360px;border-radius:10px;margin:10px 0;background:#111}.game-video-preview{margin:8px 0 16px}.game-video-preview p,.game-video-label{font-size:.9rem;color:#71664f}.game-video-view{margin-top:10px}

/* Jeux : liste simple + fiche détaillée */
.games-module{display:flex;flex-direction:column;gap:16px}.game-menu-list{display:flex;flex-direction:column;gap:9px}.game-menu-row{display:flex;align-items:center;gap:8px}.game-menu-button{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:14px 16px;background:#fff;border:1px solid #e4e9df;border-radius:13px;box-shadow:0 3px 10px rgba(20,50,30,.05);cursor:pointer;text-align:left;color:#23431b;transition:transform .12s,background .12s,border-color .12s}.game-menu-button:hover{background:#f6faf3;border-color:#a9c39e;transform:translateY(-1px)}.game-menu-icon{font-size:1.55rem;flex:0 0 38px;text-align:center}.game-menu-name{font-weight:750;flex:1;min-width:0}.game-menu-arrow{font-size:1.5rem;color:#6d8a63;line-height:1}.game-edit-button,.game-delete-button{border:0;border-radius:9px;padding:9px 11px;cursor:pointer;font-weight:700;flex:0 0 auto}.game-edit-button{background:#f0f3eb;color:#23431b}.game-delete-button{background:#fff0ed;color:#a33}.game-detail-page{margin-top:18px;padding:20px;background:#fff;border:1px solid #e1e8dc;border-radius:18px;box-shadow:0 8px 24px rgba(20,50,30,.08)}.game-detail-back{background:#edf2e8;color:#23431b;border:0;border-radius:9px;padding:9px 13px;font-weight:700;cursor:pointer}.game-detail-heading{display:flex;gap:15px;align-items:center;margin:15px 0 20px}.game-detail-heading>span{font-size:2.5rem}.game-detail-heading h2{margin:0;color:#23431b}.game-detail-heading p{margin:5px 0;color:#667267}.game-detail-section{padding:15px 0;border-top:1px solid #e7ece3}.game-detail-section h3{margin:0 0 10px;color:#2d6747}.game-detail-section p{line-height:1.6;white-space:pre-wrap}.game-detail-video{width:100%;max-height:550px;background:#111;border-radius:12px}.game-detail-text{white-space:pre-wrap}.game-meta{color:#68766a;font-size:.9rem;margin-top:3px}
@media(max-width:650px){.game-menu-button{padding:12px 13px;gap:9px}.game-menu-icon{flex-basis:32px;font-size:1.35rem}.game-menu-name{font-size:.96rem}.game-edit-button,.game-delete-button{padding:8px 9px}.game-detail-page{padding:14px}}
