/* Résultats par zone : carte de sélection, puis lecture sur toute la largeur. */
#reefResults[hidden],#returnResults[hidden]{display:none!important}
#resultMedia [hidden]{display:none!important}
#reefResults .result-bar{grid-template-columns:minmax(0,1fr) auto}#reefResults .chart-axis{margin:8px 0 0}#reefResults .result-bar-value{font-size:11px;white-space:nowrap}
#reefResults{position:fixed;inset:var(--header-height,105px) 0 0;z-index:900;overflow:auto;background:linear-gradient(145deg,#082b3e,#103d4b);color:#e6f3f3;overscroll-behavior:contain;font:15px/1.6 Inter,"Segoe UI",sans-serif}
#reefResults *{box-sizing:border-box}
/* Les sections du rapport ne sont pas les panneaux de hauteur fixe de la carte. */
#reefResults section{display:block;height:auto;min-height:0;max-height:none;overflow:visible;flex:none;order:initial}
#reefResults h1,#reefResults h2,#reefResults h3{color:#fff;line-height:1.2}#reefResults h1{font-size:clamp(27px,3vw,40px);margin:12px 0}#reefResults h2{font-size:23px;margin:0 0 18px}#reefResults h3{font-size:18px;margin:0 0 10px}#reefResults p{font-size:15px;line-height:1.65}#reefResults button,#reefResults select{font:inherit;cursor:pointer;border:1px solid #7ab3bb70;border-radius:8px;background:#173e5060;color:#edf8f6;padding:9px 14px;max-width:100%}#reefResults button:hover,#reefResults button[aria-pressed=true]{background:#28656c70;border-color:#7dd9c7}#reefResults button:focus-visible{outline:3px solid #ef9471;outline-offset:3px}
.results-wrap{max-width:1200px;margin:auto;padding:28px 32px 60px}.results-top,.results-nav,.results-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.results-top{justify-content:space-between}.results-crumb{font-size:13px;color:#afd6db}.results-tag{display:inline-block;padding:4px 11px;border-radius:30px;background:#78adab20;color:#c4e5df;border:1px solid #8cbbb638;font-size:12px;margin-right:8px}.results-lead{max-width:820px;color:#c2dce2}.results-nav{border-block:1px solid #79adb43d;padding:16px 0;margin:25px 0}.results-nav button{background:transparent!important}.results-nav button[aria-pressed=true]{color:#ffb08d!important;border-color:#ffb08d!important}.results-statgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}.results-stat{padding:20px;background:#16455555;border:1px solid #79adb435;border-radius:14px;border-top:3px solid var(--accent,#72d4c1)}.results-stat b{display:block;color:var(--accent,#72d4c1);font-size:30px;line-height:1.3}.results-stat span{font-size:13px;color:#d0e5e7}.results-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:22px;margin:22px 0}.results-card{min-width:0;background:#12374770;border:1px solid #8cb4bf40;border-radius:15px;padding:23px;margin-bottom:22px}.results-card strong{color:#c7e6df}.results-portrait{width:90px;height:90px;object-fit:cover;border-radius:50%;border:3px solid #77c6b6;flex-shrink:0}.results-cardhead{display:flex;gap:18px;align-items:center;margin-bottom:15px}.results-small{font-size:12px!important;color:#a9cad1!important}.results-table{overflow:auto}.results-table table{font-size:14px;width:100%;min-width:440px}.results-table th{background:#1c5360;color:#96ead7}.results-table td,.results-table th{padding:12px 10px;border-bottom:1px solid #52778366}.results-table tr:nth-child(even){background:#173f4e}.results-chart{margin:22px 0}.result-bar{width:100%;display:grid;grid-template-columns:140px minmax(20px,1fr) 64px;align-items:center;gap:12px;text-align:left;margin:10px 0!important;background:transparent!important;border:0!important;padding:7px 0!important}.result-bar-track{height:18px;display:block;background:#244a56;border-radius:20px;overflow:hidden}.result-bar-fill{display:block;height:100%;width:var(--value);background:var(--bar-color);border-radius:20px;transition:width .25s}.result-bar-value{font-weight:700;color:#c1e6d1;text-align:right}.chart-axis{margin-left:152px;display:flex;justify-content:space-between;margin-right:76px;color:#a8c7cb;font-size:12px}.results-timeline{padding:15px 0 15px 24px;border-left:3px solid #83c9b5;margin:20px 10px}.results-timeline time{font-size:18px;color:#9be1ce}.survey-result{background:#12374755;border:1px solid #8cb4bf40;border-radius:14px;padding:18px;margin-bottom:16px}.survey-result summary{font-size:19px;color:#b4e2da;cursor:pointer;font-weight:700}.survey-result .metric{font-size:15px}.survey-result .metric>b{display:none}.survey-result .metric p{color:#d3e7e7}.survey-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.survey-preview{background:#061e2a;border-radius:10px;overflow:hidden}.survey-preview img{display:block;width:100%;height:170px;object-fit:contain}.survey-preview p{margin:10px 14px}.survey-preview button{margin:0 14px 14px}.result-empty{padding:18px;border-left:3px solid #7bb7c1;background:#173f4e}.results-sector{display:flex;gap:20px;align-items:center;text-align:left;width:100%}.results-sector img{width:115px;height:90px;object-fit:cover;border-radius:10px}.results-sector span{display:block}.results-species-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:15px}.results-species{text-align:center}.results-species img{width:100px;height:100px;border-radius:50%;object-fit:cover}.results-species span{display:block;font-size:13px}
#resultMedia{padding:20px;border:1px solid #598293;border-radius:14px;background:#092936;color:#fff;width:min(1000px,94vw);max-height:90dvh}#resultMedia::backdrop{background:#00101bda}#resultMedia img,#resultMedia video{display:block;width:100%;height:min(62vh,600px);object-fit:contain;margin:15px 0;background:#041720}#resultMedia .media-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap}#resultMedia button{padding:10px;border:1px solid #67929a;border-radius:8px;background:#17414e;color:white}#resultMedia h2{font-size:18px;margin:0 auto 0 0}#resultMedia button:disabled{opacity:.35}
body.results-map main{grid-template-columns:1fr!important}body.results-map main>aside{display:none!important}body.results-map main>section{width:100%!important}#returnResults{position:fixed;z-index:800;right:20px;top:calc(var(--header-height,105px) + 15px);background:#103e4b;color:#fff;border:1px solid #82ccbd;box-shadow:0 3px 15px #0004;padding:12px 20px;border-radius:9px}body.results-open main{visibility:hidden;pointer-events:none}body.results-map .tabs{display:none!important}
#activeZoneChoice{margin:12px 0;border-left:3px solid #90c883;padding:10px 12px;background:#16404b}#activeZoneChoice button{margin-top:8px}#markArea.active{background:#b96543;color:#fff}#referenceZoneStatus{color:#a9e8d3;margin:8px 0;font-size:13px}.active-zone-label{background:#133f4c;color:#fff;border:1px solid #a2d6bd;border-radius:8px;padding:6px 8px;white-space:nowrap}
@media(max-width:700px){.results-wrap{padding:20px 18px 50px}.results-statgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.results-stat{padding:14px}.results-stat b{font-size:25px}.results-grid{grid-template-columns:1fr;gap:0}.results-card{padding:18px}.result-bar{grid-template-columns:96px minmax(15px,1fr) 54px;gap:8px;font-size:12px!important}.chart-axis{margin-left:104px;margin-right:62px}.results-nav{gap:8px}.results-nav button{font-size:13px!important;padding:8px!important}.survey-media{grid-template-columns:1fr}.results-top>button{font-size:13px!important}.results-sector{gap:12px}.results-sector img{width:75px;height:75px}.results-portrait{width:66px;height:66px}#returnResults{right:12px;max-width:65vw}}
@media(prefers-reduced-motion:reduce){.result-bar-fill{transition:none}}

#resultMedia video{display:block;width:100%;height:auto;max-height:65vh;object-fit:contain;background:#000}#resultMedia #resultVideoStatus{color:#ffb295}.survey-preview .video-preview{display:block;width:100%;padding:0!important;border:0!important;background:#000!important;border-radius:8px;overflow:hidden}.survey-preview .video-preview img{display:block;width:100%;height:auto;aspect-ratio:5/3;object-fit:cover}

.report-player{margin:22px 0 0}.report-player video{display:block;width:100%;height:auto;aspect-ratio:5/3;object-fit:contain;background:#000;border-radius:8px}.report-player figcaption{font-size:12px;color:#bdd5dd;margin:10px 0}.report-player button{margin:4px 8px 0 0}
#resultMedia{box-sizing:border-box;max-width:94vw;overflow:auto}
#resultMedia video{height:auto;max-height:calc(90dvh - 190px);object-fit:contain}
video:fullscreen{object-fit:contain!important;max-height:none!important;width:100%!important;height:100%!important;background:#000}

/* Espace ambassadeur : renseignements et carte de poids comparable. */
body.ambassador:not(.ambassador-home)>main{grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:min(1440px,100%);margin:0 auto}
body.ambassador .asideScroll{padding:22px 26px}
@media(max-width:760px){
 body.ambassador:not(.ambassador-home)>main{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(250px,36dvh) minmax(0,1fr)}
 body.ambassador>main>section{grid-row:1;min-height:0;height:100%;max-height:none}
 body.ambassador>main>aside{grid-row:2;min-height:0;border-right:0;border-top:1px solid #2a4654}
 body.ambassador .asideScroll{padding:16px 20px}
 body.ambassador #drawDock{bottom:42px}
}

/* Bibliothèque vidéo compacte : une vignette, une commande par séquence. */
#reefResults .video-library{grid-template-columns:repeat(auto-fit,minmax(180px,230px));gap:18px;justify-content:start}
#reefResults .video-library .survey-preview{width:100%;max-width:230px}
#reefResults .video-library .video-preview{position:relative;margin:0!important;border-radius:8px 8px 0 0}
#reefResults .video-library .video-preview img{aspect-ratio:5/3;height:auto;max-height:138px;object-fit:cover}
.video-play-icon{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#082d40e8;color:#fff;border:1px solid #b9e9df;font-size:20px}
#reefResults .video-library p{font-size:13px;line-height:1.4;margin:10px 12px}
@media(max-width:520px){#reefResults .video-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.video-play-icon{width:34px;height:34px;font-size:16px}}

/* Même gabarit que les quatre blocs de présentation : 1240px, retraits30px, écarts14px. */
.report-reading{max-width:1240px;padding:28px 30px 60px;box-sizing:border-box}.report-reading h1{margin:20px 0 8px}.report-date{color:#bcdce2}.report-intro{max-width:100%;margin-top:16px}.report-counts{display:flex;gap:14px;margin:18px 0}.report-counts .results-stat{display:flex;gap:10px;align-items:baseline;padding:10px 16px}.report-counts .results-stat b{font-size:24px}.report-section{margin:24px 0 0;padding-top:18px;border-top:1px solid #79adb43d;scroll-margin-top:24px}.report-section>h2{margin:0 0 16px;font-size:22px}
.report-charts,.fauna-charts,.report-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}.report-charts .results-card,.fauna-charts .results-card,.report-card-grid>.results-card{margin:0;padding:16px;min-width:0;border-radius:10px;font-size:13px;line-height:1.45}.report-charts h3,.fauna-charts h3,.report-card-grid h2,.report-card-grid h3{font-size:18px;line-height:1.25;margin:0 0 14px;color:#a1e6d9}.report-charts .results-chart{margin:14px 0 0}.report-charts .result-bar,.fauna-charts .result-bar{display:grid;grid-template-columns:1fr auto;gap:5px;font-size:11px!important;margin:10px 0!important}.report-charts .result-bar-track,.fauna-charts .result-bar-track{grid-row:2;grid-column:1/-1;height:10px}.report-charts .result-bar-value,.fauna-charts .result-bar-value{grid-column:2;grid-row:1;font-size:11px}.report-charts .chart-axis{margin:8px 0 0;font-size:10px}
.report-player{max-width:680px;margin:0 auto}.report-player video{max-height:50vh}.inline-playlist{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:14px}.inline-playlist [aria-pressed=true]{border-color:#9bdac8!important;color:#c3eee3!important;background:#71b4a52a!important}.report-section .results-grid{margin-bottom:0}.report-section .results-grid>.results-card{margin-bottom:0}.report-illustrated{position:relative}.report-medallion{display:block;float:none;width:44px!important;height:44px!important;object-fit:cover;border-radius:50%;border:1px solid #79adb4;margin:0 0 12px}.report-illustrated>h3,.report-illustrated>h2{min-height:38px}.report-illustrated .results-cardhead{display:block;margin:0 0 10px}.report-card-grid .results-timeline{padding:0 0 0 10px;margin:12px 0;border-width:2px}.report-card-grid .results-timeline time{font-size:13px}.report-card-grid .results-timeline h3{font-size:15px;margin:8px 0}.report-card-grid .results-small{font-size:10px!important}.report-card-grid .result-empty{padding:10px;font-size:11px}.report-card-grid p{margin:10px 0}.report-card-grid button{font-size:12px!important;padding:8px!important}
.survey-detail-grid{margin:18px 0}.survey-detail-grid>.survey-result{min-width:0;margin:0;padding:16px;border-radius:10px}.survey-detail-grid>.survey-result summary{font-size:15px}.survey-detail-grid>.survey-result[open]{grid-column:1/-1}.report-reading .survey-result{scroll-margin-top:24px}.composition-detail>.results-card{margin-top:16px}.fauna-charts .results-card{padding:14px}.fauna-charts h3{font-size:16px}
@media(max-width:980px){.report-charts,.fauna-charts,.report-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:700px){.report-reading{padding:20px 18px 50px}.report-counts{gap:8px}.report-counts .results-stat{padding:8px;font-size:12px;gap:6px}.report-counts .results-stat b{font-size:20px}.report-counts .results-stat span{font-size:11px}.inline-playlist{display:grid;grid-template-columns:1fr 1fr}.report-charts .results-card,.report-card-grid>.results-card{padding:12px}.report-charts h3,.report-card-grid h2,.report-card-grid h3{font-size:16px}.report-medallion{width:44px!important;height:44px!important;margin:0 0 12px}.report-card-grid button{max-width:100%;white-space:normal}.report-card-grid .results-cardhead .results-small{font-size:9px!important}}

#reefResults .report-card-grid>.results-card{display:block}#reefResults .report-card-grid p{font-size:13px;line-height:1.45}#reefResults .report-card-grid h2,#reefResults .report-card-grid h3{font-size:18px;line-height:1.25}#reefResults .report-card-grid .results-small{font-size:10px!important}#reefResults .report-charts .results-card>h3{min-height:44px}#reefResults .report-charts .result-bar-track{min-width:0}#reefResults .report-card-grid .results-timeline{margin:12px 0;padding:0 0 0 10px}@media(max-width:700px){#reefResults .report-card-grid p{font-size:12px}#reefResults .report-card-grid h2,#reefResults .report-card-grid h3{font-size:16px}#reefResults .report-charts .results-card>h3{min-height:60px}}

/* Légende en haut à droite, crédits discrets sans bandeau satellite. */
body.consultation .geoActive #mapInfo{top:8px;bottom:auto;left:auto;right:4px;width:88px;max-width:88px;align-items:flex-end}
body.consultation .geoActive #geoViewport{position:absolute;inset:0 98px 0 0;width:auto!important;height:auto!important}
body.consultation .geoActive #surveyTypes{align-items:flex-start;width:88px;padding:3px!important;background:transparent!important;border-radius:0!important;box-sizing:border-box}
body.consultation .geoActive .surveyLegendItem{display:flex;align-items:center;gap:4px;font-size:10px;line-height:1.25;white-space:normal;max-width:82px;word-break:normal}
body.consultation .geoActive .surveyLegendPin{width:19px;height:19px;flex:0 0 19px}
body.consultation .geoActive #notice{display:none}
.reef-map-credits{position:relative;background:#082d40e8;color:#d7e7e8;border-radius:50%;font-size:11px;max-width:280px}.reef-map-credits summary{cursor:pointer;list-style:none;width:25px;height:25px;display:grid;place-items:center;font-size:17px}.reef-map-credits summary::-webkit-details-marker{display:none}.reef-map-credits[open]{border-radius:8px;padding:5px}.reef-map-credits>div{max-width:250px;padding:6px;line-height:1.4}.reef-map-credits a{color:#9ee5d8}
@media(max-width:700px){body.consultation .geoActive #mapInfo{top:6px;right:2px;width:78px;max-width:78px}body.consultation .geoActive #surveyTypes{width:78px}body.consultation .geoActive .surveyLegendItem{font-size:9px;max-width:72px}body.consultation .geoActive #geoViewport{right:84px}.report-medallion{max-width:44px}.reef-map-credits{max-width:220px}}

/* Lecture de zone : accès aux données immédiat, analyses regroupées avant les médias. */
#reefResults .report-download{background:#73c7b526;color:#dbfff3;border-color:#91d9c7;font-weight:700;padding:12px 18px}.report-access{color:#c6e5e7}.report-jumps{display:flex;flex-wrap:wrap;gap:10px 22px;margin:20px 0}.report-jumps a{color:#9be1ce;text-underline-offset:5px}.report-section,.report-reading .survey-result{scroll-margin-top:calc(var(--header-height,114px) + 18px)}.report-fauna-detail{margin:24px 0}.report-fauna-detail>.report-section{margin:16px 0 0;border:0;padding:0}.report-fauna-detail>summary{font-size:17px}.report-jumps a:focus-visible{outline:2px solid #ef9471;outline-offset:5px}

.results-tag.results-theme{color:var(--theme-color);border-color:color-mix(in srgb,var(--theme-color) 45%,transparent);background:color-mix(in srgb,var(--theme-color) 12%,transparent)}
