@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--accent:#004f9f;--night:#00356b;--paper:#ffffff;--ink:#142330}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:95px}body{margin:0;background:var(--paper);color:var(--ink);font:16px 'DM Sans',Arial,sans-serif}button,a,input,select{font:inherit}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}header{height:96px;display:flex;align-items:center;justify-content:space-between;padding:0 5%;background:var(--paper);position:sticky;top:0;z-index:10;border-bottom:1px solid #ddd}.brand{display:flex;flex-direction:column}.brand b{font:800 48px/1 'Barlow Condensed',Impact,sans-serif;letter-spacing:-2px}.brand b span{color:var(--accent);font-size:32px;margin-left:5px}.brand small{font-size:8px;letter-spacing:1.6px;font-weight:700;margin-top:4px}nav{display:flex;gap:34px;font-size:14px;font-weight:600}.button{display:inline-flex;align-items:center;justify-content:space-between;gap:35px;border:0;background:var(--accent);color:#101c25;padding:19px 24px;font-weight:700;font-size:14px}.small{padding:14px 18px;font-size:12px}#menu{display:none}.hero{height:660px;min-height:580px;position:relative;background:var(--night);color:white;overflow:hidden}.hero>img{position:absolute;right:0;width:69%;height:100%;object-fit:cover}.shade{position:absolute;inset:0;background:linear-gradient(90deg,var(--night) 8%,#00356be8 35%,#00356b30 100%)}.hero-content{position:relative;padding:62px 6%;max-width:850px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;margin:0 0 23px}.hero .eyebrow{color:#e0d9d0}h1,h2,h3,p{margin-top:0}h1{font:700 clamp(60px,6.6vw,96px)/.98 'Barlow Condensed',Impact,sans-serif;letter-spacing:-1.5px;margin-bottom:26px}em{font-style:normal;color:var(--accent)}.hero-content>p:not(.eyebrow){max-width:440px;line-height:1.7;font-size:15px;color:#d9dfe3;margin-bottom:30px}.text-link{font-size:13px;margin-left:25px;border-bottom:1px solid #ffffff70;padding-bottom:6px}.hero-caption{position:absolute;right:5%;bottom:37px;font-size:9px;letter-spacing:2px;border-left:2px solid var(--accent);padding-left:18px}.hero-caption strong,.hero-caption>span{display:block;letter-spacing:0;font-size:14px;margin-top:8px}.hero-caption>span{font-size:11px;color:#ddd}.strip{display:flex;justify-content:space-between;background:var(--night);border-top:1px solid #ffffff30;color:#bfc8cd;padding:23px 6%;font-size:10px;letter-spacing:2px}.strip>span:before{content:'+';color:var(--accent);margin-right:14px}.section{padding:100px 6%}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:50px;margin-bottom:50px}.section-heading>p{max-width:340px;line-height:1.8;color:#617079;font-size:14px}h2{font:600 clamp(38px,4vw,57px)/1.05 'Barlow Condensed',Impact,sans-serif;letter-spacing:-.5px;margin-bottom:0}.section .eyebrow{color:#68757d}.services{border-top:1px solid #cbd0ce}details{border-bottom:1px solid #cbd0ce}summary{display:flex;align-items:center;gap:30px;padding:26px 0;cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}summary>span{color:#8b9599;font-size:12px}summary h3{font:600 31px 'Barlow Condensed',Impact,sans-serif;margin:0}summary b{margin-left:auto;color:var(--accent);font-size:26px}details[open] summary b{transform:rotate(90deg)}.service-body{display:grid;grid-template-columns:1fr 1fr;gap:48px;padding:0 0 30px 46px}.service-body img{width:100%;height:240px;object-fit:cover}.service-body p,.service-body li{font-size:14px;line-height:1.8;color:#5c6b73}.service-body ul{padding-left:18px}.service-body a{display:inline-block;font-weight:700;font-size:13px;margin-top:15px}.text-only{grid-template-columns:2fr 1fr}.projects{background:#edf3f9}.featured{display:grid;grid-template-columns:1.15fr 1fr;background:var(--paper)}.project-image{position:relative;min-height:430px}.project-image img{width:100%;height:100%;position:absolute;object-fit:cover}.project-image>span{position:absolute;bottom:20px;left:20px;background:var(--paper);padding:12px;font-size:9px;letter-spacing:1px}.project-text{padding:45px}.project-text h3{font:600 36px/1.1 'Barlow Condensed',Impact,sans-serif}.project-text>p:not(.eyebrow){font-size:14px;line-height:1.8;color:#617079}.metrics{display:flex;gap:45px;margin:26px 0}.metrics b{display:block;font:600 48px 'Barlow Condensed',Impact,sans-serif}.metrics div>span{font-size:11px;color:#617079}.outline{background:none;color:var(--ink);border:1px solid #8a9499;padding:14px 18px;font-size:12px;font-weight:600}.references{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:55px}.references>span{font-size:9px;letter-spacing:1.5px;max-width:125px;line-height:1.8;color:#6e797c}.references>b{font-size:18px;letter-spacing:-.5px;color:#596769}.references small{font-size:9px;letter-spacing:2px}.about{display:grid;grid-template-columns:1fr 1fr;gap:100px}.about>div>p:not(.eyebrow){line-height:1.8;color:#617079;max-width:440px;font-size:14px;margin-top:30px}.dark{margin-left:0;border-color:#869096}.steps article{display:flex;gap:22px;border-top:1px solid #ccc;padding:26px 0 13px}.steps article>span{color:var(--accent);font-size:12px}.steps h3{font-size:17px}.steps p{font-size:13px;line-height:1.8;color:#617079}.contact{background:var(--night);color:white;display:grid;grid-template-columns:1.6fr 1fr;gap:80px}.contact .eyebrow{color:#a7b7bd}.contact h2{font-size:58px}.contact p:not(.eyebrow){font-size:14px;line-height:1.7;color:#c3cdd2;max-width:470px;margin-top:25px}.contact .note{font-size:11px;margin-top:12px}.contact-person{border-left:1px solid #ffffff35;padding-left:50px;align-self:center}.contact-person h3{font:600 35px 'Barlow Condensed',Impact,sans-serif}.contact-person a{display:block;font-size:15px;margin:14px 0}.contact-person hr{border:0;border-top:1px solid #ffffff35;margin-top:30px}footer{display:flex;justify-content:space-between;gap:30px;padding:55px 6% 90px}footer b{font-size:12px}footer p{font-size:12px;line-height:1.8;color:#63717a}#customize{position:fixed;bottom:20px;right:20px;z-index:15;background:white;color:var(--ink);border:1px solid #c8cecf;border-radius:30px;padding:13px 20px;box-shadow:0 3px 18px #0002;font-size:12px}#editor{position:fixed;right:16px;top:105px;bottom:75px;width:320px;overflow:auto;background:#fff;color:#142330;padding:24px;z-index:20;box-shadow:0 10px 60px #0004;border:1px solid #ddd}#editor[hidden]{display:none}.editor-head{display:flex;justify-content:space-between}.editor-head button,.dialog-close{background:none;border:0;font-size:25px}.editor-head h3{margin:0}#editor p{font-size:12px;line-height:1.6}#editor label{display:block;font-size:12px;margin:18px 0}#editor input,#editor select{display:block;margin-top:8px;max-width:100%}#editor>button{display:block;width:100%;margin:12px 0}#editor .note{font-size:11px;color:#66767f}#reset{background:none;border:0;text-decoration:underline;font-size:11px}.editing [data-edit]{outline:2px dashed var(--accent);outline-offset:6px}.editing [data-edit]:focus{background:#004f9f15}dialog{border:0;padding:45px;width:min(680px,92vw);max-height:85vh;overflow:auto;color:var(--ink);background:var(--paper)}dialog::backdrop{background:#0d192ac9}dialog h2{margin-bottom:20px;font-size:40px}dialog h3{margin-top:25px}dialog p{line-height:1.7;font-size:14px}.dialog-close{float:right}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
@media(max-width:800px){header{height:80px;padding:0 6%}header>.button{margin-left:auto;margin-right:15px;font-size:10px;padding:12px}.brand b{font-size:38px}.brand small{font-size:6px}nav{display:none;position:absolute;left:0;right:0;top:80px;background:var(--paper);padding:25px;flex-direction:column}nav.open{display:flex}#menu{display:block;background:none;border:0;font-size:25px}.hero{height:690px}.hero>img{width:100%}.shade{background:linear-gradient(90deg,#00356bf2,#00356b80)}.hero-content{padding-top:60px}.hero h1{font-size:70px}.hero .eyebrow{font-size:9px;letter-spacing:1px}.hero-content>p:not(.eyebrow){max-width:340px}.hero .text-link{display:block;margin:20px 0;width:max-content}.hero-caption{right:6%;bottom:25px}.strip{gap:12px;font-size:8px;letter-spacing:.5px}.strip>span:before{margin-right:5px}.section{padding:65px 6%}.section-heading{display:block;margin-bottom:35px}.section-heading>p{margin:25px 0 0}.service-body{padding-left:0;gap:20px;grid-template-columns:1fr}.service-body img{height:220px}summary h3{font-size:26px}summary{gap:20px}.featured{grid-template-columns:1fr}.project-image{min-height:300px}.project-text{padding:30px}.references{flex-wrap:wrap;justify-content:flex-start;gap:25px}.references>span{max-width:none;width:100%}.references>b{font-size:15px}.about,.contact{grid-template-columns:1fr;gap:40px}.contact h2{font-size:45px}.contact-person{padding:30px 0 0;border-left:0;border-top:1px solid #ffffff35}footer{flex-wrap:wrap}footer>div{width:40%}footer>.brand{width:100%;margin-bottom:12px}#editor{top:90px;right:10px;width:min(320px,calc(100vw - 20px))}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Identité officielle DSP : bleu #004f9f et blanc. */
.brand{flex-direction:row;align-items:center;gap:12px}.brand img{width:74px;height:74px;object-fit:contain}.brand-name{color:#004f9f;font:700 17px/1.05 'Barlow Condensed',Arial,sans-serif;letter-spacing:.5px}.button{color:white}.hero em,.contact em{color:white}.hero h1 em{border-bottom:4px solid #fff;padding-bottom:3px}.hero .eyebrow{color:#daeaff}.hero-caption{border-left-color:white}.strip>span:before{color:white}.hero .text-link{color:white}.hero .button,.contact .button{background:white;color:#004f9f}.hero .button:hover,.contact .button:hover{background:#e3effc}.button:hover{background:#00356b}.hero-caption strong{color:white}.strip{background:#004f9f}footer{border-top:1px solid #dce6f1}footer>.brand{align-self:flex-start}.hero .shade{background:linear-gradient(90deg,#00356b 2%,#00356be8 30%,#00356b35 100%)}
@media(max-width:800px){.brand img{width:57px;height:57px}.brand-name{font-size:12px}.brand{gap:7px}header>.button{max-width:145px;text-align:center;margin-left:10px}.hero .shade{background:linear-gradient(90deg,#00356bf2,#00356b80)}}
@media(max-width:390px){header>.button{font-size:9px;max-width:120px;padding:10px}.brand-name{font-size:10px}.brand img{width:48px;height:48px}}

/* Réglages de l’éditeur visuel */
:root{--paper:#fff;--ink:#142330;--accent:#004f9f;--night:#00356b}
.brand-name{color:var(--accent)}.strip{background:var(--accent)}.hero .shade{background:linear-gradient(90deg,var(--night) 2%,color-mix(in srgb,var(--night) 90%,transparent) 30%,color-mix(in srgb,var(--night) 20%,transparent) 100%)}.hero .button,.contact .button{background:var(--paper);color:var(--accent)}.button:hover{background:var(--night)}.hero .button:hover,.contact .button:hover{background:var(--paper)}
#editor{width:350px;padding:20px}#editor fieldset{border:1px solid #d5dfe9;margin:22px 0;padding:12px}#editor legend{font-size:13px;font-weight:700}#editor select{width:100%;padding:8px;border:1px solid #c7d0db;background:white;color:#142330}#editor .editor-row{display:flex;gap:8px}#editor .editor-row button{flex:1;padding:10px 4px}#editor button:disabled{opacity:.4;cursor:default}#editor input[type=checkbox]{display:inline-block;margin:0 6px 0 0}#editor #status{position:sticky;bottom:-20px;background:#e9f2ff;padding:12px;color:#004f9f;font-weight:600}#editor #status:empty{display:none}.editing [data-edit]{outline:1px dashed #6292c3;outline-offset:3px;cursor:text}.editing [data-edit]:focus{outline:2px solid var(--accent);background:#74b2f326}.editing main{padding-right:370px}.editing header{padding-right:390px}.editing footer{padding-right:390px}.editing .hero-content{padding-left:6%;padding-right:6%}.editing h1{font-size:clamp(46px,5vw,76px)}.editing .hero-caption{display:none}.editing .section-heading{gap:20px}.editing .section-heading>p{max-width:220px}.editing .about,.editing .contact{gap:30px}.editing .project-text{padding:25px}.editing .references{flex-wrap:wrap}
.section[data-spacing=compact]{padding-top:45px;padding-bottom:45px}.section[data-spacing=large]{padding-top:135px;padding-bottom:135px}.hero[data-spacing=compact]{height:580px;min-height:580px}.hero[data-spacing=large]{height:780px}.hero[data-spacing=large] .hero-content{padding-top:95px}
[data-align=center]>.section-heading{display:block;text-align:center}[data-align=center]>.section-heading>p{margin:25px auto 0;max-width:550px}[data-align=right]>.section-heading{text-align:right;flex-direction:row-reverse}.hero[data-align=center] .hero-content{margin:auto;text-align:center}.hero[data-align=center] .hero-content>p{margin-left:auto;margin-right:auto}.hero[data-align=right] .hero-content{margin-left:auto;text-align:right}.hero[data-align=right] .hero-content>p{margin-left:auto}.about[data-align=center]>div:first-child,.contact[data-align=center]>div:first-child{text-align:center}.about[data-align=right]>div:first-child,.contact[data-align=right]>div:first-child{text-align:right}
.section[data-title-size=small] h2{font-size:36px}.section[data-title-size=large] h2{font-size:68px}.hero[data-title-size=small] h1{font-size:60px}.hero[data-title-size=large] h1{font-size:100px}
.about[data-flip=true]>div:first-child,.contact[data-flip=true]>div:first-child{order:2}.projects[data-flip=true] .project-image{order:2}.projects[data-flip=true] .featured{grid-template-columns:1fr 1.15fr}.contact[data-flip=true]{grid-template-columns:1fr 1.6fr}.contact[data-flip=true] .contact-person{border-left:0;border-right:1px solid #ffffff35;padding-left:0;padding-right:40px}
@media(max-width:1100px){.editing .section-heading,.editing .about,.editing .contact,.editing .featured{display:block}.editing .steps,.editing .contact-person{margin-top:30px}.editing header nav{display:none}}
@media(max-width:800px){.editing main,.editing header,.editing footer{padding-right:0}#editor{top:90px;width:min(350px,calc(100vw - 20px));max-height:70vh}.hero[data-title-size=large] h1{font-size:72px}.section[data-title-size=large] h2{font-size:49px}.about[data-flip=true],.contact[data-flip=true],.projects[data-flip=true] .featured{grid-template-columns:1fr}.hero .shade{background:linear-gradient(90deg,color-mix(in srgb,var(--night) 95%,transparent),color-mix(in srgb,var(--night) 50%,transparent))}}

#editor [hidden]{display:none!important}

.hero>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero>video[hidden],#video-toggle[hidden]{display:none}#video-toggle{position:absolute;z-index:2;right:5%;top:25px;border:1px solid #ffffff80;background:#00356b80;color:white;padding:10px 14px;font-size:11px;cursor:pointer}.hero>.shade{pointer-events:none}.editing #video-toggle{right:20px}@media(max-width:800px){#video-toggle{top:auto;bottom:95px;right:6%}}

/* Voile recentré sur le texte : la partie droite du film reste visible. */
.hero .shade{background:linear-gradient(90deg,color-mix(in srgb,var(--night) 92%,transparent) 0%,color-mix(in srgb,var(--night) 82%,transparent) 24%,color-mix(in srgb,var(--night) 40%,transparent) 43%,transparent 65%)}
.hero-content h1,.hero-content>p{text-shadow:0 2px 14px #00172c55}.hero-caption{text-shadow:0 1px 7px #000;background:#001d3970;padding:12px 16px}
@media(max-width:800px){.hero .shade{background:linear-gradient(90deg,color-mix(in srgb,var(--night) 90%,transparent) 0%,color-mix(in srgb,var(--night) 55%,transparent) 55%,color-mix(in srgb,var(--night) 12%,transparent) 100%)}}

.locations{display:grid;grid-template-columns:1.15fr 1fr;gap:7%;align-items:center;background:var(--paper);border-bottom:1px solid #dce6f1}.locations-map{position:relative;background:radial-gradient(ellipse at center,#e9f2fb 0%,#f7fafe 55%,transparent 75%);padding:12px 0}.france-map{display:block;width:100%;height:auto;overflow:visible}.france-outline{fill:#e2edf8;stroke:#a6c2df;stroke-width:1.6;stroke-linejoin:round}.map-route{fill:none;stroke:var(--accent);stroke-width:1.5;stroke-dasharray:4 7;opacity:.3}.map-halo{fill:var(--accent);opacity:.12}.map-dot{fill:var(--accent);stroke:white;stroke-width:3}.map-leader{stroke:var(--accent);stroke-width:1;fill:none}.map-city{fill:var(--accent);font:700 13px 'DM Sans',Arial,sans-serif;letter-spacing:.6px}.map-region{fill:#586f83;font:11px 'DM Sans',Arial,sans-serif}.france-map a:hover .map-halo{opacity:.28}.france-map a:focus{outline:none}.france-map a:focus .map-dot{stroke:#00254b;stroke-width:4}.map-caption{font-size:11px;color:#687b8b;text-align:center;margin:0 0 15px;letter-spacing:.2px}.locations-copy h2{font-size:clamp(38px,4vw,56px)}.locations-intro{font-size:14px;line-height:1.8;color:#617079;margin:25px 0 28px;max-width:470px}.agency{display:flex;gap:20px;padding:20px 0;border-top:1px solid #d6e2ed;scroll-margin-top:110px}.agency:target{background:#eef5fc}.agency-index{font-size:12px;color:var(--accent);padding-top:2px}.agency .agency-region{font-size:9px;font-weight:700;letter-spacing:1.8px;color:var(--accent);margin:0 0 7px}.agency h3{font:600 27px/1.1 'Barlow Condensed',Arial,sans-serif;margin:0 0 9px}.agency p:not(.agency-region){font-size:13px;line-height:1.6;color:#627486;margin:0 0 9px}.agency a{font-size:11px;color:var(--accent);font-weight:600}.locations-cta{display:inline-block;margin-top:15px;color:var(--accent);font-size:12px;font-weight:700;border-bottom:1px solid #b0cbe3;padding-bottom:6px}.locations[data-align=center] .locations-copy{text-align:center}.locations[data-align=center] .agency{justify-content:center}.locations[data-align=right] .locations-copy{text-align:right}.locations[data-flip=true]>.locations-map{order:2}.editing .locations{gap:30px;grid-template-columns:1fr 1fr}.editing .locations-copy h2{font-size:42px}@media(max-width:1050px){.editing .locations{grid-template-columns:1fr}.editing .locations-map{max-width:520px;margin:auto}}@media(max-width:800px){.locations{grid-template-columns:1fr;gap:35px}.locations-map{max-width:520px;width:100%;margin:auto}.locations-copy h2{font-size:44px}.locations-copy .eyebrow{font-size:10px;line-height:1.7}.locations[data-flip=true]>.locations-map{order:2}}

/* Photos métiers et galerie de projets. */
.service-thumb{width:100px;height:64px;object-fit:cover;border-radius:2px;flex:none}.services summary{gap:24px;padding:20px 0}.services summary>span{min-width:20px}.services .service-body img{object-fit:cover;object-position:center}.services .service-body{padding-left:148px}.project-controls{display:flex;align-items:center;gap:18px;margin-bottom:24px}.project-controls>label{font-size:12px;font-weight:600;white-space:nowrap}.project-controls select{flex:1;min-width:0;max-width:560px;padding:15px 40px 15px 16px;background:var(--paper);color:var(--ink);border:1px solid #bdcddd;font-size:13px;border-radius:0}.project-paging{margin-left:auto;display:flex;align-items:center;gap:15px}.project-paging button{width:43px;height:43px;background:transparent;border:1px solid #aabed1;color:var(--accent);font-size:20px}.project-paging button:hover{background:var(--accent);color:white}#project-counter{white-space:nowrap;font-size:11px;color:#5d7486;min-width:45px}.project-slide[hidden]{display:none!important}.project-slide{min-height:470px}.project-place{font-size:12px!important;color:var(--accent)!important;font-weight:600}.extra-dialog-close{float:right;background:none;border:0;font-size:25px}.references{display:block;margin-top:55px;padding-top:35px;border-top:1px solid #d1dce6}.references>p{font-size:10px;letter-spacing:2px;color:#63788b;text-align:center;margin-bottom:25px}.client-logos{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;align-items:center}.client-logo{display:flex;align-items:center;justify-content:center;min-height:105px;overflow:hidden;background:#fff}.client-logo img{width:100%;max-width:150px;height:105px;object-fit:contain;filter:grayscale(1);opacity:.64;transition:opacity .2s}.client-logo:hover img{opacity:.9}.editing .project-controls{flex-wrap:wrap}.editing .services .service-body{padding-left:0}.editing .client-logos{grid-template-columns:repeat(4,1fr)}
@media(max-width:800px){.locations{grid-template-columns:1fr}.service-thumb{width:67px;height:54px}.services summary{gap:12px}.services summary h3{font-size:24px}.services .service-body{padding-left:0}.project-controls{flex-wrap:wrap;gap:12px}.project-controls>label{width:100%}.project-controls select{font-size:11px;padding:13px 6px;flex-basis:60%}.project-paging{gap:7px}.project-paging button{width:34px;height:38px}.project-slide{min-height:0}.client-logos{grid-template-columns:repeat(3,1fr);gap:12px}.client-logo,.client-logo img{height:95px;min-height:95px}}
@media(prefers-reduced-motion:reduce){.client-logo img{transition:none}}


/* Cadrage des photos : dimensions du cadre conservées, fichier non modifié. */
.photo-viewport{position:relative;overflow:hidden;background:#e7edf3;min-width:0}
.photo-viewport>img{position:absolute!important;display:block;max-width:none!important;margin:0!important;object-fit:fill!important;object-position:center!important;transform:none!important}
.photo-service-frame{width:100%;height:240px}.photo-thumb-frame{width:100px;height:64px;flex:none;border-radius:2px}
.photo-project-frame{position:absolute;inset:0;width:100%;height:100%}.photo-hero-frame{position:absolute;right:0;top:0;width:69%;height:100%;background:var(--night)}
.editing .photo-viewport:not(#crop-preview){cursor:crosshair}.editing .photo-viewport:not(#crop-preview):hover{outline:2px solid var(--accent);outline-offset:3px}
#crop-preview{width:100%;aspect-ratio:1.8;border:1px solid #c4d4e4;margin:15px 0;max-height:300px}
#photo-framing input[type=range]{width:100%;accent-color:var(--accent);margin:9px 0 0}#photo-framing output{float:right;color:var(--accent);font-size:11px}#photo-framing .range-labels{display:flex;justify-content:space-between;font-size:10px;color:#657687;margin-top:5px}#photo-framing .note{margin:10px 0}#photo-framing .editor-row{margin-top:18px}#photo-framing .editor-row button{font-size:11px}
@media(max-width:800px){.photo-hero-frame{width:100%}.photo-service-frame{height:220px}.photo-thumb-frame{width:67px;height:54px}}

/* Navigation des réalisations sur les côtés et ajout de références. */
.project-controls{justify-content:space-between;margin-bottom:20px;min-height:30px}.project-gallery{position:relative;padding:0 56px}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:58px;border:1px solid #b5c9dc;background:var(--paper);color:var(--accent);font-size:25px;z-index:2;cursor:pointer}.gallery-arrow:hover{background:var(--accent);color:white}#project-prev{left:0}#project-next{right:0}.project-admin{display:none;gap:10px}.editing .project-admin{display:flex;flex-wrap:wrap}.project-admin [hidden]{display:none!important}.custom-project-dialog p,.custom-project .project-text>p{white-space:pre-line}.project-photo-empty{position:absolute;top:40%;width:100%;text-align:center;color:#63778a}
#project-form-dialog{width:min(740px,94vw);padding:30px;max-height:90vh}#project-form-dialog h2{font-size:36px;margin:0}#project-form-dialog .project-form-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}#project-form-close{background:none;border:0;font-size:28px}#project-form-dialog label{display:block;font-size:12px;font-weight:600;margin:15px 0 5px}#project-form-dialog input:not([type=hidden]),#project-form-dialog textarea{display:block;width:100%;margin-top:8px;padding:11px;border:1px solid #bccddd;font:14px 'DM Sans',Arial,sans-serif;color:var(--ink);background:white}#project-form-dialog textarea{resize:vertical}.project-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.project-form-grid>label:first-child{grid-column:1/-1}#new-project-preview{max-width:100%;max-height:200px;object-fit:contain;margin-top:15px}#project-form-dialog [hidden]{display:none!important}#project-form-message{font-size:12px;color:var(--accent)}#project-form-dialog .note{font-size:11px;color:#64798b}.project-form-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px;justify-content:flex-end}#project-delete{background:none;border:0;color:#a12f37;font-size:12px;text-decoration:underline}#project-submit:disabled{opacity:.5;cursor:wait}
@media(max-width:800px){.project-gallery{padding:0 30px}.gallery-arrow{width:28px;height:50px;font-size:20px}.project-controls{flex-wrap:wrap}.project-admin button{font-size:11px;padding:10px}.project-form-grid{grid-template-columns:1fr}#project-form-dialog{padding:22px}.project-form-actions{justify-content:stretch}.project-form-actions button{flex:1}.project-gallery .project-text{padding:22px}.project-gallery .project-image{min-height:260px}}

.expertise-page .expertise-header { gap: 16px; }
.expertise-back, .expertise-footer a { color: var(--accent); font-weight: 600; }
.expertise-page .expertise-guide { width: min(1120px, 90%); margin: 0 auto; padding: 56px 0; }
.expertise-guide h1 { font-size: clamp(44px, 7vw, 80px); }
.expertise-guide .expertise-nav {
  display: flex; flex-wrap: wrap; flex-direction: row; position: static;
  gap: 10px; padding: 0; margin: 0 0 32px;
}
.expertise-nav a { border: 1px solid #c1d0df; padding: 8px 12px; color: var(--accent); }
.expertise-nav a:hover, .expertise-nav a:focus-visible { border-color: var(--accent); }
.expertise-detail {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start;
  gap: clamp(24px, 5vw, 64px); padding: 46px 0; border-top: 1px solid #d1dce6;
  scroll-margin-top: 96px;
}
.expertise-detail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.expertise-copy h2 { font-size: clamp(36px, 5vw, 60px); margin: 0 0 16px; }
.expertise-copy h3 { font-size: 22px; margin: 24px 0 8px; }
.expertise-copy p, .expertise-copy li { line-height: 1.65; }
.expertise-copy ul { padding-left: 1.3em; }
.expertise-copy li + li { margin-top: 8px; }
.expertise-copy a:not(.button) { color: var(--accent); text-decoration: underline; }
.expertise-copy .button { margin-top: 12px; }
@media (max-width: 760px) {
  .expertise-detail { grid-template-columns: 1fr; scroll-margin-top: 80px; }
  .expertise-detail img { grid-row: 1; }
  .expertise-page .expertise-guide { padding-top: 36px; }
}

.dsp-text-box {
  width: min(88%, 1000px);
  margin: 24px auto;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid #d1dce6;
  border-left: 4px solid var(--accent);
  background: var(--paper);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.dsp-text-box h3 { margin: 0 0 12px; }
.dsp-text-box p { margin: 0; white-space: pre-wrap; line-height: 1.65; }
.dsp-box-edit { display: none; }
.editing .dsp-box-edit { display: inline-block; margin-top: 16px; }
#editor [data-box-title], #editor [data-box-body] {
  display: block; width: 100%; padding: 9px; margin-top: 4px;
  border: 1px solid #bccddd; border-radius: 0; font: inherit;
}
#editor [data-box-body] { resize: vertical; }
#editor [data-box-delete][hidden] { display: none; }
.guide-photo-frame { width: 100%; aspect-ratio: 4 / 3; }
.expertise-detail .guide-photo-frame img { aspect-ratio: auto; object-fit: fill; }
.expertise-copy [data-edit] { white-space: pre-wrap; }
.expertise-page.editing .expertise-guide { width: auto; margin: 0 5%; padding-right: 370px; }
.expertise-page.editing .expertise-detail { grid-template-columns: 1fr; }
@media (max-width: 800px) {
  .expertise-page.editing .expertise-guide { padding-right: 0; }
}
@media (max-width: 760px) {
  .guide-photo-frame { grid-row: 1; }
}

.dsp-read-only #customize,.dsp-read-only #editor {display:none!important}

.project-gallery-extra { position:absolute; inset:0; overflow:hidden; background:#e7edf3; }
.project-gallery-extra img { display:block; }
.project-gallery-controls {
  position:absolute; top:14px; right:14px; z-index:2;
  display:flex; align-items:center; color:#fff; background:#102b46eb; border-radius:3px;
}
.project-gallery-controls[hidden], .project-gallery-extra[hidden],
.project-gallery-manager [hidden] { display:none; }
.project-gallery-controls button {
  width:42px; height:42px; padding:0; border:0; background:transparent;
  color:inherit; font-size:26px; line-height:1; cursor:pointer;
}
.project-gallery-controls button:hover { background:var(--accent); }
.project-gallery-controls button:focus-visible { outline:2px solid white; outline-offset:-3px; }
.project-gallery-controls output { padding:0 5px; font-size:12px; }
.project-gallery-manager { display:none; margin-top:18px; padding-top:14px; border-top:1px solid #d4deea; }
.editing .project-gallery-manager { display:block; }
.project-gallery-manager label { display:block; font-size:13px; font-weight:600; }
.project-gallery-manager input { display:block; max-width:100%; margin:8px 0; }
.project-gallery-manager button { color:var(--accent); background:transparent; border:0; padding:6px 0; cursor:pointer; }
.project-gallery-manager p { margin:8px 0 0; font-size:12px; }

.editing .project-gallery-extra:not([hidden]) { cursor:crosshair; }
.project-gallery-extra img { max-width:none; object-fit:fill; }

.project-gallery[hidden], .gallery-arrow[hidden], #project-counter[hidden], #project-empty[hidden] { display:none; }
.project-gallery-single { padding-inline:0; }
body:not(.editing) .projects-empty .project-controls { display:none; }
body:not(.editing) .projects-empty > .section-heading { display:none; }
body:not(.editing) .projects-empty > .references { margin-top:0; }
#project-empty { margin:0; color:var(--ink); font-size:14px; }


/* Le cadre suit le format de la photo affichée, indépendamment du texte. */
.project-gallery .project-slide { min-height:0; }
.project-gallery .project-slide .project-image {
  align-self:start;
  width:100%;
  min-height:0;
  aspect-ratio:var(--project-photo-ratio, 1.5);
  max-height:650px;
}
.project-image [role="button"]:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:-4px;
  z-index:1;
}
#project-autoplay {
  border:1px solid #b5c9dc;
  border-radius:3px;
  background:var(--paper);
  color:var(--ink);
  padding:7px 10px;
  font:inherit;
  font-size:12px;
  cursor:pointer;
}
#project-autoplay[hidden], .editing #project-autoplay { display:none; }
body:not(.editing) .project-image .photo-project-frame,
body:not(.editing) .project-gallery-extra { cursor:zoom-in; }
.project-photo-lightbox {
  width:fit-content;
  max-width:94vw;
  max-height:92vh;
  padding:10px;
  background:#102131;
  color:#fff;
}
.project-photo-lightbox img {
  display:block;
  width:auto;
  height:auto;
  max-width:min(91vw, 1500px);
  max-height:calc(90vh - 60px);
  object-fit:contain;
}
.project-photo-lightbox button {
  display:block;
  margin:0 0 8px auto;
  padding:10px 12px;
  background:transparent;
  color:#fff;
  border:1px solid #fff9;
  cursor:pointer;
}
@media (max-width: 800px) {
  .project-gallery .project-slide .project-image { max-height:540px; }
}

/* Sur les écrans tactiles, conserver des commandes faciles à atteindre et
   réserver la largeur aux images et au texte. */
@media (max-width: 1050px) {
  :root { --small-gutter: clamp(18px, 4vw, 42px); }
  html { scroll-padding-top: 85px; }
  header { height:76px; padding:0 var(--small-gutter); gap:12px; }
  header .brand { min-width:0; flex:1 1 auto; margin:0; }
  header .brand img { width:54px; height:54px; flex:none; }
  header .brand-name { font-size:14px; }
  header > .button.small {
    margin:0; flex:0 1 auto; max-width:177px;
    min-height:44px; padding:8px 13px; font-size:12px; line-height:1.3;
    text-align:center;
  }
  #menu {
    display:grid; place-items:center; flex:0 0 44px;
    width:44px; height:44px; border:1px solid #d4dfeb; border-radius:3px;
    background:var(--paper); color:var(--accent); font-size:22px; cursor:pointer;
  }
  header nav {
    display:none; position:absolute; inset:100% 0 auto;
    flex-direction:column; gap:0; padding:8px var(--small-gutter) 16px;
    background:var(--paper); border-bottom:1px solid #d4dfeb; box-shadow:0 14px 24px #10213118;
  }
  header nav.open, .editing header nav.open { display:flex; }
  header nav a { display:flex; align-items:center; min-height:48px; padding:8px 0; }
  header nav a + a { border-top:1px solid #e3eaf2; }

  .hero[data-spacing] { height:auto; min-height:clamp(490px, 68vh, 640px); display:grid; align-items:center; }
  .hero-content, .editing .hero-content { padding:68px var(--small-gutter) 96px; width:100%; min-width:0; }
  .hero[data-title-size] h1 { font-size:clamp(44px, 7.7vw, 76px); line-height:.98; overflow-wrap:anywhere; }
  .hero[data-title-size=small] h1 { font-size:clamp(39px, 6.7vw, 60px); }
  .hero[data-title-size=large] h1 { font-size:clamp(48px, 8.25vw, 82px); }
  .hero-content > p:not(.eyebrow) { max-width:36ch; font-size:15px; }
  .hero[data-align=center] .hero-content > p:not(.eyebrow) { margin-inline:auto; }
  .hero[data-align=right] .hero-content > p:not(.eyebrow) { margin-left:auto; }
  .hero-caption { display:none; }
  #video-toggle, .editing #video-toggle { top:auto; bottom:17px; right:var(--small-gutter); min-height:44px; }
  .strip { padding:15px var(--small-gutter); gap:12px 20px; flex-wrap:wrap; justify-content:center; text-align:center; font-size:10px; }
  .section { padding:clamp(42px, 6vw, 70px) var(--small-gutter); }
  .section[data-spacing=compact] { padding-block:34px; }
  .section[data-spacing=large] { padding-block:clamp(54px, 9vw, 92px); }
  .section[data-title-size] h2 { font-size:clamp(35px, 5.4vw, 58px); overflow-wrap:anywhere; }
  .section[data-title-size=small] h2 { font-size:clamp(31px, 4.7vw, 48px); }
  .section[data-title-size=large] h2 { font-size:clamp(39px, 6.2vw, 62px); }
  .section-heading, .locations, .about, .contact { gap:clamp(22px, 4vw, 40px); }
  .section-heading > p { max-width:36ch; }
  .services summary > h3, .project-text, .locations-copy, .expertise-copy,
  .about > *, .contact > *, .expertise-detail > * { min-width:0; overflow-wrap:anywhere; }
  .services .service-body { padding-left:0; gap:20px; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .client-logos { grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
  .client-logo { min-width:0; }
  .contact-person a { overflow-wrap:anywhere; }
  .expertise-page .expertise-header { justify-content:space-between; }
  .expertise-back { font-size:13px; }
  dialog { max-height:calc(100dvh - 28px); }
  .editing main, .editing header, .editing footer,
  .expertise-page.editing .expertise-guide { padding-right:var(--small-gutter); }
  .editing main { padding-right:0; }
  #editor {
    top:auto; inset:auto 0 0; width:auto; bottom:0;
    max-height:42dvh; overflow:auto; overscroll-behavior:contain;
    padding:14px var(--small-gutter) max(16px, env(safe-area-inset-bottom));
    border-radius:12px 12px 0 0;
  }
  .editing #customize { top:auto; bottom:calc(42dvh + 8px); }
  .editing footer { margin-bottom:42dvh; }
}

@media (max-width: 800px) {
  header { height:68px; }
  html { scroll-padding-top:77px; }
  header .brand img { width:46px; height:46px; }
  header .brand-name { font-size:11px; }
  header > .button.small { max-width:128px; padding:6px 8px; font-size:11px; }
  .hero[data-spacing] { min-height: min(590px, 85svh); }
  .hero-content, .editing .hero-content { padding:55px var(--small-gutter) 80px; }
  .hero .shade {
    background:linear-gradient(90deg, color-mix(in srgb,var(--night) 92%,transparent),
      color-mix(in srgb,var(--night) 66%,transparent) 62%, color-mix(in srgb,var(--night) 38%,transparent));
  }
  .hero-content .button, .contact .button { min-height:46px; padding:13px 15px; gap:12px; max-width:100%; font-size:13px; }
  .hero .text-link { margin:14px 0 0; max-width:100%; min-height:44px; display:inline-flex; align-items:center; gap:6px; }
  .section-heading { margin-bottom:24px; }
  .section-heading > p { margin-top:12px; max-width:none; }
  .locations,.editing .locations { grid-template-columns:minmax(0,1fr); gap:22px; }
  .locations-copy { grid-row:1; }
  .locations[data-flip=true] > .locations-map { order:0; }
  .locations-map { max-width:430px; margin-inline:auto; }
  .agency { padding:14px 0; }
  .services .service-body { grid-template-columns:minmax(0,1fr); gap:14px; }
  .photo-service-frame { height:auto; aspect-ratio:16 / 9; }
  .services summary { gap:10px; }
  .services summary > h3 { font-size:clamp(20px, 5.8vw, 28px); }
  .photo-thumb-frame { width:54px; height:45px; }

  /* Les flèches changent de chantier en haut de la fiche. Les petites
     flèches restent sur la photo pour parcourir ce chantier. */
  .project-gallery:not([hidden]) {
    display:grid; grid-template-columns:44px minmax(0,1fr) 44px;
    gap:10px; padding:0;
  }
  .project-gallery .gallery-arrow { position:static; transform:none; width:44px; height:44px; grid-row:1; }
  #project-prev { grid-column:1; }
  #project-next { grid-column:3; }
  .project-carousel { grid-column:1 / -1; min-width:0; }
  .project-gallery .project-slide, .projects[data-flip=true] .featured { grid-template-columns:minmax(0,1fr); }
  .project-gallery .project-slide .project-image { order:0; max-height:min(480px, 65svh); }
  .project-gallery .project-text { padding:20px 16px; }
  .project-gallery-controls { top:9px; right:9px; }
  .project-gallery-controls button { width:44px; height:44px; }
  #project-autoplay { min-height:44px; }
  .client-logos,.editing .client-logos { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
  .client-logo,.client-logo img { height:76px; min-height:0; }
  .client-logo img { width:100%; padding:5px; }
  .about,.contact { gap:25px; }
  .contact .contact-person { padding:20px 0 0; border-right:0; }
  footer { padding:34px var(--small-gutter) 78px; gap:18px; }
  footer > div { width:100%; overflow-wrap:anywhere; }
  .expertise-page .expertise-guide { width:auto; margin:0; padding:28px var(--small-gutter) 44px; }
  .expertise-guide .expertise-nav { gap:8px; }
  .expertise-nav a { display:flex; align-items:center; min-height:40px; }
  .expertise-detail { grid-template-columns:minmax(0,1fr); gap:16px; padding:30px 0; scroll-margin-top:0; }
  .guide-photo-frame { grid-row:1; }
  .expertise-copy h2 { font-size:clamp(33px, 8vw, 44px); }
  #project-form-dialog { padding:17px; max-height:calc(100dvh - 28px); }
  #project-form-dialog h2 { font-size:30px; }
}
@media (max-width: 380px) {
  header .brand-name { display:none; }
  header > .button.small { max-width:142px; }
}
