/* Navigation toujours visible, contenu dans le flux. */
.site-header .header-inner{height:auto;min-height:0;padding:0 22px;gap:20px;display:grid;grid-template-columns:auto minmax(0,1fr) auto}
.home-page .brand img{width:104px;height:104px}
.site-header .site-nav{position:static;display:flex;flex-wrap:wrap;gap:2px 18px;justify-content:center;padding:8px 0;background:none;box-shadow:none;min-width:0}
.site-header .site-nav a{width:auto;font-size:13px;white-space:normal;padding:8px 0;line-height:1.35}
.site-header .member-link{white-space:normal;text-align:center;max-width:160px}
.wrap{width:100%}
.hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.hero-grid>* , .intro-grid>* , .feature-row>* , .film-band>* , .project-grid>* , .news-grid>*{min-width:0;max-width:100%}
.home-page .hero{height:auto;min-height:0;overflow:visible;background:linear-gradient(90deg,#071e30dc,#071e3080);background-attachment:scroll}
.home-page .hero-grid{min-height:0;gap:32px}
.home-page .hero-copy{padding:36px 0 40px}
.home-page .hero h1{font-size:clamp(2.5rem,5vw,4.4rem);line-height:1.08;margin-bottom:20px}
.home-page .hero .lead{font-size:18px;line-height:1.65}
.home-page .scene{width:100%;min-width:0;height:440px;max-width:100%;contain:layout}
.scene .reef-fallback{inset:18% 3% 21%;transform:rotate(-2deg)}
.scene-caption{top:12px;right:8px}
.scene-label{bottom:52px;left:12px;max-width:calc(100% - 24px);font-size:9px;letter-spacing:.02em}
.motion-toggle{bottom:8px;left:12px}
.home-page{position:relative;isolation:isolate;background:#092d40}
.home-page:before{content:"";position:fixed;inset:0;z-index:-1;background:url("/assets/previews/recif-vivant-usgs-de7c9e2f-960.webp") center 58%/cover no-repeat;pointer-events:none}
.home-page .section{background:#f4f7f4e8;padding-block:64px}
.home-page .section.section-light{background:#eaf1eee0}
.home-page .section.section-dark{background:#071e30d6}
.home-page .join-band{background:#6adac9ed}
.home-page .site-footer{background:#071e30ed}
.home-page .hero-strip{background:#071e30e6}
.reveal,.motion-ready .reveal{opacity:1;transform:none}
.enter-motion{animation:reef-enter .55s ease-out}
@keyframes reef-enter{from{transform:translate3d(0,8px,0)}to{transform:none}}
.brand img{transform-origin:center;animation:logo-arrive 1s ease-out both;transition:transform .35s}
.brand:hover img{transform:perspective(500px) rotateY(-10deg) translateY(-2px)}
@keyframes logo-arrive{from{transform:perspective(500px) rotateY(-18deg) scale(.94)}to{transform:none}}
.editorial-image.fit-contain img[src*="quatre-vues"]{height:auto;max-height:none;aspect-ratio:5/3;object-fit:contain}
@media(max-width:900px){.site-header .header-inner{gap:8px 16px;grid-template-columns:auto minmax(0,1fr) auto}.site-header .site-nav{gap:2px 13px}.site-header .site-nav a{font-size:12px}.home-page .hero-grid{gap:22px}.home-page .hero h1{font-size:clamp(2.3rem,5.3vw,3rem)}}
@media(max-width:760px){.site-header{position:relative}.site-header .header-inner{grid-template-columns:auto 1fr;padding:0 16px}.home-page .brand img{width:80px;height:80px}.site-header .member-link{grid-column:2;grid-row:1;justify-self:end}.site-header .site-nav{grid-column:1/-1;grid-row:2;justify-content:center;padding:0 0 10px;gap:2px 16px}.site-header .site-nav a{font-size:12px;padding:7px 0}.home-page .hero-grid{display:flex;flex-direction:column;gap:0}.home-page .hero-copy{padding:30px 0 12px}.home-page .hero h1{font-size:clamp(2.5rem,9vw,3.7rem)}.home-page .scene{height:330px;margin:0}.home-page .section{padding-block:44px}.hero-strip .wrap{flex-direction:column;gap:7px}.intro-grid,.feature-row,.film-band{grid-template-columns:minmax(0,1fr)}.scene-caption{top:4px}.scene-label{bottom:47px}}
@media(prefers-reduced-motion:reduce){.enter-motion,.brand img{animation:none}.brand:hover img{transform:none}}
.equipment-list{display:grid;gap:18px}.equipment-row{display:grid;grid-template-columns:140px minmax(0,1fr) auto;gap:22px;align-items:center;padding:20px;background:white;border:1px solid #cadbdc;border-radius:10px}.equipment-row>img{width:140px;height:110px;object-fit:contain;border-radius:6px;background:#0b283a}.equipment-row h3{font-size:20px;margin-bottom:10px;line-height:1.2}.equipment-row p{font-size:15px;margin:0;line-height:1.6}.equipment-action{max-width:190px}.project-equipment{margin:40px 0;scroll-margin-top:120px}.need-image{width:100%;height:170px;object-fit:contain;background:#0b283a;border-radius:7px;margin-bottom:22px}.editorial-thumb{width:100%;border-radius:8px}.step-list li{display:grid;grid-template-columns:145px minmax(0,1fr);gap:24px;align-items:start}.step-picture{width:145px;height:110px;object-fit:contain;background:#0b283a;border-radius:8px}.step-copy{min-width:0}.block-picture{width:180px;height:125px;object-fit:contain;background:#0b283a;border-radius:8px;float:left;margin:0 24px 18px 0}.info-panel:after,.research-entry:after{content:"";display:block;clear:both}.resource-row>.block-picture{float:none;flex:none;margin:0}.video-scene{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;perspective:none}.deepreef-video{display:block;width:100%;height:auto;aspect-ratio:5/3;object-fit:contain;background:#071e30;border-radius:8px}.video-scene figcaption{position:static;max-width:100%;font-size:12px;line-height:1.65;color:#d7eded;align-self:flex-start}.home-page .video-scene{height:auto;min-height:360px}.video-scene .hero-video{box-shadow:0 20px 40px #00142155}.equipment-row .btn{font-size:12px}
@media(max-width:760px){.equipment-row{grid-template-columns:90px minmax(0,1fr);gap:16px;padding:16px}.equipment-row>img{width:90px;height:90px}.equipment-action{grid-column:1/-1;max-width:none}.equipment-action .btn{width:100%}.step-list li{grid-template-columns:minmax(0,1fr)}.step-picture{width:100%;height:150px}.block-picture{float:none;width:100%;height:160px;margin:0 0 20px}.resource-row{display:block}.resource-row>.block-picture{margin-bottom:18px}.home-page .video-scene{min-height:0;margin:20px 0 28px}}

.project-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center;margin:26px 0}.project-intro .editorial-image img{height:260px;object-fit:contain}.project-intro p{font-size:18px;line-height:1.7;margin:0}.project-intro figcaption{font-size:11px}.project-intro>*{min-width:0}@media(max-width:620px){.project-intro{grid-template-columns:minmax(0,1fr)}.project-intro .editorial-image img{height:220px}}

/* Typographie éditoriale compacte ; formulaires et cartes conservent leur lisibilité. */
body.home-page,body.inner-page{font-size:15px}
h1,.page-hero h1{font-size:clamp(2.2rem,4vw,3.6rem);line-height:1.12}
h2{font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.15}
.home-page .hero h1{font-size:clamp(2.4rem,4.4vw,3.8rem)}
.home-page .hero .lead,.page-hero .lead,.lead{font-size:17px;line-height:1.65}
.intro-grid .body,.reading>p,.project-intro p{font-size:16px;line-height:1.7}
.reading h2{font-size:1.9rem}.project-card h3,.news-item h3{font-size:1.55rem;line-height:1.2}
.page-hero{padding:35px 0 40px}.crumbs{margin-bottom:22px}.page-hero h1{margin-bottom:18px}.section{padding:58px 0}
.join-band h2{font-size:2.2rem}.project-card{padding:24px}.project-card .project-number{top:264px}
.mini-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:26px}.mini-gallery img{width:100%;height:105px;object-fit:cover;background:#0b283a;border-radius:7px}.mini-gallery figcaption{font-size:11px;color:#126574;margin-top:8px;text-align:center}
@media(max-width:760px){.home-page .hero h1{font-size:clamp(2.2rem,8vw,3.2rem)}.home-page .hero .lead,.page-hero .lead{font-size:16px}.project-card h3{font-size:1.5rem}.mini-gallery img{height:85px}.page-hero h1{font-size:2.1rem}.section{padding:40px 0}.reading h2{font-size:1.7rem}}

.project-card h3 a{text-decoration:none}.project-card .project-arrow{text-decoration:none}.project-image video{width:100%;height:100%;object-fit:contain}.feature-image video{height:auto;aspect-ratio:5/3;object-fit:contain}.feature-image figcaption{position:static;padding:14px 18px;background:#071e30}.mini-gallery video{height:105px;object-fit:contain}.film-art video{width:100%;height:100%;object-fit:contain}.film-art span{position:static;max-width:none;display:block;margin:0;letter-spacing:.04em}.film-art{display:block;aspect-ratio:auto}.news-item video{object-fit:contain}.block-picture.deepreef-video{height:125px;width:180px}.step-picture.deepreef-video{height:110px;width:145px}.preview-video.news-image{height:220px}.equipment-row video{width:140px;height:110px}.mini-gallery video+figcaption{font-size:11px}.film-index video{width:100%;height:100%;object-fit:contain}
@media(max-width:760px){.mini-gallery video{height:85px}.block-picture.deepreef-video,.step-picture.deepreef-video{width:100%;height:auto}.equipment-row video{width:90px;height:90px}}

.base-model{height:250px;min-width:0;position:relative;isolation:isolate;touch-action:pan-y;border-radius:8px;background:radial-gradient(ellipse at 50% 70%,#126574,#071e30 80%);overflow:hidden}.base-model canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.base-model .model-poster{width:100%;height:100%;object-fit:contain}.base-model.model-loaded .model-poster{visibility:hidden}.model-tools{position:absolute;bottom:10px;right:10px;display:flex;gap:7px;z-index:2}.model-tools button{font-size:11px;padding:6px 10px;background:#071e30db;color:#d2eeeb;border:1px solid #6adac94d;border-radius:20px;cursor:pointer}.model-figure .base-model{height:320px}.model-figure figcaption{font-size:11px;line-height:1.6;padding-top:10px}.project-card:has(.base-model) .project-number{top:294px}.base-model:focus-visible{outline:2px solid #ef9471;outline-offset:3px}

/* Les photos produit montrent l'objet entier, les dessins restent lisibles. */
img[src$="blueboat-rapproche.jpg"],img[src$="blueboat-ensemble.jpg"]{object-fit:contain!important;background:#fff!important}
img[src$="blueboat-rapproche.jpg"]{object-fit:cover!important;object-position:50% 20%}
.project-image:has(img[src$="blueboat-rapproche.jpg"]){background:#fff}
.project-image:has(img[src$="nageur-fiche.png"]){background:#eaf7f6}
.home-page .mini-gallery img[src$="nuuroa-terrain.jpg"]{object-fit:cover}
.home-page .mini-gallery img[src$="nage-libre-usgs.jpg"]{object-fit:cover}
.home-page .film-art img{width:100%;max-height:280px;object-fit:cover;display:block}
.film-art{display:block;width:100%;min-width:0;min-height:0;aspect-ratio:16/10;align-self:center}
.home-page .film-art img,.film-art>img,.film-art>video{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover}
.video-scene video{flex:none;min-height:0;width:100%;aspect-ratio:5/3;object-fit:contain}
.article-picture{float:left;width:42%;max-width:340px;margin:0 28px 20px 0}.article-picture img{width:100%;border-radius:8px}.article-picture figcaption{font-size:11px;line-height:1.5;margin-top:8px}.article-picture .image-credit{display:block}
.article-references{clear:both;padding-top:28px}.article-references h2{font-size:20px}
.news-image[src*="deepreefmap-"]{object-fit:cover;background:#071e30}
.news-credit{font-size:11px;line-height:1.5;margin:-15px 0 16px;color:#476474}
.news-credit a,.article-picture .image-credit{color:#126574}
.home-page .hero .hero-join{color:#ef9471}
@media(max-width:620px){.article-picture{float:none;width:100%;max-width:340px;margin:0 0 22px}}

/* Aperçu des vidéos de relevés */
#videos-releves{scroll-margin-top:calc(var(--header-height,165px) + 20px)}.survey-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0}.survey-video-card{min-width:0;padding:18px;border:1px solid #6adac945;border-radius:12px;background:#082c3e;color:#edf6f5}.survey-video-card h3{font-size:19px;color:#edf6f5}.survey-video-card video{display:block;width:100%;aspect-ratio:5/3;background:#071e30;border-radius:8px}.video-overview .film-art{display:block;color:white}@media(max-width:760px){.survey-video-grid{grid-template-columns:1fr}}

/* Images légendées : conserver tout le cadre, y compris les textes. */
img[src$="nageur-fiche.png"],img[data-video-overview]{object-fit:contain!important;object-position:center!important;background:#eaf7f6}
.video-overview .film-art{aspect-ratio:5/3;background:#071e30}

/* Photographies entières : le bloc suit leur format, sans bandes ajoutées. */
.project-image:has(>img[src$=".jpg"]),.project-image:has(>img[src*="-sea-watchers.png"]){height:auto!important;aspect-ratio:auto!important}
.project-image>img[src$=".jpg"],.project-image>img[src*="-sea-watchers.png"],.project-intro .editorial-image img[src$=".jpg"],.project-catalog .intro img,.project-catalog .card>img[src$=".jpg"],.project-catalog .card>img[src*="-sea-watchers.png"],.news-image[src$=".jpg"]{display:block;width:100%!important;height:auto!important;aspect-ratio:var(--media-ratio,auto)!important;object-fit:cover!important;padding:0!important}

/* Scenes de mission : garder le panorama complet et les annotations lisibles. */
img[src$="mission-nage-libre.png"]:not(.contribution-medallion),img[src$="mission-blueboat.png"]:not(.contribution-medallion),img[src$="mission-mouillages.png"]:not(.contribution-medallion){height:auto!important;object-fit:contain!important}
.step-list li:has(img[src$="mission-nage-libre.png"]){grid-template-columns:1fr}.step-list img[src$="mission-nage-libre.png"]{width:100%;max-width:840px}

