.button-discord { justify-content: center; width: 100%; margin: 20px 0 0; background: #5865f2; color: #fff; }.button-discord:hover { background: #4752c4; }.login-separator { margin: 18px 0 !important; text-align: center; color: #bdeeff; font-size: 12px; font-weight: 800; }
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  --ink: #f8f3f7;
  --paper: #03050c;
  --line: #28202d;
  --moss: #ffbfd0;
  --sage: #140b18;
  --coral: #d83b86;
  --cream: #0b0c14;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 13% 7%, #651824 0, transparent 25%), linear-gradient(#1a0e1c66 1px, transparent 1px), linear-gradient(90deg, #1a0e1c66 1px, transparent 1px), var(--paper); background-size: auto, 48px 48px, 48px 48px, auto; font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header { height: 64px; max-width: none; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #03050ce8; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.04em; font-size: 18px; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; background: linear-gradient(135deg, var(--moss), var(--coral)); color: #07070c; border-radius: 50%; font: 500 9px var(--mono); letter-spacing: -1px; }
.site-header nav { display: flex; gap: clamp(22px, 3vw, 48px); font-size: 14px; font-weight: 600; }
.site-header nav span { color: #aaa7b7; margin-left: 4px; }
.site-header nav a { transition: opacity .2s; }
.site-header nav a:hover, footer a:hover { opacity: .6; }
.header-action { padding: 0; border: 0; color: white; font-size: 30px; font-weight: 300; line-height: 1; }
.header-action span { margin-left: 8px; }

.hero { min-height: calc(100vh - 64px); max-width: none; margin: auto; padding: 0; position: relative; overflow: hidden; background: #030305; isolation: isolate; }
.eyebrow { margin: 0 0 17px; color: var(--moss); font: 500 11px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Playfair Display", serif; font-weight: 500; letter-spacing: -.055em; }
h1 { max-width: 850px; position: relative; z-index: 1; font-family: Impact, "Arial Black", sans-serif; font-size: clamp(82px, 12vw, 186px); line-height: .72; letter-spacing: -.075em; text-transform: uppercase; }
h1 em { color: var(--coral); text-shadow: 4px 1px var(--moss); }
.hero-content { position: absolute; z-index: 2; inset: auto 5.3vw 54px; }
.hero-copy { max-width: 390px; margin: 25px 0; position: relative; z-index: 1; color: #dedbe8; font-size: 15px; line-height: 1.5; }
.hero-actions { display: flex; gap: 26px; align-items: center; position: relative; z-index: 1; }
.button { border: 0; cursor: pointer; display: inline-flex; gap: 24px; align-items: center; padding: 15px 19px; font-size: 13px; font-weight: 600; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: #07070c; background: linear-gradient(100deg, var(--moss), #8c6cf6); }
.button-dark:hover { background: linear-gradient(100deg, var(--coral), #8c6cf6); }
.text-link { border-bottom: 1px solid; padding-bottom: 3px; font-size: 13px; font-weight: 600; }
.text-link span { margin-left: 8px; }
.hero-caption { display: flex; align-items: center; gap: 8px; margin: 26px 0 0; color: #aaa7b7; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.live-dot { width: 7px; height: 7px; background: var(--coral); border-radius: 50%; }
.hero-collage { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 58% 65%, rgba(153, 28, 17, .38), transparent 45%), linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.36) 52%, rgba(0,0,0,.12) 100%); }
.collage-frame { position: absolute; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 14px 36px rgba(0,0,0,.7); filter: saturate(1.25) contrast(1.15); }
.frame-one { width: 20%; height: 37%; left: -2%; top: 9%; transform: rotate(-9deg); background: rgba(0,167,231,.16); }
.frame-two { width: 27%; height: 57%; left: 24%; top: 5%; border-radius: 50%; background: rgba(255,255,255,.08); }
.frame-three { width: 34%; height: 82%; left: 53%; top: 4%; background: rgba(0,167,231,.13); clip-path: polygon(12% 0, 100% 4%, 89% 100%, 0 92%); }
.frame-four { width: 28%; height: 57%; right: -2%; top: 8%; background: rgba(209,40,47,.16); }
.frame-five { width: 21%; height: 39%; right: 10%; bottom: -6%; border: 2px solid var(--coral); background: rgba(255,255,255,.1); }
.collage-spray { position: absolute; right: -4%; bottom: 0; width: 58%; height: 20%; background: radial-gradient(ellipse, rgba(227,49,43,.95) 0 1%, transparent 1.8%) 0 0 / 12px 12px, linear-gradient(5deg, transparent 32%, rgba(247,185,40,.68) 33% 35%, transparent 36%); opacity: .7; transform: rotate(-4deg); }

.section { max-width: 1440px; margin: auto; padding: 90px 5.3vw; }
.collections { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 36px; }
h2 { font-size: clamp(38px, 4.3vw, 62px); line-height: 1; }
.section-heading > p { max-width: 275px; margin: 0 0 3px; color: #aaa7b7; font-size: 14px; line-height: 1.55; }
.category-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.category-card { min-height: 160px; padding: 20px; text-align: left; background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; transition: background .25s; }
.category-card:hover, .category-card.active { background: linear-gradient(135deg, #382014, #4a0e0d); box-shadow: inset 0 -3px var(--moss); }
.category-card strong { display: block; margin-top: 35px; font-family: "Playfair Display", serif; font-size: 27px; font-weight: 500; letter-spacing: -.04em; }
.category-card span { color: var(--moss); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }

.gallery { background: linear-gradient(135deg, #17100d, #0c0909); max-width: none; padding-left: max(5.3vw, calc((100vw - 1440px) / 2 + 5.3vw)); padding-right: max(5.3vw, calc((100vw - 1440px) / 2 + 5.3vw)); }
.gallery-heading { max-width: 1288px; margin-left: auto; margin-right: auto; }
.gallery-grid { max-width: 1288px; margin: auto; columns: 3 260px; column-gap: 18px; }
.photo-card { position: relative; display: inline-block; width: 100%; margin: 0 0 18px; overflow: hidden; vertical-align: top; background: #1c1b2b; cursor: zoom-in; border: 1px solid #2c2a3f; }
.photo-card img { display: block; width: 100%; min-height: 220px; object-fit: cover; transition: transform .45s ease; }
.photo-card:hover img { transform: scale(1.035); filter: saturate(1.25) contrast(1.08); }
.photo-overlay { position: absolute; inset: auto 0 0; padding: 39px 16px 14px; color: white; background: linear-gradient(transparent, rgba(0,0,0,.58)); opacity: 0; transition: opacity .25s; }
.photo-card:hover .photo-overlay { opacity: 1; }
.photo-overlay strong { display: block; font-size: 14px; }
.photo-overlay span { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.empty-state { padding: 40px; text-align: center; color: #656861; }

.admin { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(42px, 9vw, 150px); align-items: start; }
.admin-intro > p:not(.eyebrow) { max-width: 420px; color: #aaa7b7; line-height: 1.65; }
.admin-note { display: flex; gap: 10px; margin-top: 34px; max-width: 410px; padding-top: 16px; border-top: 1px solid var(--line); color: #aaa7b7; font-size: 12px; line-height: 1.55; }
.admin-note span { display: grid; flex: 0 0 17px; width: 17px; height: 17px; place-items: center; border: 1px solid; border-radius: 50%; font: 11px "Playfair Display", serif; }
.upload-panel { padding: clamp(22px, 4vw, 44px); background: linear-gradient(135deg, #2b1a11, #1d1510); border: 1px solid #624125; }
.drop-zone { min-height: 155px; border: 1px dashed #8975ae; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; text-align: center; transition: background .2s; }
.drop-zone:hover { background: rgba(77, 53, 121, .28); }
.drop-zone input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.upload-icon { display: grid; width: 28px; height: 28px; margin-bottom: 9px; place-items: center; color: #07070c; background: var(--coral); border-radius: 50%; font-size: 20px; font-weight: 300; }
.drop-zone strong { font-size: 14px; }
.drop-zone small { margin-top: 5px; color: #aaa7b7; font-size: 11px; }
.field-group { margin-top: 30px; }
.field-label { display: block; margin-bottom: 13px; font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.category-checkboxes { display: flex; flex-wrap: wrap; gap: 9px; }
.category-checkboxes label { cursor: pointer; }
.category-checkboxes input { position: absolute; opacity: 0; }
.category-checkboxes span { display: block; padding: 9px 12px; border: 1px solid #524b70; color: #c5c0d0; font-size: 12px; transition: .2s; }
.category-checkboxes input:checked + span { background: var(--coral); color: #120812; border-color: var(--coral); }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; min-height: 72px; margin: 26px 0; color: #aaa7b7; font-size: 12px; align-items: center; }
.preview-item { width: 56px; height: 56px; overflow: hidden; background: #c6ccc0; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }

.lightbox { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 40px; color: white; background: rgba(18, 24, 21, .94); }
.lightbox[hidden] { display: none; }
.lightbox-stage { display: grid; width: min(900px, 92vw); height: 78vh; place-items: center; overflow: hidden; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: grab; touch-action: none; transition: transform .12s ease; }
.lightbox img:active { cursor: grabbing; }
.lightbox-close { position: fixed; top: 23px; right: 32px; color: white; border: 0; background: none; cursor: pointer; font-size: 37px; line-height: 1; }
.lightbox-controls { position: fixed; right: 32px; bottom: 24px; display: flex; gap: 7px; }
.lightbox-controls button { min-width: 38px; height: 34px; border: 1px solid #bdeeff; border-radius: 6px; background: #061b4d; color: #fff; cursor: pointer; font-weight: 800; }
.lightbox-controls button:hover, .lightbox-controls button:focus-visible { border-color: #00a7e7; background: #00a7e7; outline: 0; }
.lightbox-caption { position: fixed; bottom: 24px; left: 32px; }
.lightbox-caption p { margin: 0 0 5px; font-size: 14px; font-weight: 600; }
.lightbox-caption span { font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #cbd4bd; }
footer { max-width: 1440px; margin: auto; padding: 32px 5.3vw; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #aaa7b7; font-size: 12px; }
footer > a:last-child { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .site-header { padding: 0 20px; } .site-header nav, .header-action { display: none; }
  .hero { min-height: 650px; } .hero-content { inset: auto 20px 38px; } h1 { font-size: clamp(70px, 21vw, 110px); } .frame-one { width: 39%; height: 29%; left: -7%; } .frame-two { width: 42%; height: 45%; left: 36%; top: 6%; } .frame-three { width: 49%; height: 58%; left: 57%; top: 7%; } .frame-four { display: none; } .frame-five { width: 37%; height: 29%; right: -4%; bottom: 4%; } .hero-caption { display: none; }
  .hero-copy, .hero-actions { position: relative; z-index: 2; } .section { padding: 64px 20px; } .section-heading { align-items: start; flex-direction: column; margin-bottom: 26px; } .section-heading > p { max-width: 380px; }
  .category-list { grid-template-columns: repeat(2, 1fr); } .category-card { min-height: 135px; } .category-card strong { margin-top: 24px; font-size: 23px; }
  .gallery { padding-left: 20px; padding-right: 20px; } .gallery-grid { columns: 2 145px; column-gap: 10px; } .photo-card { margin-bottom: 10px; } .photo-overlay { opacity: 1; padding: 30px 11px 10px; }
  .admin { grid-template-columns: 1fr; gap: 35px; } footer { padding: 28px 20px; flex-wrap: wrap; } footer p { width: 100%; order: 3; margin: 0; }
}

/* Direction visuelle inspirée du projet pizza-discord-site : bleu marine, cyan et cartes claires. */
:root { --ink: #172338; --paper: #f5f7fb; --line: #e3e8f0; --moss: #00a7e7; --sage: #eaf7fc; --coral: #d1282f; --cream: #f5f7fb; }
body { color: var(--ink); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; }
.site-header { position: relative; top: auto; z-index: 5; height: 70px; padding: 0 5.3vw; background: #061b4d; border: 0; box-shadow: 0 2px 12px rgba(0,0,0,.28); color: #fff; }
body.home-page .site-header { width: 100%; margin: 0; }
.brand { font-size: 16px; font-weight: 900; letter-spacing: .6px; }
.site-header nav { font-size: 14px; font-weight: 700; }
.site-header nav a:hover { color: var(--moss); opacity: 1; }
.header-action { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--moss); border-radius: 8px; color: var(--moss); font-size: 25px; }
.admin-button { padding: 10px 13px; border: 1px solid var(--moss); border-radius: 8px; color: var(--moss); font-size: 12px; font-weight: 800; transition: .2s; }.admin-button:hover { background: var(--moss); color: #fff; }.discord-button { padding: 10px 13px; border-radius: 8px; background: #5865f2; color: #fff; font-size: 12px; font-weight: 800; transition: .2s; }.discord-button:hover, .discord-button:focus-visible { background: #4752c4; outline: 2px solid #bdeeff; outline-offset: 2px; }
.hero { min-height: 560px; padding: 0; background: radial-gradient(circle at 76% 22%, rgba(0,167,231,.42) 0 8%, transparent 30%), linear-gradient(135deg, #05163e, #0c3677 55%, #007fb9); }
.hero::after { content: ""; position: absolute; width: min(40vw, 520px); height: min(40vw, 520px); right: 7vw; bottom: -125px; border: 30px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 30px rgba(0,167,231,.1); }
.hero-collage { display: none; }
.hero-content { inset: auto auto 78px 5.3vw; max-width: 690px; }
.eyebrow { color: #bdeeff; font: 700 11px "Segoe UI", Arial, sans-serif; letter-spacing: 1.1px; }
h1 { color: #fff; font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(48px, 7vw, 90px); font-weight: 900; line-height: .98; letter-spacing: -.06em; text-transform: none; }
h1 em { color: var(--moss); text-shadow: none; }
.hero-copy { max-width: 470px; color: #dcecff; font-size: 17px; line-height: 1.6; }
.button { border-radius: 8px; padding: 12px 16px; font-weight: 800; }
.button-dark { background: var(--moss); color: #fff; }
.button-dark:hover { background: #008ac1; }
.button-light { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.55); }
.button-light:hover { background: #fff; color: #061b4d; }
.hero-caption { color: #bdeeff; }
.live-dot { background: #22c55e !important; }
.section { padding-top: 76px; padding-bottom: 76px; }
h2 { color: #061b4d; font-family: "Segoe UI", Arial, sans-serif; font-weight: 900; letter-spacing: -.045em; }
.section-heading > p { color: #53637d; }
.collections { background: #fff; border-top: 0; }
.category-list { gap: 18px; border: 0; grid-template-columns: repeat(4, 1fr); }
.category-card { min-height: 150px; padding: 22px; background: #fff; border: 1px solid #e3e8f0; border-top: 4px solid var(--moss); border-radius: 16px; box-shadow: 0 6px 18px rgba(19,32,64,.06); }
.category-card:nth-child(3n) { border-top-color: var(--coral); }
.category-card:hover, .category-card.active { background: #eaf7fc; box-shadow: 0 8px 22px rgba(19,32,64,.12); }
.category-card strong { margin-top: 32px; color: #061b4d; font-family: "Segoe UI", Arial, sans-serif; font-size: 25px; font-weight: 900; }
.category-card span { color: #008ac1; font-weight: 700; }
.gallery { background: #f5f7fb; }
.photo-card { margin-bottom: 18px; padding: 0; overflow: hidden; background: #fff; border: 1px solid #e3e8f0; border-top: 4px solid var(--moss); border-radius: 14px; box-shadow: 0 6px 18px rgba(19,32,64,.06); }
.photo-card:nth-child(3n) { border-top-color: var(--coral); }
.photo-overlay { opacity: 1; padding: 14px 16px; color: #172338; background: #fff; }
.photo-overlay strong { font-weight: 800; }
.photo-overlay span { color: #008ac1; }
.admin { padding: 76px 5.3vw; background: #fff; }
.admin-intro > p:not(.eyebrow), .admin-note { color: #53637d; }
.category-manager { grid-column: 1 / -1; padding: 24px; background: #eaf7fc; border: 1px solid #c6e7f4; border-radius: 12px; }
.manager-copy { margin: 0 0 17px; color: #53637d; font-size: 13px; }.manager-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }.manager-fields label { display: grid; gap: 6px; color: #172338; font-size: 12px; font-weight: 800; }.manager-fields select, .manager-fields input { min-height: 42px; padding: 0 10px; border: 1px solid #a9d5e6; border-radius: 8px; background: #fff; color: #172338; }.category-feedback { min-height: 18px; margin: 13px 0 0; color: #008ac1; font-size: 12px; font-weight: 700; }
.upload-panel { background: #031438; border: 0; border-top: 6px solid var(--coral); border-radius: 12px; }
.drop-zone { border-color: #4673bb; color: #fff; }.drop-zone:hover { background: rgba(0,167,231,.12); }.drop-zone small, .upload-preview { color: #bdeeff; }
.photo-manager .drop-zone.is-dragging { border: 2px dashed var(--moss); background: rgba(0,167,231,.24); box-shadow: 0 0 0 4px rgba(0,167,231,.14); transform: scale(1.01); }
.upload-icon { background: var(--moss); }.field-label { color: #fff; }.category-checkboxes span { border-color: #4673bb; color: #dcecff; }.category-checkboxes input:checked + span { background: var(--moss); border-color: var(--moss); color: #fff; }
footer { max-width: none; padding: 32px 5.3vw; background: #061b4d; border: 0; color: #dcecff; } footer > a:last-child { color: #fff; }
body.home-page .collections, body.home-page .gallery, body.home-page .admin { display: none; }
.page-main { min-height: calc(100vh - 70px); }.page-banner { padding: 74px 5.3vw 65px; background: radial-gradient(circle at 75% 23%, #079ce066 0 8%, transparent 30%), linear-gradient(135deg, #05163e, #0c3677 55%, #007fb9); color: #fff; }.page-banner h1 { margin: 0; }.page-banner p { max-width: 580px; color: #dcecff; font-size: 16px; line-height: 1.6; }.category-page .gallery { min-height: 500px; }.category-page .gallery-grid { display: block; column-width: clamp(150px, 22vw, 280px); column-count: auto; column-gap: 18px; }.category-page .photo-card { display: inline-block; width: 100%; margin: 0 0 18px; cursor: default; break-inside: avoid; }.category-page .photo-card img { min-height: 0; height: auto; aspect-ratio: auto; object-fit: contain; }.category-page .photo-card:hover img { transform: none; filter: none; }.tree-panel { max-width: 1240px; margin: 0 auto; padding: 72px 5.3vw; }.tree-panel h2 { margin-bottom: 18px; }.tree-list { display: grid; gap: 10px; }.tree-item { padding: 15px 18px; border: 1px solid #e3e8f0; border-left: 4px solid var(--moss); border-radius: 8px; background: #fff; font-weight: 800; }.tree-item small { display: block; margin-top: 4px; color: #53637d; font-weight: 400; }.tree-item.depth-1 { margin-left: 28px; border-left-color: var(--coral); }.tree-item.depth-2 { margin-left: 56px; border-left-color: #008ac1; }
.category-cards-section { max-width: 1240px; margin: 0 auto; padding: 72px 5.3vw; }.custom-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 18px; }.custom-category-card { display: flex; min-height: 218px; flex-direction: column; padding: 23px; border: 1px solid #e3e8f0; border-top: 5px solid var(--card-accent, var(--moss)); border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(19,32,64,.06); }.custom-category-card h3 { margin: 24px 0 8px; color: #061b4d; font-size: 28px; line-height: 1; }.custom-category-card p { margin: 0; color: #53637d; font-size: 13px; }.card-level { color: var(--card-accent, #008ac1); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.card-link { margin-top: auto; padding-top: 22px; color: var(--card-accent, #008ac1); font-size: 12px; font-weight: 800; }.page-empty { padding: 42px; border: 1px dashed #a9d5e6; border-radius: 12px; color: #53637d; text-align: center; }
.card-open-link { display: inline-block; width: fit-content; margin-top: auto; padding-top: 22px; color: var(--card-accent, #008ac1); font-size: 12px; font-weight: 800; }.card-open-link:hover { text-decoration: underline; }
.admin-login { max-width: 520px; margin: 72px auto; padding: 32px; border-top: 6px solid var(--coral); border-radius: 12px; background: #031438; color: #fff; }.admin-login h2 { color: #fff; }.admin-login p { color: #bdeeff; }.admin-login form { display: grid; gap: 14px; }.admin-login label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; }.admin-login input { min-height: 42px; padding: 0 12px; border: 1px solid #4673bb; border-radius: 8px; background: #fff; color: #172338; }.admin-login #login-feedback { color: #ffb1a9; font-weight: 800; }.photo-manager { margin-top: 55px; padding: 30px; border-radius: 12px; background: #031438; }.photo-manager h2 { color: #fff; }.photo-manager > p { color: #bdeeff; }.photo-manager .field-label { margin-top: 25px; }.photo-manager .button { margin-top: 25px; }.category-photo-section { padding: 72px 5.3vw; background: #f5f7fb; }.category-photo-section .gallery-grid { max-width: 1240px; }.category-photo-section .photo-card { cursor: pointer; }.photo-viewer { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; padding: 30px; background: rgba(3,20,56,.93); }.photo-viewer[hidden] { display: none; }.photo-viewer > p { margin: 0; color: #bdeeff; font-size: 13px; }.photo-viewer > button { position: fixed; top: 20px; right: 26px; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 38px; }.viewer-scene { width: min(560px, 90vw); aspect-ratio: 1.58; perspective: 1200px; }.viewer-card { position: relative; width: 100%; height: 100%; cursor: grab; transform-style: preserve-3d; transition: transform .08s linear; }.viewer-card:active { cursor: grabbing; }.viewer-card img, .viewer-back { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; backface-visibility: hidden; box-shadow: 0 25px 50px rgba(0,0,0,.45); }.viewer-card img { object-fit: cover; }.viewer-back { display: grid; place-content: center; gap: 10px; padding: 30px; background: linear-gradient(135deg, #061b4d, #008ac1); color: #fff; text-align: center; transform: rotateY(180deg); }.viewer-back strong { font-size: clamp(24px, 5vw, 46px); }.viewer-back span { color: #bdeeff; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.tree-help { margin: -7px 0 20px; color: #53637d; font-size: 13px; }.tree-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.delete-category, .delete-photo { border: 0; border-radius: 7px; padding: 8px 10px; background: #fff0f0; color: #b42328; cursor: pointer; font-size: 11px; font-weight: 800; }.delete-category:hover, .delete-photo:hover { background: #d1282f; color: #fff; }.admin-photo-title { margin-top: 40px; }.admin-photo-list { display: grid; gap: 10px; margin-top: 16px; }.admin-photo-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; }.admin-photo-item img { width: 52px; height: 52px; border-radius: 5px; object-fit: cover; }.admin-photo-item div { display: grid; gap: 4px; min-width: 0; }.admin-photo-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.admin-photo-item span, .no-admin-photos { color: #bdeeff; font-size: 11px; }.admin-photo-item .delete-photo { margin-left: auto; }
.tree-category-name { display: flex; align-items: center; min-width: 0; gap: 9px; }.tree-category-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.toggle-tree-category, .tree-leaf { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border: 0; border-radius: 5px; background: #eaf7fc; color: #0074a5; cursor: pointer; font-size: 18px; font-weight: 800; line-height: 1; }.tree-leaf { background: transparent; color: #a9d5e6; font-size: 16px; }
.tree-item[hidden] { display: none !important; }
.admin-photo-help #total-photo-count { color: #fff; }.photo-category-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.photo-category-branch { border: 1px solid rgba(189,238,255,.45); border-radius: 8px; background: rgba(255,255,255,.04); overflow: hidden; }.photo-category-branch summary { display: flex; align-items: center; gap: 10px; padding: 11px 12px; color: #fff; cursor: pointer; font-size: 13px; font-weight: 800; list-style: none; }.photo-category-branch summary::-webkit-details-marker { display: none; }.photo-category-branch summary::before { content: "›"; color: #00a7e7; font-size: 18px; transition: transform .2s; }.photo-category-branch[open] > summary::before { transform: rotate(90deg); }.photo-category-children { display: grid; gap: 7px; padding: 0 9px 9px; }.photo-category-children .photo-category-branch { border-color: rgba(189,238,255,.25); background: transparent; }.photo-category-children .photo-category-branch summary { padding: 9px; font-size: 12px; }.photo-category-leaf { display: block; padding: 0; border: 1px solid rgba(189,238,255,.25); border-radius: 6px; overflow: hidden; }.photo-category-checkbox { display: flex; flex: 1 1 auto; align-items: center; min-height: 34px; padding: 8px 11px; border: 1px solid rgba(189,238,255,.45); border-radius: 6px; background: rgba(0,167,231,.08); color: #dcecff; cursor: pointer; font-size: 11px; font-weight: 800; text-align: left; transition: .2s; }.photo-category-branch summary .photo-category-checkbox { padding: 0; border: 0; border-radius: 0; background: transparent; }.photo-category-checkbox:hover { border-color: var(--moss); background: rgba(0,167,231,.22); }.photo-category-branch summary .photo-category-checkbox:hover { background: transparent; color: var(--moss); }.photo-category-checkbox input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }.photo-category-checkbox span { padding: 0; border: 0; color: inherit; font-size: inherit; white-space: nowrap; }.photo-category-checkbox input:checked + span::after { content: " ✓"; color: var(--moss); }.photo-category-leaf .photo-category-checkbox { width: 100%; border: 0; border-radius: 0; background: transparent; justify-content: flex-start; }.photo-category-leaf .photo-category-checkbox:hover { background: rgba(0,167,231,.22); }.admin-photo-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.admin-photo-owner { border: 1px solid rgba(189,238,255,.55); border-radius: 10px; background: rgba(255,255,255,.04); overflow: hidden; }.admin-photo-owner > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; color: #fff; cursor: pointer; font-size: 16px; font-weight: 900; list-style: none; }.admin-photo-owner > summary::-webkit-details-marker { display: none; }.admin-photo-owner > summary::before { content: "›"; margin-right: 8px; color: #00a7e7; font-size: 22px; transition: transform .2s; }.admin-photo-owner[open] > summary::before { transform: rotate(90deg); }.admin-photo-owner > summary span:first-of-type { margin-right: auto; }.admin-photo-owner > summary span:last-child { color: #bdeeff; font-size: 12px; }.admin-photo-owner-list { display: grid; gap: 8px; padding: 0 10px 10px; }.admin-photo-owner .admin-photo-group { margin: 0; }.admin-photo-owner .admin-photo-group summary span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.admin-photo-owner-other { margin-top: 16px; }@media (max-width: 760px) { .photo-category-columns, .admin-photo-columns { grid-template-columns: 1fr; } }
.photo-category-branch-label { display: flex; flex: 1 1 auto; align-items: center; min-height: 34px; padding: 8px 11px; border: 1px solid rgba(189,238,255,.45); border-radius: 6px; background: rgba(0,167,231,.08); color: #dcecff; font-size: 11px; font-weight: 800; }
.photo-category-branch summary:hover .photo-category-branch-label { border-color: var(--moss); background: rgba(0,167,231,.22); }
.photo-category-checkbox:has(input:checked) { background: rgba(0,167,231,.32); color: #fff; box-shadow: inset 0 0 0 1px var(--moss); }.photo-category-branch summary .photo-category-checkbox:has(input:checked) { background: rgba(0,167,231,.22); }
.photo-category-checkbox.is-selected { background: rgba(0,167,231,.42) !important; color: #fff; box-shadow: inset 0 0 0 1px var(--moss); }.photo-category-checkbox.is-selected span, .photo-category-checkbox input:checked + span { background: transparent !important; color: inherit !important; }
.category-checkboxes .photo-category-columns { width: 100%; flex: 0 0 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.selected-files { margin: 12px 0 0; color: #bdeeff; font-size: 12px; font-weight: 700; }
.category-photo-section .photo-card .photo-overlay { display: none; }.zoom-controls { display: flex; gap: 8px; }.zoom-controls button { min-width: 38px; padding: 8px 11px; border: 1px solid #bdeeff; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; font-weight: 800; }.zoom-controls button:hover { background: #00a7e7; border-color: #00a7e7; }.viewer-scene { transition: transform .15s ease; }
@media (max-width: 760px) { .site-header { padding: 0 20px; }.site-header nav { display: none; }.hero { min-height: 590px; }.hero-content { inset: auto 20px 58px; }.hero::after { width: 300px; height: 300px; right: -85px; bottom: -78px; }.category-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }.category-card { min-height: 125px; padding: 15px; } }
@media (max-width: 760px) { .manager-fields { grid-template-columns: 1fr; }.manager-fields .button { justify-content: center; } }
 .manager-fields input[type="color"] { width: 100%; padding: 5px; cursor: pointer; }
@media (max-width: 760px) { .category-cards-section { padding: 52px 20px; } }

/* Gestion et affichage des bannières de catégories. */
.manager-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.manager-fields .description-field, .manager-fields .banner-field { grid-column: span 1; }
.manager-fields textarea, .manager-fields input[type="file"] { width: 100%; min-height: 42px; padding: 10px; border: 1px solid #a9d5e6; border-radius: 8px; background: #fff; color: #172338; }
.manager-fields textarea { min-height: 82px; resize: vertical; }
.banner-field small { color: #53637d; font-size: 11px; font-weight: 400; }
.remove-banner-option { display: flex !important; align-items: center; gap: 7px; font-size: 12px; }
.category-actions, .tree-actions { display: flex; align-items: center; gap: 8px; }
.button-secondary, .edit-category, .duplicate-category { border: 1px solid #008ac1; border-radius: 7px; padding: 8px 10px; background: #fff; color: #0074a5; cursor: pointer; font-size: 11px; font-weight: 800; }
.duplicate-category:hover { background: #eaf7fc; }
.tree-item[draggable="true"] { cursor: grab; }
.tree-item.dragging { opacity: .45; }
.tree-item.drop-target { outline: 2px dashed var(--moss); outline-offset: 2px; background: #eaf7fc; }
.button-secondary { min-height: 42px; padding: 10px 14px; font-size: 12px; }
.button-secondary:hover, .edit-category:hover { background: #eaf7fc; }
.custom-category-card { position: relative; overflow: hidden; }
.custom-category-card.has-banner { min-height: 270px; padding-top: 0; }
.category-card-banner { width: calc(100% + 46px); height: 118px; margin: 0 -23px 18px; object-fit: cover; }
.custom-category-card.has-banner .card-level { position: absolute; top: 12px; left: 13px; padding: 5px 7px; border-radius: 5px; background: rgba(255,255,255,.9); }
.custom-category-card.has-banner h3 { margin-top: 0; }
.page-banner.has-category-banner { background-position: center; background-size: cover; }
.admin-photo-help { margin: -4px 0 15px !important; color: #bdeeff !important; font-size: 12px; }.admin-photo-group { margin-top: 10px; border: 1px solid rgba(189,238,255,.35); border-radius: 8px; overflow: hidden; }.admin-photo-group summary { display: flex; justify-content: space-between; gap: 16px; padding: 13px 15px; color: #fff; cursor: pointer; font-size: 14px; font-weight: 800; list-style: none; }.admin-photo-group summary::-webkit-details-marker { display: none; }.admin-photo-group summary::before { content: "›"; margin-right: 8px; color: #00a7e7; font-size: 18px; line-height: .8; transition: transform .2s; }.admin-photo-group[open] summary::before { transform: rotate(90deg); }.admin-photo-group summary span:first-of-type { margin-right: auto; }.admin-photo-group summary span:last-child { color: #bdeeff; font-size: 11px; font-weight: 600; }.admin-photo-group-list { display: grid; gap: 8px; padding: 0 10px 10px; }
.bulk-photo-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 8px; color: #bdeeff; font-size: 12px; font-weight: 700; }.photo-manager .delete-selected-photos { margin-top: 0; background: #00a7e7; }.photo-manager .delete-selected-photos:hover { background: #008ac1; }.delete-selected-photos:disabled { opacity: .45; cursor: not-allowed; }.select-photo { position: relative; display: grid; flex: 0 0 18px; width: 18px; height: 18px; place-items: center; cursor: pointer; }.select-photo input { position: absolute; opacity: 0; }.select-photo span { width: 17px; height: 17px; border: 1px solid #bdeeff; border-radius: 4px; }.select-photo input:checked + span { border-color: #00a7e7; background: #00a7e7; }.select-photo input:checked + span::after { content: "✓"; display: block; color: #fff; font-size: 12px; line-height: 16px; text-align: center; }
/* Les photos de catégories gardent toujours les proportions du fichier envoyé. */
.category-photo-section .photo-card img { width: 100%; height: auto !important; min-height: unset !important; max-height: none; aspect-ratio: auto !important; object-fit: initial !important; }
/* La visionneuse affiche le fichier original au ratio réel, sans recadrage supplémentaire. */
.viewer-scene { width: min(900px, 90vw); }
.viewer-scene.portrait-photo { width: min(500px, 78vw); }
.viewer-card img { object-fit: contain; image-rendering: auto; }
/* La carte 3D reprend le format portrait des photos verticales. */
.viewer-scene.portrait-photo { width: min(430px, 78vw); aspect-ratio: .62; }
.viewer-card.portrait-photo img { object-fit: contain; }
.page-banner.category-color-banner { background: linear-gradient(135deg, #05163e, color-mix(in srgb, var(--category-color, #00a7e7) 72%, #061b4d)); }
.page-banner[style*="--page-gradient-start"] { background: linear-gradient(135deg, var(--page-gradient-start), var(--page-gradient-end)) !important; }

.statistics-panel { margin: 0 0 52px; padding: 28px; border: 1px solid #4673bb; border-top: 5px solid #00a7e7; border-radius: 8px; background: #031438; color: #fff; }
.statistics-panel h2, .statistics-panel h3 { color: #fff; }.statistics-panel h2 { margin-bottom: 22px; }.statistics-panel h3 { margin: 28px 0 12px; font-size: 17px; }.statistics-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.statistics-summary article { display: grid; gap: 5px; padding: 16px; border: 1px solid rgba(189,238,255,.35); border-radius: 8px; background: rgba(255,255,255,.08); }.statistics-summary strong { color: #00a7e7; font-size: 28px; line-height: 1; }.statistics-summary span, .statistics-note { color: #bdeeff; font-size: 12px; font-weight: 700; }.statistics-category-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }.statistics-category-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid rgba(189,238,255,.35); border-left: 3px solid #00a7e7; border-radius: 6px; background: rgba(255,255,255,.05); color: #fff; font-size: 13px; }.statistics-category-list li strong { color: #bdeeff; white-space: nowrap; }.statistics-note { margin: 16px 0 0; }
@media (max-width: 560px) { .statistics-panel { padding: 20px; }.statistics-summary { grid-template-columns: 1fr; }.statistics-category-list li { align-items: start; flex-direction: column; gap: 5px; } }

/* L’accueil occupe toute la fenêtre : le pied de page reste en bas sans zone blanche. */
html { min-height: 100%; background: #061b4d; }
body.home-page { height: 100vh; height: 100dvh; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: #061b4d; }
body.home-page main { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; background: #061b4d; }
body.home-page .hero { align-self: stretch; width: 100%; flex: 1 1 auto; min-height: 0; margin: 0; }
body.home-page footer { flex: 0 0 auto; margin-top: 0; }
body.home-page .hero-content { top: 50%; bottom: auto; transform: translateY(-50%); }

@media (max-width: 760px) {
  body.home-page .hero-content { top: 50%; bottom: auto; transform: translateY(-50%); }
}

/* Les catégories restent accessibles sur l’accueil, comme avant. */
body.home-page { height: auto; min-height: 100vh; overflow: visible; }
body.home-page main { display: block; flex: initial; }
body.home-page .hero { display: block; min-height: calc(100vh - 70px); }
body.home-page .collections { display: none; }
body.home-page .gallery, body.home-page .admin { display: none; }
body.home-page .site-header { display: flex; }
body.home-page .site-header .brand, body.home-page .site-header nav, body.home-page .site-header .admin-button { justify-self: auto; }

/* Couleur de texte configurable dans Codebare et Elzouile. */
.category-page #category-section-label { color: var(--category-text-color, #061b4d) !important; }

@media (max-width: 760px) {
  body.home-page .site-header { display: flex; }
}
.page-banner.category-color-banner.has-category-banner { background-image: linear-gradient(90deg, rgba(5,22,62,.92), color-mix(in srgb, var(--category-color, #00a7e7) 35%, rgba(5,22,62,.45))), var(--category-banner-image); }
.save-photo-button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; border-radius: 8px; background: linear-gradient(120deg, var(--category-color, #00a7e7), color-mix(in srgb, var(--category-color, #00a7e7) 45%, #fff)); color: #fff; font-size: 13px; font-weight: 800; }
.save-photo-button:hover { filter: brightness(1.08); }
/* La galerie utilise toute la largeur disponible, sans limite à gauche ou à droite. */
.category-photo-section .gallery-grid { max-width: none; margin-left: -5.3vw; margin-right: -5.3vw; }
@media (max-width: 760px) { .manager-fields { grid-template-columns: 1fr; }.manager-fields .description-field, .manager-fields .banner-field { grid-column: auto; }.category-actions { justify-content: stretch; }.category-actions > * { flex: 1; justify-content: center; }.tree-item { align-items: flex-start; }.tree-actions { flex-direction: column; align-items: stretch; }.category-card-banner { height: 130px; } }
@media (max-width: 760px) { .category-page .gallery-grid { column-count: 2; column-gap: 10px; }.category-photo-section .gallery-grid { margin-left: -20px; margin-right: -20px; }.category-page .photo-card { margin-bottom: 10px; } }

/* Application installable : confort mobile et zones sûres des iPhone. */
.button-install { color: #fff; background: rgba(6,27,77,.45); border: 1px solid rgba(255,255,255,.65); }
.button-install:hover { background: #fff; color: #061b4d; }
.install-help { min-height: 18px; margin: 12px 0 0; color: #dcecff; font-size: 12px; font-weight: 700; }
.header-app-actions { display: flex; align-items: center; gap: 9px; }
.install-app-button { border: 1px solid rgba(255,255,255,.65); border-radius: 8px; padding: 10px 13px; background: transparent; color: #fff; cursor: pointer; font-size: 12px; font-weight: 800; transition: .2s; }
.install-app-button:hover { border-color: var(--moss); background: var(--moss); color: #fff; }
@media (display-mode: standalone) { .site-header { padding-top: env(safe-area-inset-top); height: calc(70px + env(safe-area-inset-top)); } body { padding-bottom: env(safe-area-inset-bottom); } }
@media (max-width: 760px) { .hero-actions { flex-wrap: wrap; gap: 10px; }.button-install { width: 100%; justify-content: center; }.site-header { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }.header-app-actions { gap: 6px; }.install-app-button, .admin-button { padding: 8px 9px; font-size: 10px; } }

/* Carrousel RP : trois photos réellement publiées sont mises à la une. */
.hero-carousel {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 3vw;
  width: clamp(360px, 52vw, 960px);
  max-width: calc(100vw - 10.6vw);
  transform: translateY(-42%);
}

.hero-carousel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #fff;
  font: 700 11px var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hero-carousel-heading small {
  color: #bdeeff;
  font: inherit;
}

.hero-carousel-track {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr) minmax(0, .85fr);
  align-items: center;
  gap: 13px;
  height: min(600px, 70vh);
}

.hero-carousel-card {
  display: grid;
  aspect-ratio: var(--photo-ratio, 3 / 4);
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 6px;
  background: #061b4d;
  box-shadow: 4px 4px 0 #d1282f;
  color: #fff;
  cursor: zoom-in;
  place-items: center;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease;
}

.hero-carousel-card:nth-child(2) {
  position: relative;
  z-index: 1;
  transform: scale(1.35);
}

.hero-carousel-card.active {
  border-color: #00a7e7;
  box-shadow: 5px 5px 0 #00a7e7;
}

.hero-carousel-card:hover,
.hero-carousel-card:focus-visible {
  border-color: #00a7e7;
  outline: 0;
  transform: translateY(-6px);
}

.hero-carousel-card:nth-child(2):hover,
.hero-carousel-card:nth-child(2):focus-visible {
  transform: scale(1.35) translateY(-6px);
}

.hero-carousel-card img {
  display: block;
  width: 100%;
  height: 100%;
  background: #061b4d;
  object-fit: contain;
}

.hero-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 13px;
}

.hero-carousel-controls button {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 5px;
  background: #061b4d;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.hero-carousel-controls button:hover,
.hero-carousel-controls button:focus-visible {
  border-color: #00a7e7;
  background: #00a7e7;
  outline: 0;
}

@media (max-width: 1100px) and (min-width: 761px) {
  .hero-carousel {
    width: clamp(360px, 44vw, 600px);
  }
}

@media (max-width: 980px) and (min-width: 761px) {
  .hero {
    min-height: 760px;
  }

  .hero-carousel {
    top: 58px;
    right: 20px;
    width: min(420px, calc(100vw - 40px));
    transform: none;
  }

  .hero-carousel-track {
    height: clamp(220px, 34vh, 300px);
  }

  .hero-carousel-card:nth-child(2) {
    transform: scale(1.18);
  }

  .hero-carousel-card:nth-child(2):hover,
  .hero-carousel-card:nth-child(2):focus-visible {
    transform: scale(1.18) translateY(-4px);
  }

  body.home-page .hero-content {
    top: 440px;
    bottom: auto;
    max-width: 440px;
    transform: none;
  }
}

@media (max-width: 760px) {
  .hero-carousel {
    top: 114px;
    right: 20px;
    width: min(calc(100% - 40px), 360px);
    transform: none;
  }

  .hero-carousel-track {
    gap: 6px;
    height: clamp(190px, 34vh, 280px);
  }

  .hero-carousel-card:nth-child(2) {
    transform: scale(1.18);
  }

  .hero-carousel-card:nth-child(2):hover,
  .hero-carousel-card:nth-child(2):focus-visible {
    transform: scale(1.18) translateY(-4px);
  }

  .hero-carousel-heading,
  .hero-carousel-heading small {
    font-size: 7px;
  }

  .hero-carousel-card {
    border-width: 1px;
    box-shadow: 3px 3px 0 #d1282f;
  }

  .hero-carousel-controls {
    margin-top: 8px;
  }

  .hero-carousel-controls button {
    width: 28px;
    height: 26px;
    font-size: 15px;
  }
}

/* Direction artistique de l'accueil : identité opérationnelle sombre et bleu électrique. */
body.home-page { background: #03040b; color: #f4f5ff; }
body.home-page footer { padding: 24px 7.5vw; background: #03040b; border-top: 1px solid rgba(117, 95, 255, .18); color: #8b8a9e; }
body.home-page footer > a:last-child { color: #c7c2ff; }
body.home-page .home-header { position: relative; z-index: 10; height: 94px; padding: 0 7.5vw; background: rgba(3, 4, 11, .96); border-bottom: 1px solid rgba(117, 95, 255, .22); box-shadow: none; }
body.home-page .home-brand { gap: 12px; color: #fff; letter-spacing: .08em; text-transform: uppercase; }
body.home-page .home-brand img { width: 45px; height: 45px; filter: drop-shadow(0 0 9px rgba(97, 75, 255, .55)); }
body.home-page .home-brand span { display: grid; gap: 2px; line-height: .82; }
body.home-page .home-brand strong { font-size: 15px; font-weight: 900; }
body.home-page .home-brand small { color: #8473ff; font-size: 7px; font-weight: 800; letter-spacing: .13em; }
body.home-page .home-header nav { gap: 30px; margin-left: auto; margin-right: 44px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
body.home-page .home-header nav a { position: relative; color: #d8d9e5; }
body.home-page .home-header nav a[aria-current="page"] { color: #fff; }
body.home-page .home-header nav a[aria-current="page"]::after { position: absolute; right: 0; bottom: -12px; left: 0; height: 2px; background: #6d59ff; box-shadow: 0 0 10px #6d59ff; content: ""; }
body.home-page .home-header .header-app-actions { gap: 8px; }
body.home-page .home-header .install-app-button { border-color: rgba(129, 114, 255, .48); color: #c9c4ff; }
body.home-page .home-header .admin-button { border-color: #6151e7; border-radius: 3px; color: #b8aeff; }
body.home-page .hero { isolation: isolate; min-height: calc(100vh - 94px); background: #03040b; }
body.home-page .hero::before { position: absolute; z-index: -3; inset: 0; background: radial-gradient(ellipse at 43% 49%, rgba(36, 32, 103, .23), transparent 29%), linear-gradient(90deg, #03040b 0%, rgba(3, 4, 11, .9) 45%, rgba(3, 4, 11, .62) 100%); content: ""; }
body.home-page .hero::after { position: absolute; z-index: -2; right: 8%; bottom: -20%; width: 45%; height: 75%; border: 1px solid rgba(102, 83, 255, .32); border-radius: 50%; box-shadow: 0 0 0 28px rgba(89, 70, 237, .04), 0 0 120px rgba(78, 60, 225, .17); content: ""; }
body.home-page .hero-grid { position: absolute; z-index: -1; inset: 0; opacity: .42; background-image: linear-gradient(rgba(119, 104, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(119, 104, 255, .08) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .45) 48%, transparent 80%); }
body.home-page .hero-content { inset: 50% auto auto 7.5vw; width: min(680px, 48vw); max-width: none; transform: translateY(-50%); }
body.home-page .hero-content .eyebrow { margin-bottom: 18px; color: #8576ff; font-size: 10px; letter-spacing: .22em; }
body.home-page h1 { display: grid; gap: 2px; color: #f4f5ff; font-family: "DM Mono", monospace; font-size: 58px; font-weight: 500; line-height: .94; letter-spacing: .035em; text-transform: uppercase; }
body.home-page h1 em { color: #6d59ff; font-style: normal; text-shadow: 0 0 24px rgba(109, 89, 255, .38); }
body.home-page h1 small { margin-top: 10px; color: #a397ff; font-size: 23px; font-weight: 500; line-height: 1.13; letter-spacing: .14em; }
body.home-page .hero-copy { max-width: 520px; margin: 25px 0 30px; color: #b5b5c5; font-size: 15px; line-height: 1.55; }
body.home-page .hero-actions { gap: 10px; }
body.home-page .hero-actions .button { min-width: 194px; justify-content: space-between; border-radius: 3px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
body.home-page .hero-actions .button-dark { background: #6453ea; box-shadow: 0 6px 24px rgba(91, 74, 225, .22); }
body.home-page .hero-actions .button-dark:hover { background: #7969ff; }
body.home-page .hero-actions .button-light { border-color: rgba(185, 177, 255, .6); color: #e8e6ff; }
body.home-page .hero-actions .button-light:hover { border-color: #7969ff; background: rgba(104, 86, 238, .18); color: #fff; }
.home-category-actions { display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; margin-top: 12px; }
.home-category-actions .button { min-width: 194px; justify-content: space-between; border-radius: 3px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.home-category-actions .button-light { border-color: rgba(185, 177, 255, .6); color: #e8e6ff; }
.home-category-actions .button-light:hover, .home-category-actions .button-light:focus-visible { border-color: #7969ff; background: rgba(104, 86, 238, .18); color: #fff; outline: 0; }
#home-category-nav { display: contents; }
body.home-page .hero-caption { margin-top: 31px; color: #77778c; font-size: 9px; letter-spacing: .16em; }
body.home-page .live-dot { width: 6px; height: 6px; background: #6556ed !important; box-shadow: 0 0 10px #6556ed; }
body.home-page .caption-divider { width: 1px; height: 11px; background: #545366; }
body.home-page .hero-carousel { top: 50%; right: 7.5vw; width: min(420px, 34vw); transform: translateY(-50%); }
body.home-page .hero-carousel-heading { color: #b4aff2; font-size: 9px; letter-spacing: .18em; }
body.home-page .hero-carousel-track { grid-template-columns: minmax(0, .7fr) minmax(0, 1.2fr) minmax(0, .7fr); height: min(510px, 58vh); gap: 9px; }
body.home-page .hero-carousel-card { border: 1px solid rgba(176, 164, 255, .55); border-radius: 0; background: #080918; box-shadow: 4px 4px 0 rgba(101, 82, 231, .65); }
body.home-page .hero-carousel-card.active { border-color: #7867ff; box-shadow: 5px 5px 0 #6654ec; }
body.home-page .hero-carousel-controls button { border-color: rgba(169, 159, 255, .55); border-radius: 0; background: #101026; color: #e2dfff; }
body.home-page .hero-carousel-controls button:hover, body.home-page .hero-carousel-controls button:focus-visible { border-color: #7765ff; background: #6654ec; }

@media (max-width: 900px) {
  body.home-page .home-header { padding: 0 24px; }
  body.home-page .home-header nav { margin-right: 20px; gap: 18px; }
  body.home-page .hero-content { left: 9vw; width: 55vw; }
  body.home-page h1 { font-size: 45px; }
  body.home-page h1 small { font-size: 17px; }
  body.home-page .hero-carousel { right: 4vw; width: 34vw; }
}

@media (max-width: 760px) {
  body.home-page footer { padding: 20px 24px; }
  body.home-page .home-header { height: 75px; padding: 0 18px; }
  body.home-page .home-brand img { width: 36px; height: 36px; }
  body.home-page .home-brand strong { font-size: 12px; }
  body.home-page .home-header nav { display: none; }
  body.home-page .home-header .install-app-button { display: none; }
  body.home-page .hero { min-height: calc(100vh - 75px); }
  body.home-page .hero::after { right: -30%; width: 100%; height: 47%; }
  body.home-page .hero-content { top: 42%; left: 24px; width: calc(100% - 48px); transform: translateY(-50%); }
  body.home-page h1 { font-size: 38px; }
  body.home-page h1 small { font-size: 15px; }
  body.home-page .hero-copy { max-width: 350px; font-size: 13px; }
  body.home-page .hero-actions .button { min-width: 0; flex: 1; padding: 12px 10px; font-size: 9px; }
  body.home-page .hero-carousel { top: auto; right: 24px; bottom: 22px; width: calc(100% - 48px); transform: none; }
  body.home-page .hero-carousel-track { height: 126px; }
  body.home-page .hero-carousel-heading, body.home-page .hero-carousel-heading small { font-size: 7px; }
  body.home-page .hero-caption { margin-top: 20px; }
}

/* Fond des catégories aligné sur l'accueil, sans modifier les cartes ni leur contenu. */
body.category-page { background-color: #03040b; background-image: radial-gradient(ellipse at 22% 38%, rgba(61, 46, 178, .24), transparent 35%), linear-gradient(rgba(119, 104, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(119, 104, 255, .07) 1px, transparent 1px); background-size: auto, 48px 48px, 48px 48px; }
body.category-page .page-main, body.category-page .category-cards-section, body.category-page .category-photo-section { background-color: transparent; }
body.category-page .custom-category-card { background: rgba(3, 4, 11, .28); box-shadow: none; }
body.category-page .custom-category-card h3 { color: #f1f0f8; }
body.category-page .custom-category-card p { color: #aaa9bb; }
body.category-page .section-heading h2 { color: #f1f0f8; }

/* Administration alignée sur le fond opérationnel de l'accueil. */
body.admin-page { background-color: #03040b; background-image: radial-gradient(ellipse at 22% 38%, rgba(61, 46, 178, .24), transparent 35%), linear-gradient(rgba(119, 104, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(119, 104, 255, .07) 1px, transparent 1px); background-size: auto, 48px 48px, 48px 48px; }
body.admin-page .page-main { min-height: calc(100vh - 94px); background: transparent; }
body.admin-page .page-banner { border-bottom: 1px solid rgba(117, 95, 255, .18); background: linear-gradient(90deg, rgba(3, 4, 11, .92), rgba(8, 9, 24, .72)); }
body.admin-page .page-banner .eyebrow { color: #8576ff; }
body.admin-page .page-banner h1 { color: #f4f5ff; }
body.admin-page .page-banner p { color: #b5b5c5; }
body.admin-page .admin-login { border-color: #6d59ff; border-radius: 4px; background: rgba(8, 9, 24, .88); box-shadow: 5px 5px 0 rgba(101, 82, 231, .45); }
body.admin-page footer { background: #03040b; border-top: 1px solid rgba(117, 95, 255, .18); color: #8b8a9e; }
body.admin-page footer > a:last-child { color: #c7c2ff; }
body.admin-page .tree-panel > .eyebrow { color: #8576ff; }
body.admin-page .tree-panel h2 { color: #f4f5ff; }
body.admin-page .tree-help { color: #b5b5c5; }
body.admin-page .category-manager-panel,
body.admin-page .category-directory {
  margin-top: 24px;
  padding: 30px;
  border-radius: 12px;
  background: #031438;
}
body.admin-page .category-manager-panel { margin-top: 0; }
body.admin-page .category-manager-panel h2,
body.admin-page .category-directory h2 { color: #fff; }
body.admin-page .category-manager { padding: 0; border: 0; border-radius: 0; background: transparent; }
body.admin-page .category-manager .manager-fields label { color: #dcecff; }
body.admin-page .category-manager .banner-field small { color: #bdeeff; }
body.admin-page .category-manager .category-feedback { color: #00a7e7; }
body.admin-page .category-directory .tree-help { color: #bdeeff; }
body.admin-page .category-manager .manager-fields select,
body.admin-page .category-manager .manager-fields input,
body.admin-page .category-manager textarea,
body.admin-page .category-manager input[type="file"] {
  border-color: #4673bb;
  background: #0b2354;
  color: #f4f5ff;
}
body.admin-page .category-manager ::placeholder { color: #bdeeff; opacity: .78; }
body.admin-page .tree-item {
  border-color: #315c9c;
  border-left-color: #00a7e7;
  background: #0b2354;
  color: #f4f5ff;
}
body.admin-page .tree-item.depth-1 { border-left-color: #6d59ff; }
body.admin-page .tree-item.depth-2 { border-left-color: #00a7e7; }
body.admin-page .tree-item small { color: #bdeeff; }
body.admin-page .toggle-tree-category,
body.admin-page .tree-leaf { background: #102d65; color: #bdeeff; }
body.admin-page .button-secondary,
body.admin-page .edit-category,
body.admin-page .duplicate-category {
  border-color: #00a7e7;
  background: #0b2354;
  color: #bdeeff;
}
body.admin-page .button-secondary:hover,
body.admin-page .edit-category:hover,
body.admin-page .duplicate-category:hover { background: #123574; }

/* Barre de navigation partagée hors accueil. */
.universal-header { position: relative; z-index: 10; height: 94px; padding: 0 7.5vw; background: rgba(3, 4, 11, .96); border: 0; border-bottom: 1px solid rgba(117, 95, 255, .22); box-shadow: none; color: #f4f5ff; }
.universal-brand { gap: 12px; color: #fff; letter-spacing: .08em; text-transform: uppercase; }
.universal-header .universal-brand > img { display: block; flex: 0 0 45px; width: 45px !important; height: 45px !important; max-width: 45px; max-height: 45px; object-fit: contain; filter: drop-shadow(0 0 9px rgba(97, 75, 255, .55)); }
.universal-brand span { display: grid; gap: 2px; line-height: .82; }
.universal-brand strong { font-size: 15px; font-weight: 900; }
.universal-brand small { color: #8473ff; font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.brand-x { color: #00c8ff; text-shadow: 0 0 12px rgba(0, 200, 255, .62); }
body.home-page h1 .brand-x { color: #00d9ff; }
.universal-header nav { gap: 30px; margin-left: auto; margin-right: 44px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.universal-header nav a { position: relative; color: #d8d9e5; }
.universal-header nav a:hover, .universal-header nav a[aria-current="page"] { color: #fff; }
.universal-header nav a[aria-current="page"]::after { position: absolute; right: 0; bottom: -12px; left: 0; height: 2px; background: #6d59ff; box-shadow: 0 0 10px #6d59ff; content: ""; }
.universal-header .header-app-actions { gap: 8px; }
.universal-header .install-app-button { border-color: rgba(129, 114, 255, .48); color: #c9c4ff; }
.universal-header .admin-button { border-color: #6151e7; border-radius: 3px; color: #b8aeff; }

@media (max-width: 760px) {
  .universal-header { height: 75px; padding: 0 18px; }
  .universal-header .universal-brand > img { flex-basis: 36px; width: 36px !important; height: 36px !important; max-width: 36px; max-height: 36px; }
  .universal-brand strong { font-size: 12px; }
  .universal-header nav, .universal-header .install-app-button { display: none; }
}

/* Panneau Pole Event Vision : meme langage vert sombre que la connexion. */
body.admin-page { color:#edf8f0; background:radial-gradient(circle at 11% 7%,#0e2b1a 0,transparent 23%),radial-gradient(circle at 88% 88%,#091d12 0,transparent 28%),linear-gradient(#102b1b66 1px,transparent 1px),linear-gradient(90deg,#102b1b66 1px,transparent 1px),#020704; background-size:auto,auto,48px 48px,48px 48px,auto; font-family:Manrope,"DM Sans",sans-serif; }
body.admin-page .universal-header { height:62px; padding:0 28px; border-bottom:1px solid #1d3526; background:#030806e8; box-shadow:none; } body.admin-page .universal-header .brand { color:#effcf3; font-size:12px; } body.admin-page .universal-header nav a { color:#96aa9c; font:9px "DM Mono",monospace; letter-spacing:1px; text-transform:uppercase; } body.admin-page .universal-header nav a:hover { color:#70c991; } body.admin-page .universal-header nav a[aria-current="page"]::after { background:#279857; box-shadow:0 0 10px #279857; } body.admin-page .header-app-actions .discord-button, body.admin-page .header-app-actions .install-app-button { background:#0a160e; border:1px solid #24442f; color:#a5c7af; border-radius:4px; font:9px "DM Mono",monospace; letter-spacing:1px; text-transform:uppercase; } body.admin-page .header-app-actions .admin-button { border-color:#278b50; border-radius:4px; color:#78d39b; font:9px "DM Mono",monospace; letter-spacing:1px; text-transform:uppercase; }
body.admin-page .page-main { min-height:calc(100vh - 62px); } body.admin-page .page-banner { padding:72px 24px 42px; color:#f3fbf6; text-align:center; background:radial-gradient(ellipse at 50% 45%,#145c3124,transparent 56%); } body.admin-page .page-banner .eyebrow { color:#67c78a; font:8px "DM Mono",monospace; letter-spacing:2px; } body.admin-page .page-banner .eyebrow::before, body.admin-page .page-banner .eyebrow::after { content:""; display:inline-block; width:30px; height:1px; margin:0 9px 3px; background:#24864b; } body.admin-page .page-banner h1 { color:#f5fdf7; font:800 clamp(36px,4.3vw,58px)/1 Manrope,sans-serif; letter-spacing:-1.8px; text-transform:none; } body.admin-page .page-banner p:last-child { max-width:440px; margin:15px auto 0; color:#9caca1; font-size:11px; line-height:1.7; }
body.admin-page .admin-login { width:min(100% - 32px,390px); margin:10px auto 85px; padding:30px 28px 24px; position:relative; border:1px solid #1d3727; border-radius:8px; background:linear-gradient(145deg,#09150d,#070b09); color:#edf8f0; box-shadow:0 0 34px #0d713a25,0 24px 54px #0009; } body.admin-page .admin-login::before, body.admin-page .admin-login::after { content:""; position:absolute; width:13px; height:13px; border-color:#29985a; } body.admin-page .admin-login::before { left:8px; top:8px; border-left:2px solid; border-top:2px solid; } body.admin-page .admin-login::after { right:8px; bottom:8px; border-right:2px solid; border-bottom:2px solid; } body.admin-page .admin-login h2 { color:#f4fbf6; text-align:center; font:700 22px/1.1 Manrope,sans-serif; letter-spacing:-.5px; } body.admin-page .admin-login p { color:#98aa9e; text-align:center; font-size:10px; line-height:1.6; } body.admin-page .admin-login label { color:#bfd0c4; font:8px "DM Mono",monospace; letter-spacing:1.2px; text-transform:uppercase; } body.admin-page .admin-login input { min-height:36px; border:1px solid #1a3424; border-radius:4px; background:#070b09; color:#f5fff7; } body.admin-page .admin-login input:focus { border-color:#29985a; box-shadow:0 0 0 2px #29985a22; } body.admin-page .admin-login .button { min-height:36px; justify-content:center; border-radius:4px; font:9px "DM Mono",monospace; letter-spacing:1px; text-transform:uppercase; } body.admin-page .admin-login .button-dark { background:linear-gradient(90deg,#279857,#0b6537); color:#f4fff7; box-shadow:0 7px 16px #0a663742; } body.admin-page .admin-login .button-discord { background:#101b14; border:1px solid #254932; color:#a7d6b5; } body.admin-page .login-separator { color:#698374!important; font:8px "DM Mono",monospace!important; letter-spacing:1px; text-transform:uppercase; }
body.admin-page #admin-content { max-width:1120px; margin:0 auto; padding:20px 24px 85px; } body.admin-page #admin-content > .eyebrow { color:#69c78b; font:8px "DM Mono",monospace; letter-spacing:2px; } body.admin-page .tree-panel h2 { color:#f0faf3; font:700 clamp(24px,3vw,34px)/1.1 Manrope,sans-serif; letter-spacing:-.8px; } body.admin-page .statistics-panel, body.admin-page .category-manager-panel, body.admin-page .category-directory, body.admin-page .photo-manager { border:1px solid #1c3627; border-radius:7px; background:linear-gradient(145deg,#09150d,#070b09); box-shadow:0 18px 40px #0005; } body.admin-page .statistics-panel { padding:27px; border-top:3px solid #258c4f; } body.admin-page .statistics-panel h2, body.admin-page .statistics-panel h3 { color:#effaf2; } body.admin-page .statistics-summary article, body.admin-page .statistics-category-list li { border-color:#203e2c; border-radius:4px; background:#0c1710; } body.admin-page .statistics-summary strong, body.admin-page .statistics-category-list li strong { color:#67c98b; } body.admin-page .statistics-summary span, body.admin-page .statistics-note { color:#99ad9f; }
body.admin-page .category-manager-panel, body.admin-page .category-directory { margin-top:18px; padding:26px; } body.admin-page .category-manager { padding:0; border:0; border-radius:0; background:transparent; } body.admin-page .manager-fields label, body.admin-page .field-label { color:#b9cabf; font:8px "DM Mono",monospace; letter-spacing:1px; text-transform:uppercase; } body.admin-page .manager-fields input, body.admin-page .manager-fields select, body.admin-page .manager-fields textarea { border-color:#1f3c2a; border-radius:4px; background:#070b09; color:#effaf2; } body.admin-page .manager-fields textarea { min-height:86px; } body.admin-page .button-dark, body.admin-page .delete-selected-photos { border:0; border-radius:4px; background:linear-gradient(90deg,#279857,#0b6537)!important; color:#effff4!important; font:9px "DM Mono",monospace; letter-spacing:1px; text-transform:uppercase; } body.admin-page .button-secondary, body.admin-page .edit-category, body.admin-page .duplicate-category { border-color:#2a8050; border-radius:4px; background:#0a1710; color:#93d5aa; font:9px "DM Mono",monospace; letter-spacing:.6px; } body.admin-page .tree-help, body.admin-page .manager-copy, body.admin-page .banner-field small { color:#92a69a; } body.admin-page .tree-item { border-color:#1d3828; border-left-color:#288d51; border-radius:4px; background:#0a150e; color:#e9f6ed; } body.admin-page .tree-item small { color:#92a69a; } body.admin-page .delete-category, body.admin-page .delete-photo { border-radius:4px; background:#241013; color:#ef8594; }
body.admin-page .photo-manager { margin-top:24px; padding:28px; } body.admin-page .photo-manager h2, body.admin-page .photo-manager > p { color:#effaf2; } body.admin-page .photo-manager > p, body.admin-page .admin-photo-help, body.admin-page .selected-files { color:#9bb0a1!important; } body.admin-page .drop-zone { border-color:#2b7c4c; border-radius:5px; color:#e9f8ee; background:#08120c; } body.admin-page .drop-zone:hover { background:#0d2114; } body.admin-page .drop-zone small { color:#94a99a; } body.admin-page .upload-icon { border-radius:5px; background:#258c4f; color:#f2fff6; } body.admin-page .photo-category-branch, body.admin-page .photo-category-leaf, body.admin-page .photo-category-checkbox, body.admin-page .admin-photo-group { border-color:#254431; background:#09140d; } body.admin-page .photo-category-branch summary, body.admin-page .photo-category-checkbox, body.admin-page .photo-category-branch-label, body.admin-page .admin-photo-group summary { color:#dcefe1; } body.admin-page .photo-category-checkbox:hover, body.admin-page .photo-category-branch summary:hover .photo-category-branch-label { border-color:#29985a; background:#102519; } body.admin-page .category-feedback { color:#77d399; }
body.admin-page footer { max-width:none; padding:28px 5.3vw; border-top:1px solid #1b3325; background:#030806; color:#819386; } body.admin-page footer a { color:#b3d5bd; }
body.access-admin .statistics-panel, body.access-admin .photo-manager { display:none; }
body.access-moderator .statistics-panel, body.access-moderator .player-session-panel, body.access-moderator .category-directory, body.access-moderator .admin-photo-title, body.access-moderator .admin-photo-help, body.access-moderator .bulk-photo-actions, body.access-moderator .admin-photo-list { display:none; }
body.access-moderator:not(.can-manage-categories) .category-manager-panel, body.access-moderator:not(.can-manage-photos) .photo-manager { display:none; }
body.access-moderator:not(.can-manage-categories) #admin-content > .eyebrow { display:none; }
@media (max-width:760px) { body.admin-page .universal-header { padding:0 18px; } body.admin-page .page-banner { padding:58px 20px 30px; } body.admin-page #admin-content { padding:10px 16px 60px; } body.admin-page .statistics-panel, body.admin-page .category-manager-panel, body.admin-page .category-directory, body.admin-page .photo-manager { padding:20px; } }

/* Calendrier annuel réservé aux modérateurs. */
.moderator-calendar { margin: 0 0 36px; padding: 28px; border: 1px solid #4673bb; border-top: 5px solid #00a7e7; border-radius: 8px; background: #031438; color: #fff; }
.calendar-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }.calendar-heading h2 { color: #fff; margin: 0; }.calendar-heading > p { max-width: 360px; margin: 0; color: #bdeeff; font-size: 13px; line-height: 1.5; }
.calendar-event-form { display: grid; grid-template-columns: minmax(150px, 1fr) 150px minmax(160px, 1.5fr) auto; gap: 10px; align-items: end; margin: 24px 0 12px; }.calendar-event-form label { display: grid; gap: 6px; color: #bdeeff; font-size: 11px; font-weight: 800; }.calendar-event-form input { min-height: 40px; padding: 0 10px; border: 1px solid #4673bb; border-radius: 6px; background: #fff; color: #172338; }.calendar-event-form .button { min-height: 40px; justify-content: center; padding: 9px 13px; }
.calendar-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 20px 0 16px; }.calendar-controls label { display: flex; align-items: center; gap: 8px; color: #bdeeff; font-size: 12px; font-weight: 800; }.calendar-controls select { min-height: 36px; padding: 0 8px; border: 1px solid #4673bb; border-radius: 6px; background: #fff; color: #172338; font-weight: 800; }.calendar-feedback { min-height: 18px; margin: 0; color: #bdeeff; font-size: 12px; font-weight: 700; }
.year-calendar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.calendar-month { overflow: hidden; border: 1px solid rgba(189,238,255,.35); border-radius: 7px; background: rgba(255,255,255,.05); }.calendar-month h3 { margin: 0; padding: 10px 12px; border-bottom: 1px solid rgba(189,238,255,.2); color: #fff; font-size: 15px; }.calendar-weekdays, .calendar-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }.calendar-weekdays span { padding: 7px 2px; color: #bdeeff; font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; }.calendar-day { position: relative; min-height: 52px; padding: 4px; border-top: 1px solid rgba(189,238,255,.14); border-right: 1px solid rgba(189,238,255,.14); overflow: hidden; }.calendar-day:nth-child(7n) { border-right: 0; }.calendar-day.is-outside { background: rgba(0,0,0,.12); }.calendar-day.is-today { box-shadow: inset 0 0 0 2px #00a7e7; }.calendar-day-number { display: block; color: #dcecff; font-size: 10px; font-weight: 800; }.calendar-day.is-outside .calendar-day-number { color: #7491b6; }.calendar-entry { display: block; width: 100%; margin-top: 3px; padding: 2px 3px; overflow: hidden; border: 0; border-radius: 3px; background: #00a7e7; color: #031438; cursor: pointer; font-size: 9px; font-weight: 900; line-height: 1.2; text-align: left; text-overflow: ellipsis; white-space: nowrap; }.calendar-entry:hover { background: #fff; }.calendar-empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed rgba(189,238,255,.45); color: #bdeeff; text-align: center; }
body.access-admin .moderator-calendar { display: none; }
@media (max-width: 960px) { .year-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }.calendar-event-form { grid-template-columns: 1fr 150px; }.calendar-event-form label:last-of-type { grid-column: span 2; } }
@media (max-width: 560px) { .moderator-calendar { padding: 20px; }.calendar-heading { align-items: start; flex-direction: column; }.year-calendar { grid-template-columns: 1fr; }.calendar-event-form { grid-template-columns: 1fr; }.calendar-event-form label:last-of-type { grid-column: auto; }.calendar-controls { align-items: start; flex-direction: column; }.calendar-day { min-height: 48px; } }

/* Planning mensuel, décliné dans la direction vert sombre de Pole Event. */
.moderator-calendar { padding: 0; overflow: hidden; border: 1px solid #1d3828; border-top: 3px solid #258c4f; border-radius: 7px; background: #070d09; color: #edf8f0; box-shadow: 0 18px 40px #0005; }
.calendar-heading { align-items: center; padding: 24px 26px 20px; border-bottom: 1px solid #1d3828; }.calendar-heading h2 { color: #effaf2; font: 700 clamp(24px, 3vw, 34px)/1.1 Manrope, sans-serif; letter-spacing: -.8px; }.calendar-heading > p { color: #92a69a; font-size: 11px; }.calendar-heading .eyebrow { color: #69c78b; font: 8px "DM Mono", monospace; letter-spacing: 2px; }
.calendar-event-form { grid-template-columns: minmax(150px, 1fr) 150px minmax(160px, 1.5fr) 70px auto; gap: 10px; margin: 0; padding: 18px 26px; border-bottom: 1px solid #1d3828; background: #09150d; }.calendar-event-form label { color: #b9cabf; font: 8px "DM Mono", monospace; letter-spacing: 1px; text-transform: uppercase; }.calendar-event-form input { min-height: 36px; border-color: #1f3c2a; border-radius: 4px; background: #070b09; color: #effaf2; }.calendar-event-form .calendar-color-field input { width: 100%; padding: 3px; cursor: pointer; }.calendar-event-form .button { min-height: 36px; border-radius: 4px; font: 9px "DM Mono", monospace; letter-spacing: 1px; text-transform: uppercase; }
.calendar-feedback { min-height: 0; margin: 0; padding: 0 26px; color: #77d399; font-size: 11px; }.calendar-feedback:not(:empty) { padding-top: 12px; }
.calendar-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 0; padding: 16px 26px 12px; }.calendar-nav-button { width: fit-content; min-width: 38px; min-height: 30px; padding: 0 11px; border: 1px solid #2a8050; border-radius: 4px; background: #0a1710; color: #93d5aa; cursor: pointer; font: 700 15px/1 Manrope, sans-serif; }.calendar-nav-button:last-child { justify-self: end; }.calendar-nav-button:hover, .calendar-nav-button:focus-visible { border-color: #57b978; background: #12351f; color: #effff4; outline: 0; }.calendar-month-label { display: flex; align-items: center; justify-content: center; gap: 8px; }.calendar-month-label strong { color: #effaf2; font: 700 15px Manrope, sans-serif; }.calendar-month-label span { color: #76d797; font: 8px "DM Mono", monospace; letter-spacing: .8px; text-transform: uppercase; }
.month-calendar { margin: 0 26px 26px; overflow: hidden; border: 1px solid #1d3828; border-radius: 5px; }.calendar-month { background: #08110c; }.calendar-weekdays, .calendar-week { grid-template-columns: repeat(7, minmax(0, 1fr)); }.calendar-weekdays { background: #0d1911; }.calendar-weekdays span { padding: 8px 2px; color: #779286; font: 8px "DM Mono", monospace; letter-spacing: .6px; }.calendar-day { min-height: 112px; padding: 7px; border-color: #1b3023; background: #09130d; }.calendar-day:nth-child(7n) { border-right: 0; }.calendar-day.is-outside { background: #070d09; }.calendar-day.is-today { box-shadow: inset 0 0 0 1px #3ba764; }.calendar-day-number { color: #e5f4e9; font: 800 10px Manrope, sans-serif; }.calendar-day.is-outside .calendar-day-number { color: #54705e; }.calendar-entry { margin-top: 5px; padding: 5px 6px; border: 0; border-left: 3px solid var(--event-color, #29985a); border-radius: 3px; color: #f5fff7; font: 700 9px/1.2 Manrope, sans-serif; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }.calendar-entry:hover { filter: brightness(1.25); color: #fff; }.calendar-entry::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 4px 1px 0; border-radius: 50%; background: var(--event-color, #5fc97e); }.calendar-entry:focus-visible { outline: 1px solid var(--event-color, #75d696); outline-offset: 1px; }.calendar-event-dialog { width: min(440px, calc(100vw - 32px)); padding: 28px; border: 1px solid #1d3828; border-top: 3px solid var(--event-color, #29985a); border-radius: 7px; background: linear-gradient(145deg, #09150d, #070b09); color: #edf8f0; box-shadow: 0 0 34px var(--event-tint, rgba(41, 152, 90, .14)), 0 24px 60px #000b; }.calendar-event-dialog::backdrop { background: rgba(2, 7, 4, .82); }.calendar-event-dialog h3 { margin: 10px 0 5px; color: #effaf2; font: 700 25px/1.1 Manrope, sans-serif; letter-spacing: -.5px; }.calendar-event-dialog p { margin: 0; color: #9bb0a1; font-size: 13px; line-height: 1.6; }.calendar-event-dialog .eyebrow { color: var(--event-color, #76d797); font: 8px "DM Mono", monospace; letter-spacing: 1.5px; }.calendar-event-dialog #calendar-dialog-date { margin-bottom: 18px; color: var(--event-color, #76d797); font: 700 10px "DM Mono", monospace; letter-spacing: .5px; text-transform: uppercase; }.calendar-dialog-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: #9bb0a1; cursor: pointer; font-size: 25px; line-height: 1; }.calendar-dialog-close:hover { color: #effaf2; }
.calendar-color-dialog form { display: grid; gap: 12px; margin-top: 18px; }.calendar-color-dialog label { display: grid; gap: 6px; color: #b9cabf; font: 8px "DM Mono", monospace; letter-spacing: 1px; text-transform: uppercase; }.calendar-color-dialog input[type="color"] { width: 100%; height: 42px; padding: 4px; border: 1px solid #1f3c2a; border-radius: 4px; background: #070b09; cursor: pointer; }.calendar-color-dialog .button { justify-content: center; border-radius: 4px; }.calendar-delete-event { border: 1px solid #74313c; border-radius: 4px; padding: 10px; background: #241013; color: #ef8594; cursor: pointer; font: 9px "DM Mono", monospace; letter-spacing: .7px; text-transform: uppercase; }
@media (max-width: 760px) { .calendar-heading { align-items: start; padding: 20px; }.calendar-event-form { grid-template-columns: 1fr; padding: 16px 20px; }.calendar-event-form label:last-of-type { grid-column: auto; }.calendar-controls { padding: 14px 20px 10px; }.month-calendar { margin: 0 20px 20px; overflow-x: auto; }.calendar-month { min-width: 680px; }.calendar-day { min-height: 104px; } }

/* Accueil Pole Event Vision : grille, titre centre et cartes de collections. */
body.home-page { color:#edf8f0; background:radial-gradient(circle at 12% 7%,#0e2b1a 0,transparent 23%),radial-gradient(circle at 88% 88%,#091d12 0,transparent 28%),linear-gradient(#102b1b66 1px,transparent 1px),linear-gradient(90deg,#102b1b66 1px,transparent 1px),#020704; background-size:auto,auto,48px 48px,48px 48px,auto; font-family:Manrope,"DM Sans",sans-serif; } body.home-page .home-header { height:62px; padding:0 28px; border-bottom:1px solid #1d3526; background:#030806e8; box-shadow:none; } body.home-page .home-header .brand { color:#effcf3; font-size:12px; } body.home-page .home-header nav a { color:#96aa9c; font:9px "DM Mono",monospace; letter-spacing:1px; text-transform:uppercase; } body.home-page .home-header nav a:hover { color:#70c991; opacity:1; } body.home-page .home-header nav a[aria-current="page"]::after { background:#279857; box-shadow:0 0 10px #279857; } body.home-page .header-app-actions .discord-button, body.home-page .header-app-actions .install-app-button { background:#0a160e; border:1px solid #24442f; color:#a5c7af; border-radius:4px; font:9px "DM Mono",monospace; letter-spacing:1px; text-transform:uppercase; } body.home-page .header-app-actions .admin-button { border-color:#278b50; border-radius:4px; color:#78d39b; font:9px "DM Mono",monospace; letter-spacing:1px; text-transform:uppercase; }
body.home-page main { min-height:calc(100vh - 62px); } body.home-page .hero { min-height:calc(100vh - 62px); display:flex; align-items:center; justify-content:center; padding:68px 24px 88px; background:radial-gradient(ellipse at 50% 44%,#145c3124,transparent 42%); } body.home-page .hero::after { display:none; } body.home-page .hero-content { position:relative; inset:auto; width:min(100%,720px); max-width:720px; text-align:center; transform:none; } body.home-page .hero-carousel { display:none!important; } body.home-page .hero .eyebrow { color:#68c98b; margin-bottom:14px; font:8px "DM Mono",monospace; letter-spacing:2px; } body.home-page .hero .eyebrow::before, body.home-page .hero .eyebrow::after { content:""; display:inline-block; width:30px; height:1px; margin:0 9px 3px; background:#258b4e; } body.home-page .hero h1 { max-width:none; color:#f4fcf6; font:800 clamp(45px,5.2vw,72px)/.98 Manrope,sans-serif; letter-spacing:-2px; text-transform:none; } body.home-page .hero h1 em { color:#77d69b; text-shadow:none; font-style:normal; } body.home-page .hero-copy { max-width:415px; margin:17px auto 27px; color:#9caca1; font-size:11px; line-height:1.7; } body.home-page .hero-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:stretch; margin:0 auto; text-align:left; } body.home-page .hero-actions .button { min-height:145px; padding:18px 17px; display:grid; grid-template-columns:28px 1fr auto; grid-template-rows:1fr; align-items:start; gap:12px; border:1px solid #1b3526; border-radius:6px; color:#eef9f1; background:linear-gradient(145deg,#0a150e,#070b09); box-shadow:none; transition:border-color .2s,transform .2s,background .2s; } body.home-page .hero-actions .button:hover { transform:translateY(-3px); border-color:#2a9252; background:#0c1e12; } body.home-page .hero-actions .button-light { border-color:#1d3828; } body.home-page .home-card-icon { display:grid; width:27px; height:27px; place-items:center; border:1px solid #2d8e51; border-radius:5px; color:#86dca5; background:#113c24; font-size:17px; line-height:1; } body.home-page .home-card-copy { display:flex; flex-direction:column; align-self:stretch; } body.home-page .home-card-copy small { color:#67c58a; font:8px "DM Mono",monospace; letter-spacing:1.3px; text-transform:uppercase; } body.home-page .home-card-copy strong { margin:11px 0 6px; color:#f2fbf4; font-size:17px; letter-spacing:-.4px; } body.home-page .home-card-copy em { max-width:205px; color:#92a69a; font-size:9px; font-style:normal; line-height:1.55; } body.home-page .home-card-arrow { align-self:start; color:#75cf97; font-size:15px; } body.home-page .hero-caption { justify-content:center; margin:38px 0 0; color:#73877a; font:8px "DM Mono",monospace; letter-spacing:1.1px; text-transform:uppercase; } body.home-page .live-dot { background:#2f9d5c!important; } body.home-page footer { position:absolute; right:0; bottom:0; left:0; display:flex; max-width:none; padding:20px 28px; border-top:1px solid #1b3325; background:#030806d9; color:#76877b; font:8px "DM Mono",monospace; letter-spacing:.7px; } body.home-page footer a { color:#9abdaa; } body.home-page footer .brand-mark { background:#1b6b3d; color:#eafff0; }
@media (max-width:760px) { body.home-page .home-header { padding:0 18px; } body.home-page .hero { min-height:calc(100svh - 62px); padding:48px 20px 110px; } body.home-page .hero-content { width:min(100%,440px); } body.home-page .hero-actions { grid-template-columns:1fr; } body.home-page .hero-actions .button { min-height:118px; } body.home-page footer { padding:17px 20px; } body.home-page footer p, body.home-page footer > a:last-child { display:none; } }

/* Pages de collections : suppression de l'ancienne bannière bleu cyan. */
body.category-page { color:#edf8f0; background:radial-gradient(circle at 12% 7%,#0e2b1a 0,transparent 23%),radial-gradient(circle at 88% 88%,#091d12 0,transparent 28%),linear-gradient(#102b1b66 1px,transparent 1px),linear-gradient(90deg,#102b1b66 1px,transparent 1px),#020704; background-size:auto,auto,48px 48px,48px 48px,auto; font-family:Manrope,"DM Sans",sans-serif; } body.category-page .site-header { height:62px; padding:0 28px; border-bottom:1px solid #1d3526; background:#030806e8; box-shadow:none; } body.category-page .site-header .brand { color:#effcf3; font-size:12px; } body.category-page .site-header nav a { color:#96aa9c; font:9px "DM Mono",monospace; letter-spacing:1px; text-transform:uppercase; } body.category-page .header-app-actions .discord-button, body.category-page .header-app-actions .install-app-button { background:#0a160e; border:1px solid #24442f; color:#a5c7af; border-radius:4px; font:9px "DM Mono",monospace; letter-spacing:1px; text-transform:uppercase; } body.category-page .header-app-actions .admin-button { border-color:#278b50; border-radius:4px; color:#78d39b; font:9px "DM Mono",monospace; letter-spacing:1px; text-transform:uppercase; } body.category-page .page-banner, body.category-page .page-banner.category-color-banner, body.category-page .page-banner[style*="--page-gradient-start"] { min-height:290px; padding:80px max(5.3vw,24px) 64px; background:radial-gradient(ellipse at 50% 45%,#145c3124,transparent 55%)!important; color:#f2fbf4; } body.category-page .page-banner .eyebrow { color:#68c98b; font:8px "DM Mono",monospace; letter-spacing:2px; } body.category-page .page-banner h1 { color:#f4fcf6; font:800 clamp(48px,6vw,76px)/1 Manrope,sans-serif; letter-spacing:-2px; text-transform:none; } body.category-page .page-banner p { color:#9cac9f; font-size:12px; line-height:1.7; } body.category-page .category-cards-section, body.category-page .category-photo-section, body.category-page .gallery { background:transparent; } body.category-page .category-cards-section { padding-top:58px; } body.category-page .custom-category-card { border:1px solid #1d3828; border-top:3px solid var(--card-accent,#29985a); border-radius:6px; background:linear-gradient(145deg,#0a150e,#070b09); box-shadow:none; } body.category-page .custom-category-card h3 { color:#eef9f1; font-family:Manrope,sans-serif; } body.category-page .custom-category-card p, body.category-page .page-empty { color:#98aa9e; } body.category-page .card-level, body.category-page .card-link { color:#70ca91; } body.category-page .page-empty { border-color:#294631; border-radius:5px; background:#08120c; } body.category-page footer { max-width:none; border-top:1px solid #1b3325; background:#030806; color:#76877b; } body.category-page footer a { color:#9abdaa; }
@media (max-width:760px) { body.category-page .site-header { padding:0 18px; } body.category-page .page-banner { min-height:240px; padding:60px 20px 45px; } }

/* Accueil : disposition d'origine, avec le fond vert uniforme des collections. */
body.home-page .hero { display:block; padding:0; background:radial-gradient(ellipse at 58% 65%,#0d512b30,transparent 45%),transparent; } body.home-page .hero-content { position:absolute; inset:auto auto 78px 5.3vw; width:auto; max-width:640px; text-align:left; transform:none; } body.home-page .hero .eyebrow { margin-bottom:17px; } body.home-page .hero .eyebrow::before, body.home-page .hero .eyebrow::after { display:none; } body.home-page .hero h1 { max-width:700px; font-size:clamp(56px,8vw,104px); line-height:.85; letter-spacing:-3px; } body.home-page .hero h1 em { color:#77d69b; } body.home-page .hero-copy { margin:23px 0; max-width:420px; font-size:14px; } body.home-page .hero-actions { display:flex; gap:14px; margin:0; } body.home-page .hero-actions .button { display:inline-flex; min-height:0; padding:13px 16px; align-items:center; gap:18px; border:1px solid #2b8750; border-radius:4px; background:linear-gradient(90deg,#1d7d45,#0b5830); color:#effff4; font:10px "DM Mono",monospace; letter-spacing:.7px; text-transform:uppercase; } body.home-page .hero-actions .button-light { border-color:#315d42; background:#08130d; color:#b9d6c2; } body.home-page .hero-actions .button:hover { transform:translateY(-2px); background:#249452; } body.home-page .hero-caption { justify-content:flex-start; margin:26px 0 0; } body.home-page footer { position:absolute; } @media (max-width:760px) { body.home-page .hero-content { right:20px; bottom:72px; left:20px; max-width:none; } body.home-page .hero h1 { font-size:clamp(54px,15vw,78px); } body.home-page .hero-actions { flex-wrap:wrap; } }

/* Direction artistique collection : composition centrale avec deux cartes. */
body.home-page .hero { display:flex; align-items:center; justify-content:center; padding:82px 24px 94px; background:radial-gradient(ellipse at 50% 42%,#145c3124,transparent 45%); } body.home-page .hero-content { position:relative; inset:auto; width:min(100%,680px); max-width:680px; text-align:center; } body.home-page .hero .eyebrow { margin-bottom:13px; color:#68c98b; font:8px "DM Mono",monospace; letter-spacing:2px; } body.home-page .hero .eyebrow::before, body.home-page .hero .eyebrow::after { content:""; display:inline-block; width:30px; height:1px; margin:0 9px 3px; background:#258b4e; } body.home-page .hero h1 { max-width:none; color:#f4fcf6; font:800 clamp(42px,5vw,66px)/.99 Manrope,sans-serif; letter-spacing:-2.4px; text-transform:none; } body.home-page .hero h1 em { color:#78d39b; font-style:normal; } body.home-page .hero-copy { max-width:410px; margin:16px auto 28px; color:#9cac9f; font-size:10px; line-height:1.7; } body.home-page .hero-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:stretch; margin:0; text-align:left; } body.home-page .hero-actions .button { min-height:146px; display:grid; grid-template-columns:28px 1fr auto; align-items:start; gap:12px; padding:18px 16px; border:1px solid #1d3828; border-radius:6px; background:linear-gradient(145deg,#0a150e,#070b09); color:#eef9f1; box-shadow:none; text-transform:none; font-family:Manrope,sans-serif; letter-spacing:0; } body.home-page .hero-actions .button-light { border-color:#1d3828; background:linear-gradient(145deg,#0a150e,#070b09); color:#eef9f1; } body.home-page .hero-actions .button:hover, body.home-page .hero-actions .button-light:hover { border-color:#319757; background:#0c1e12; transform:translateY(-3px); } body.home-page .home-card-icon { display:grid; width:27px; height:27px; place-items:center; border:1px solid #2d8e51; border-radius:5px; color:#86dca5; background:#113c24; font-size:17px; line-height:1; } body.home-page .home-card-copy { display:flex; flex-direction:column; align-self:stretch; } body.home-page .home-card-copy small { color:#67c58a; font:8px "DM Mono",monospace; letter-spacing:1.2px; text-transform:uppercase; } body.home-page .home-card-copy strong { margin:11px 0 6px; color:#f2fbf4; font-size:17px; letter-spacing:-.4px; } body.home-page .home-card-copy em { max-width:205px; color:#92a69a; font-size:9px; font-style:normal; line-height:1.55; } body.home-page .home-card-arrow { align-self:start; color:#75cf97; font-size:15px; } body.home-page .hero-caption { justify-content:center; margin:36px 0 0; color:#718278; font:8px "DM Mono",monospace; letter-spacing:1.1px; text-transform:uppercase; } body.home-page footer { position:absolute; } @media (max-width:760px) { body.home-page .hero { min-height:calc(100svh - 62px); padding:50px 20px 104px; } body.home-page .hero-content { width:min(100%,440px); } body.home-page .hero-actions { grid-template-columns:1fr; } body.home-page .hero-actions .button { min-height:116px; } }

/* Fond definitif de l'accueil, identique a la direction artistique verte. */
html:has(body.home-page), body.home-page, body.home-page main { background:radial-gradient(circle at 18% 9%,#75e39773 0,transparent 28%),radial-gradient(ellipse at 74% 83%,#0b542d99 0,transparent 42%),linear-gradient(#b4ffd126 1px,transparent 1px),linear-gradient(90deg,#b4ffd126 1px,transparent 1px),#198f4d!important; background-size:auto,auto,48px 48px,48px 48px,auto!important; }
body.home-page .hero { background:radial-gradient(ellipse at 50% 42%,#d4ffe01f,transparent 52%)!important; }
body.home-page .home-header { background:#0b4f2ae8; border-bottom-color:#9af6b766; }
body.home-page .home-brand { gap:10px; }
body.home-page .home-brand > span { display:block; min-width:max-content; line-height:1; }
body.home-page .home-brand strong { display:flex; flex-direction:column; align-items:flex-start; gap:3px; font-size:15px; line-height:1; }
body.home-page .home-brand .brand-vision { display:inline-flex; gap:4px; align-items:baseline; white-space:nowrap; color:#fff; letter-spacing:.08em; }
body.home-page .home-brand .brand-vision b { color:#ff7ac9; }
body.home-page .home-brand small { display:block; color:#ffc0e6; font-size:7px; line-height:1; letter-spacing:.18em; }

/* Accueil inspire de la reference : surfaces tres sombres, lueurs vertes et grille compacte. */
html:has(body.home-page), body.home-page, body.home-page main {
  background:
    radial-gradient(ellipse at 4% 17%, rgba(55, 192, 101, .19), transparent 23%),
    radial-gradient(ellipse at 96% 88%, rgba(30, 163, 76, .18), transparent 26%),
    linear-gradient(rgba(94, 224, 137, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 224, 137, .045) 1px, transparent 1px),
    #030806 !important;
  background-size: auto, auto, 40px 40px, 40px 40px, auto !important;
}
body.home-page .home-header {
  height: 58px;
  padding: 0 22px;
  background: rgba(3, 8, 6, .91);
  border-bottom: 1px solid rgba(83, 214, 125, .18);
}
body.home-page .home-header nav { margin-right: 26px; gap: 24px; }
body.home-page .home-brand .brand-vision b,
body.home-page .home-brand small { color: #81e9a4; }
body.home-page .home-brand img { filter: drop-shadow(0 0 8px rgba(83, 214, 125, .42)); }
body.home-page .hero {
  min-height: calc(100vh - 58px);
  padding: 52px 24px 64px;
  background: radial-gradient(ellipse at 50% 44%, rgba(19, 114, 56, .12), transparent 34%) !important;
}
body.home-page .hero-content { width: min(100%, 570px); }
body.home-page .hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid rgba(99, 227, 141, .24);
  border-radius: 999px;
  color: #82eaa5;
  background: rgba(43, 159, 78, .1);
  font-size: 7px;
  letter-spacing: 1.5px;
}
body.home-page .hero .eyebrow::before,
body.home-page .hero .eyebrow::after { display: none; }
body.home-page .hero h1 { font-size: clamp(37px, 4vw, 54px); line-height: .91; letter-spacing: -1.7px; }
body.home-page .hero h1 em { color: #6de398; text-shadow: 0 0 20px rgba(84, 221, 129, .14); }
body.home-page .hero-copy { max-width: 370px; margin: 13px auto 21px; color: #aebcb2; font-size: 9px; }
body.home-page .hero-actions { width: min(100%, 570px); gap: 9px; }
body.home-page .hero-actions .button,
body.home-page .hero-actions .button-light {
  min-height: 126px;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-color: rgba(103, 225, 141, .12);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(9, 18, 13, .95), rgba(4, 9, 6, .94));
}
body.home-page .hero-actions .button:hover,
body.home-page .hero-actions .button-light:hover {
  border-color: rgba(102, 232, 145, .5);
  background: linear-gradient(145deg, rgba(14, 40, 22, .96), rgba(4, 12, 7, .96));
  transform: translateY(-2px);
}
body.home-page .home-card-icon {
  width: 25px;
  height: 25px;
  border-color: rgba(101, 234, 146, .55);
  border-radius: 4px;
  color: #a2f5bd;
  background: rgba(31, 139, 65, .25);
  font-size: 14px;
}
body.home-page .home-card-copy { gap: 4px; }
body.home-page .home-card-copy small { color: #789080; font-size: 7px; letter-spacing: 1.15px; }
body.home-page .home-card-copy strong { color: #f1fff5; font-size: 15px; }
body.home-page .home-card-copy em { color: #9eaea3; font-size: 8px; line-height: 1.45; }
body.home-page .home-card-link { margin-top: auto; color: #7bea9e; font: 700 7px "DM Mono", monospace; letter-spacing: 1px; text-transform: uppercase; }
body.home-page .home-card-count { align-self: start; color: #8ee8aa; font: 700 13px "DM Mono", monospace; }
body.home-page .hero-caption { margin-top: 20px; color: #607368; font-size: 7px; }
body.home-page footer { position: static; padding: 17px 24px; border-top: 1px solid rgba(83, 214, 125, .13); background: rgba(3, 8, 6, .82); }
body.home-page .header-app-actions .discord-button,
body.home-page .header-app-actions .install-app-button,
body.home-page .header-app-actions .admin-button { border-color: rgba(95, 224, 136, .26); background: rgba(17, 70, 35, .14); color: #9dedb6; }

@media (max-width: 760px) {
  body.home-page .home-header { height: 56px; padding: 0 16px; }
  body.home-page .home-header nav,
  body.home-page .header-app-actions .discord-button,
  body.home-page .header-app-actions .install-app-button { display: none; }
  body.home-page .hero { min-height: calc(100svh - 56px); padding: 46px 18px 48px; }
  body.home-page .hero-actions { grid-template-columns: 1fr; }
  body.home-page .hero-actions .button,
  body.home-page .hero-actions .button-light { min-height: 108px; }
}

/* Le fond de reference reste neutre : le vert est reserve aux elements d'interface. */
html:has(body.home-page), body.home-page, body.home-page main {
  background:
    radial-gradient(ellipse at 6% 19%, rgba(23, 105, 57, .22), transparent 24%),
    radial-gradient(ellipse at 96% 90%, rgba(12, 81, 40, .2), transparent 28%),
    linear-gradient(rgba(92, 191, 119, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 191, 119, .06) 1px, transparent 1px),
    #020904 !important;
  background-size: auto, auto, 40px 40px, 40px 40px, auto !important;
}
body.home-page .hero {
  background: radial-gradient(ellipse at 50% 46%, rgba(15, 84, 41, .15), transparent 38%) !important;
}
body.home-page .hero-grid {
  opacity: 1;
  background-image:
    linear-gradient(rgba(92, 191, 119, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 191, 119, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: none;
}

/* Les collections partagent le meme fond neutre que l'accueil. */
body.category-page {
  background:
    radial-gradient(ellipse at 5% 18%, rgba(23, 105, 57, .2), transparent 24%),
    radial-gradient(ellipse at 96% 90%, rgba(12, 81, 40, .18), transparent 28%),
    linear-gradient(rgba(92, 191, 119, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 191, 119, .06) 1px, transparent 1px),
    #020904 !important;
  background-size: auto, auto, 40px 40px, 40px 40px, auto;
}
body.category-page .page-main,
body.category-page .page-banner,
body.category-page .page-banner.category-color-banner,
body.category-page .page-banner[style*="--page-gradient-start"],
body.category-page .category-cards-section,
body.category-page .category-photo-section {
  background: transparent !important;
}
body.category-page .page-banner { border-bottom: 1px solid rgba(92, 191, 119, .12); }
body.category-page .custom-category-card {
  border-color: rgba(103, 225, 141, .14);
  background: linear-gradient(145deg, rgba(9, 18, 13, .92), rgba(4, 9, 6, .9));
}

body.admin-page .player-session-panel {
  margin: 24px 0;
  padding: 26px;
  border: 1px solid #1c3627;
  border-top: 3px solid #258c4f;
  border-radius: 7px;
  background: linear-gradient(145deg, #09150d, #070b09);
  box-shadow: 0 18px 40px #0005;
}
body.admin-page .session-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
body.admin-page .session-panel-heading h2 { color: #effaf2; }
body.admin-page .session-panel-heading > p { max-width: 300px; margin: 0; color: #9bb0a1; font-size: 11px; line-height: 1.6; }
body.admin-page .player-session-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 120px auto;
  gap: 12px;
  align-items: end;
  margin-top: 20px;
}
body.admin-page .player-session-form label { display: grid; gap: 7px; color: #b9cabf; font: 8px "DM Mono", monospace; letter-spacing: 1px; text-transform: uppercase; }
body.admin-page .player-session-form input,
body.admin-page .player-session-form select { min-height: 38px; border: 1px solid #1f3c2a; border-radius: 4px; padding: 0 10px; background: #070b09; color: #effaf2; }
body.admin-page .player-session-form .button { min-height: 38px; justify-content: center; }
body.admin-page .player-session-form .tutorial-url-field { grid-column: span 2; }
body.admin-page .moderator-permissions { display: flex; grid-column: 1 / -1; gap: 9px; margin: 0; padding: 10px; border: 1px solid #1f3c2a; border-radius: 4px; } body.admin-page .moderator-permissions legend { padding: 0 5px; color: #b9cabf; font: 8px "DM Mono", monospace; letter-spacing: 1px; text-transform: uppercase; } body.admin-page .moderator-permissions label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; } body.admin-page .moderator-permissions input[type="checkbox"] { appearance: auto; inline-size: 15px; block-size: 15px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; accent-color: #29985a; } body.admin-page .moderator-permissions span { color: #b9cabf; font-size: 10px; }
body.admin-page .player-session-list { display: grid; gap: 8px; margin-top: 16px; }
body.admin-page .player-session-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #203e2c;
  border-radius: 4px;
  background: #0c1710;
}
body.admin-page .player-session-item strong { display: block; color: #e9f6ed; font-size: 13px; }
body.admin-page .player-session-item span { display: block; margin-top: 3px; color: #92a69a; font-size: 10px; }
body.admin-page .player-session-item code { color: #8ee8aa; font: 700 11px "DM Mono", monospace; }
body.admin-page .delete-player-session { border: 0; border-radius: 4px; padding: 8px 10px; background: #241013; color: #ef8594; cursor: pointer; font: 9px "DM Mono", monospace; letter-spacing: .6px; }
@media (max-width: 760px) {
  body.admin-page .session-panel-heading { align-items: start; flex-direction: column; }
  body.admin-page .player-session-form { grid-template-columns: 1fr; }
  body.admin-page .player-session-form .tutorial-url-field { grid-column: auto; }
  body.admin-page .moderator-permissions { flex-direction: column; }
  body.admin-page .player-session-item { grid-template-columns: 1fr auto; }
  body.admin-page .player-session-item code { grid-column: 1 / -1; }
}

