/* Portfolio 2026 — dedicated project gallery redesign */
#projets.section-projects{padding:78px 0 100px;background:#081524;overflow:visible;isolation:isolate}
#projets.section-projects:before{opacity:.12}
#projets>.wrap{max-width:1330px}
#projets .projects-intro{display:flex;align-items:end;justify-content:space-between;gap:35px;margin-bottom:32px}
#projets .projects-intro>div{max-width:880px}
#projets .projects-eyebrow{display:block;font-size:11px;letter-spacing:2px;font-weight:800;color:#65d8db;margin-bottom:15px}
#projets .projects-intro h2{font-size:clamp(36px,5.5vw,70px);letter-spacing:-.055em;line-height:1.07;font-weight:800;color:#f6fbff;margin:0 0 19px}
#projets .projects-intro h2 span{color:#70d7dd}
#projets .projects-intro p{font-size:16px;line-height:1.75;color:#a8c0d0;max-width:760px;margin:0}
#projets .projects-highlights{display:flex;gap:11px;flex-wrap:wrap;margin-top:25px}
#projets .projects-highlights>span{display:flex;align-items:center;gap:7px;padding:10px 14px;border:1px solid #254155;border-radius:10px;color:#b6cbd9;font-size:12px;background:#10263a}
#projets .projects-highlights strong{font-size:15px;color:#fff}
#projets .projects-intro-cta{white-space:nowrap;padding:14px 18px;border:1px solid #3b6472;border-radius:11px;color:#e5faff;text-decoration:none;font-weight:750;font-size:13px;transition:background .2s}
#projets .projects-intro-cta:hover{background:#15384c}
#projets .projects-feature{display:grid;grid-template-columns:0.95fr 1.05fr;align-items:stretch;min-height:350px;background:linear-gradient(125deg,#10352d,#123b3e 70%,#154857);border:1px solid #35665e;border-radius:22px;overflow:hidden;margin-bottom:55px;box-shadow:0 20px 45px #0002}
#projets .projects-feature-copy{padding:clamp(26px,4vw,53px);display:flex;flex-direction:column;align-items:start;justify-content:center}
#projets .projects-feature-label{font-size:11px;letter-spacing:1.3px;color:#a0f3bd;font-weight:850}
#projets .projects-feature h3{font-size:clamp(30px,4vw,50px);line-height:1.1;letter-spacing:-.04em;color:#fff;margin:14px 0}
#projets .projects-feature p{font-size:15px;line-height:1.7;color:#d3e8e1;max-width:480px;margin:0}
#projets .projects-feature-tags{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 25px}
#projets .projects-feature-tags span{border:1px solid #588878;background:#ffffff10;border-radius:7px;color:#e8fff2;padding:6px 10px;font-size:11px}
#projets .projects-feature-actions{display:flex;gap:10px;flex-wrap:wrap}
#projets .projects-feature-actions a{padding:12px 15px;border-radius:9px;background:#2cbb66;color:#052b19;font-size:12px;font-weight:800;text-decoration:none}
#projets .projects-feature-actions a+ a{background:transparent;border:1px solid #7eb69f;color:#f3fff6}
#projets .projects-feature-visual{display:flex;align-items:center;padding:32px 0 32px 20px;min-width:0}
#projets .projects-feature-visual img{width:110%;max-width:none;display:block;aspect-ratio:1200/760;object-fit:cover;object-position:left top;border:8px solid #ffffff20;border-radius:17px;box-shadow:0 20px 45px #001e1d80}
#projets .projects-list-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:21px}
#projets .projects-list-heading h3{color:#fff;font-size:clamp(27px,3.5vw,40px);letter-spacing:-.035em;margin:0}
#projets .projects-list-heading .projects-eyebrow{margin-bottom:8px}
#projets .projects-list-note{color:#9db7c9;font-size:12px}
#projets .filters{background:transparent;border:0;padding:0;box-shadow:none;gap:9px;margin-bottom:23px}
#projets .filters .filter{background:#10253a;border:1px solid #2b445a;color:#c7d9e5;border-radius:9px;padding:11px 16px;font-size:12px}
#projets .filters .filter.active,#projets .filters .filter[aria-pressed=true]{background:#dff6f2;border-color:#dff6f2;color:#103a3c;box-shadow:none}
#projets .project-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important;overflow:visible!important;scroll-snap-type:none!important;max-height:none!important;transform:none!important;padding:0!important}
#projets .project-grid>.project-card{grid-column:auto!important;grid-row:auto!important;width:auto!important;min-width:0!important;max-width:none!important;flex:none!important;min-height:0!important;scroll-snap-align:none!important;border-radius:16px!important;border:1px solid #2d455a;background:#11283d;box-shadow:0 12px 25px #0002;overflow:hidden;display:flex;flex-direction:column}
#projets .project-grid>.project-card[hidden]{display:none!important}
#projets .project-grid>.project-card:hover{transform:translateY(-4px);border-color:#64b7bd;box-shadow:0 20px 36px #0004}
#projets .project-card .project-preview,#projets .project-card .featured-image{width:100%;aspect-ratio:16/10;overflow:hidden;display:block}
#projets .project-card .project-preview img,#projets .project-card .featured-image img{width:100%;height:100%;object-fit:cover}
#projets .project-card .laptop-mockup{width:100%;height:100%;max-width:none;margin:0}
#projets .project-card .laptop-mockup img{object-fit:cover}
#projets .project-card .project-content,#projets .project-card .spotlight-content{padding:22px!important}
#projets .project-card .project-overline{font-size:10px;letter-spacing:.7px;color:#6cd6d7}
#projets .project-card h3{font-size:20px;line-height:1.2;color:#f7fbff;margin:9px 0}
#projets .project-card p{font-size:13px;line-height:1.7;color:#b4c7d5}
#projets .project-card .chips{display:flex;flex-wrap:wrap;gap:6px}
#projets .project-card .chips span{font-size:10px}
#projets .project-card .premium-detail-link{margin-top:auto;padding:13px 21px!important;border-top:1px solid #284459;color:#8fe2df;font-size:12px;font-weight:800;text-decoration:none}
#projets .portfolio-spotlight .spotlight-preview{aspect-ratio:16/10}
#projets .portfolio-spotlight .spotlight-preview:after{background:linear-gradient(180deg,transparent 35%,#061526bf)}
#projets .portfolio-spotlight .spotlight-overlay{bottom:13px;left:15px;right:12px}
#projets .portfolio-spotlight .spotlight-overlay strong{font-size:20px}
#projets .portfolio-spotlight .spotlight-overlay>span:last-child{font-size:11px}
#projets .portfolio-spotlight .spotlight-content{flex:1}
#projets .fleet-spotlight .spotlight-category{background:#a4efb4}
body.light #projets.section-projects{background:#f1f6f9}
body.light #projets .projects-intro h2,body.light #projets .projects-list-heading h3{color:#11283c}
body.light #projets .projects-intro h2 span{color:#168e8d}
body.light #projets .projects-intro p,body.light #projets .projects-list-note{color:#5c7488}
body.light #projets .projects-highlights>span{background:#fff;color:#53697a;border-color:#d9e5ec}
body.light #projets .projects-highlights strong{color:#18344b}
body.light #projets .projects-intro-cta{color:#174457;border-color:#b8d0dc}
body.light #projets .filters .filter{background:#fff;color:#405c6f;border-color:#d7e5ec}
body.light #projets .filters .filter.active{background:#164f55;color:#fff}
body.light #projets .project-grid>.project-card{background:#fff;border-color:#d9e5ed;box-shadow:0 8px 25px #102d4610}
body.light #projets .project-card h3{color:#173249}
body.light #projets .project-card p{color:#597185}
body.light #projets .project-card .premium-detail-link{border-color:#e1e9ef;color:#168b8d}
@media(max-width:1100px){#projets .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#projets .projects-intro{align-items:start;flex-direction:column}#projets .projects-feature{grid-template-columns:1fr 1fr}}
@media(max-width:680px){#projets.section-projects{padding:54px 0 70px}#projets .projects-intro h2{font-size:38px}#projets .projects-feature{grid-template-columns:1fr}#projets .projects-feature-copy{padding:25px}#projets .projects-feature-visual{padding:0 20px 24px}#projets .projects-feature-visual img{width:100%}#projets .projects-list-heading{align-items:start;flex-direction:column;gap:8px}#projets .project-grid{grid-template-columns:1fr!important;gap:16px!important}#projets .projects-highlights{gap:7px}#projets .projects-highlights>span{font-size:11px;padding:8px}#projets .filters{width:100%}#projets .filters .filter{flex:1 1 auto;padding:10px 11px}#projets .projects-intro-cta{width:100%;text-align:center}}

/* v2 visual QA: neutralize conflicting legacy carousel / card styling */
#projets .project-grid{position:static!important;display:grid!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;grid-template-rows:auto!important;align-items:stretch!important;justify-content:stretch!important;white-space:normal!important;scroll-behavior:auto!important;overscroll-behavior:auto!important}
#projets .project-grid>.project-card{position:relative!important;float:none!important;transform:none;opacity:1!important;visibility:visible!important;box-sizing:border-box!important;scroll-margin:0!important;height:auto!important}
#projets .project-grid>.project-card:hover{transform:translateY(-5px)!important}
#projets .project-grid>.project-card[hidden]{display:none!important}
#projets .project-card .featured-image,#projets .project-card .project-preview,#projets .project-card .spotlight-preview{flex-shrink:0;position:relative;min-height:0;max-height:none;height:auto;aspect-ratio:16/10;box-sizing:border-box}
#projets .project-card .featured-image img,#projets .project-card .project-preview img,#projets .project-card .spotlight-preview img{display:block;width:100%;height:100%;max-width:none;object-fit:cover}
#projets .project-card .laptop-mockup{border:0;box-shadow:none;border-radius:0;transform:none;aspect-ratio:16/10;overflow:hidden}
#projets .project-card .laptop-mockup:before,#projets .project-card .laptop-mockup:after{display:none}
#projets .project-card .laptop-mockup img{position:static;transform:none;width:100%;height:100%;border:0;border-radius:0;object-fit:cover}
#projets .project-card .project-content,#projets .project-card .spotlight-content{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}
#projets .project-card .project-content>*,#projets .project-card .spotlight-content>*{max-width:100%}
#projets .project-card .project-content .chips,#projets .project-card .spotlight-content .chips{margin-top:auto;padding-top:8px}
#projets .project-card .project-content .text-link,#projets .project-card .project-content .case-study-trigger{align-self:flex-start}
#projets .project-card .spotlight-actions{margin-top:5px}
#projets .project-card .premium-detail-link{display:block!important;position:static!important;width:auto!important;opacity:1!important;visibility:visible!important;transform:none!important}
#projets .project-card .institution-logo{height:100%;min-height:0;aspect-ratio:16/10}
#projets .project-card .institution-logo img{object-fit:contain;height:72px;width:100px}
#projets .projects-feature-visual{overflow:hidden}
#projets .projects-feature-visual img{transition:transform .3s}
#projets .projects-feature-visual:hover img{transform:translateY(-4px)}
#projets a:focus-visible,#projets button:focus-visible{outline:3px solid #8ce9e0;outline-offset:3px}
@media(prefers-reduced-motion:reduce){#projets *{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
@media(max-width:680px){#projets .project-grid>.project-card{width:100%!important}#projets .project-card .project-content,#projets .project-card .spotlight-content{padding:19px!important}#projets .projects-intro p{font-size:14px}#projets .projects-feature-visual img{max-width:100%}}

/* v3 card system: consistent image, typography, links and spacing */
#projets .project-grid{gap:24px!important}
#projets .project-grid>.project-card{background:#fff!important;color:#172b3f!important;border:1px solid #dce7ee!important;border-radius:18px!important;box-shadow:0 9px 25px #0c315016!important;transition:transform .22s ease,box-shadow .22s ease!important}
#projets .project-grid>.project-card:hover{box-shadow:0 22px 44px #0b31502b!important}
#projets .project-card .featured-image,#projets .project-card .project-preview,#projets .project-card .spotlight-preview{aspect-ratio:16/9!important;background:#e8f0f6!important}
#projets .project-card .featured-image img,#projets .project-card .project-preview img,#projets .project-card .spotlight-preview img{object-fit:cover!important;object-position:top center!important}
#projets .project-card .spotlight-preview:after,#projets .project-card .spotlight-overlay,#projets .project-card .screen-label{display:none!important}
#projets .project-card .project-content,#projets .project-card .spotlight-content{padding:22px 22px 18px!important;gap:10px!important}
#projets .project-card .project-overline{color:#178d94!important;font-weight:800!important;font-size:10px!important;letter-spacing:.9px!important}
#projets .project-card h3{color:#142b40!important;font-size:20px!important;font-weight:800!important;line-height:1.25!important;margin:2px 0!important}
#projets .project-card p{color:#5a7184!important;font-size:13px!important;line-height:1.65!important;margin:0!important}
#projets .project-card .chips{margin:10px 0 0!important;padding:0!important;gap:6px!important}
#projets .project-card .chips span{background:#eaf3f8!important;border:1px solid #dbeaf2!important;color:#45647b!important;padding:5px 8px!important;border-radius:6px!important;font-size:10px!important}
#projets .project-card .premium-detail-link{background:#f6fafc!important;border-top:1px solid #e5edf3!important;color:#137f8a!important;padding:16px 22px!important;font-size:12px!important;letter-spacing:0!important}
#projets .project-card .premium-detail-link:hover{background:#e9f6f7!important}
#projets .project-card .spotlight-actions{gap:12px!important;margin:5px 0 0!important;padding:0!important}
#projets .project-card .spotlight-actions a,#projets .project-card .project-link,#projets .project-card .text-link,#projets .project-card .case-study-trigger{color:#117e8b!important;font-size:12px!important;font-weight:750!important}
#projets .project-card .institution-screen,#projets .project-card .institution-brand-card{display:flex!important;align-items:center!important;justify-content:center!important;height:100%!important;width:100%!important;min-height:0!important;background:linear-gradient(135deg,#e8f3fa,#f6fbff)!important}
#projets .project-card .institution-logo{background:transparent!important;aspect-ratio:auto!important;height:auto!important;min-height:0!important;padding:15px!important;gap:9px!important}
#projets .project-card .institution-logo img{width:100px!important;height:68px!important;object-fit:contain!important}
#projets .project-card .institution-logo strong{font-size:15px!important;color:#18364f!important}
#projets .project-card .institution-logo small{color:#68849a!important}
#projets .project-card[data-category="freelance"] .project-top{height:190px;display:flex;align-items:center;justify-content:space-between;padding:32px;background:linear-gradient(135deg,#e6f4f6,#cde8f2)}
#projets .project-card[data-category="freelance"] .project-monogram{font-size:62px;color:#147a92}
#projets .project-card[data-category="freelance"]>.project-overline,#projets .project-card[data-category="freelance"]>h3,#projets .project-card[data-category="freelance"]>p,#projets .project-card[data-category="freelance"]>.project-link{margin-left:22px!important;margin-right:22px!important}
#projets .project-card[data-category="freelance"]>.project-overline{margin-top:22px!important}
#projets .project-card[data-category="freelance"]>h3{margin-top:8px!important}
#projets .project-card[data-category="freelance"]>p{margin-top:8px!important;margin-bottom:20px!important}
#projets .project-card[data-category="freelance"]>.project-link{margin-top:auto!important;margin-bottom:20px!important}
#projets .project-art{height:100%;width:100%;display:flex;align-items:center;justify-content:center;padding:23px 25px 0;box-sizing:border-box;overflow:hidden;background:linear-gradient(135deg,#d8e5f9,#f0e9fc)}
#projets .project-art-optique{background:linear-gradient(135deg,#cfe9f0,#e6f7f3)}
#projets .art-browser{height:100%;width:100%;border-radius:12px 12px 0 0;background:#fff;box-shadow:0 9px 25px #1c355b38;overflow:hidden;border:1px solid #d4e2ed}
#projets .art-toolbar{height:25px;background:#f8fafc;border-bottom:1px solid #e6edf3;display:flex;align-items:center;gap:4px;padding:0 9px}
#projets .art-toolbar i{width:6px;height:6px;border-radius:50%;background:#c7d4e0}
#projets .art-toolbar span{font-size:8px;font-weight:800;color:#425b76;margin-left:8px}
#projets .art-body{display:grid;grid-template-columns:25% 75%;height:calc(100% - 25px)}
#projets .art-sidebar{background:#1b2e4a;padding:13px 8px;display:flex;flex-direction:column;gap:10px}
#projets .art-sidebar b{height:5px;border-radius:4px;background:#54718f;width:80%}
#projets .art-sidebar b:first-child{background:#68c6eb}
#projets .project-art-optique .art-sidebar{background:#12565e}
#projets .art-main{padding:12px 13px}
#projets .art-heading{font-size:10px;font-weight:850;color:#203b52;margin-bottom:10px}
#projets .art-metrics{display:flex;gap:6px}
#projets .art-metrics span{flex:1;padding:10px 5px;background:#f1f6fa;border-radius:5px;font-size:7px;color:#50708b;text-align:center;font-weight:700}
#projets .art-graph{height:54px;display:flex;align-items:end;gap:8px;padding:10px 5px 0}
#projets .art-graph i{flex:1;background:#5f9fda;border-radius:3px 3px 0 0;height:30%}
#projets .art-graph i:nth-child(2){height:65%}#projets .art-graph i:nth-child(3){height:45%}#projets .art-graph i:nth-child(4){height:90%}#projets .art-graph i:nth-child(5){height:72%}#projets .art-graph i:nth-child(6){height:100%}
#projets .project-art-optique .art-graph i{background:#2bb1a3}
@media(max-width:680px){#projets .project-grid{gap:18px!important}#projets .project-art{padding:20px 22px 0}}

/* v4 — complete project tile reset, consistent with homepage image previews */
#projets .portfolio-tiles{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important;align-items:stretch!important;overflow:visible!important;padding:0!important}
#projets .portfolio-tiles>.portfolio-tile{display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important;height:100%!important;max-width:none!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;position:relative!important;border-radius:16px!important;background:#fff!important;border:1px solid #dbe7ef!important;box-shadow:0 8px 24px #102d4614!important}
#projets .portfolio-tiles>.portfolio-tile[hidden]{display:none!important}
#projets .portfolio-tile .tile-cover{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:auto!important;aspect-ratio:16/10!important;flex:none!important;min-height:0!important;overflow:hidden!important;box-sizing:border-box!important;border:0!important;border-radius:0!important;background:#eaf3f9!important;text-decoration:none!important}
#projets .portfolio-tile .tile-cover img{position:static!important;display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center center!important;transform:none!important;filter:none!important;border:0!important;border-radius:0!important}
#projets .portfolio-tile .tile-brand{background:linear-gradient(140deg,#e8f4fa,#f7fbff)!important}
#projets .portfolio-tile .tile-brand img{width:60%!important;height:62%!important;object-fit:contain!important}
#projets .portfolio-tile .tile-web{background:linear-gradient(135deg,#d8eff5,#dbe8ff)!important}
#projets .portfolio-tile .tile-wordpress{font-size:clamp(64px,7vw,100px);font-weight:900;letter-spacing:-.1em;color:#126b96;line-height:1}
#projets .portfolio-tile .tile-wordpress span{color:#25a7cf}
#projets .portfolio-tile .tile-kind{position:absolute;left:12px;top:12px;padding:6px 9px;border-radius:6px;background:#fff;color:#21536a;font-size:9px;font-weight:850;letter-spacing:.09em;box-shadow:0 2px 9px #122f4b1b;z-index:1}
#projets .portfolio-tile .tile-body{display:flex!important;flex:1!important;flex-direction:column!important;align-items:stretch!important;min-width:0!important;width:100%!important;box-sizing:border-box!important;padding:21px!important;gap:9px!important;overflow-wrap:anywhere!important;word-break:normal!important}
#projets .portfolio-tile .tile-meta{color:#168d9a!important;font-size:10px!important;line-height:1.5!important;letter-spacing:.045em!important;font-weight:800!important;margin:0!important}
#projets .portfolio-tile .tile-body h3{color:#162e43!important;font-size:19px!important;line-height:1.3!important;letter-spacing:-.02em!important;margin:0!important;padding:0!important;max-width:100%!important;overflow-wrap:anywhere!important}
#projets .portfolio-tile .tile-body p{color:#5c7285!important;font-size:13px!important;line-height:1.7!important;margin:0!important;padding:0!important;max-width:100%!important;flex:1!important;overflow-wrap:anywhere!important}
#projets .portfolio-tile .tile-cta{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;margin:11px 0 0!important;padding:13px 0 0!important;border-top:1px solid #e6eef3!important;color:#087e8c!important;font-size:12px!important;line-height:1.4!important;font-weight:800!important;text-decoration:none!important;max-width:100%!important;overflow-wrap:anywhere!important}
#projets .portfolio-tile .tile-cta span{font-size:18px;flex:none}
#projets .portfolio-tile .tile-cta:hover{color:#095d68!important}
#projets .portfolio-tiles>.portfolio-tile:hover{transform:translateY(-4px)!important;box-shadow:0 18px 35px #102d4625!important}
@media(max-width:1050px){#projets .portfolio-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){#projets .portfolio-tiles{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}#projets .portfolio-tile .tile-body{padding:18px!important}#projets .portfolio-tile .tile-body h3{font-size:18px!important}}
