/* Typographie et grille éditoriale : repères à gauche, contenu à droite. */
/* Thèmes : sombre par défaut, clair au choix du visiteur (bouton dans le menu). */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060606; --bg-95: #060606f5; --bg-72: #060606b8; --background: #060606;
  --dialog: #080808; --dialog-95: #080808f5;
  --s1: #0d0d0d; --s2: #101010; --surface: #101010; --s3: #151515; --s4: #191919; --s5: #1c1c1c;
  --line: #232323; --line-2: #2e2e2c; --line-3: #444; --line-4: #5a5a55; --line-5: #77776f;
  --text: #e9e9e6; --strong: #fff;
  --muted: #999996; --muted-2: #aaa; --muted-3: #8c8c87; --soft: #b1b1ab; --soft-hi: #d3d3cc;
  --focus: #d7d7c9; --sel: #d5d5c7; --error: #f0b6a8;
  --edge: #ffffff14; --edge-2: #ffffff1a; --scrim: #000d;
  --logo-invert: 1; --grain: .035;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f2; --bg-95: #f5f5f2f5; --bg-72: #f5f5f2b8; --background: #f5f5f2;
  --dialog: #f8f8f5; --dialog-95: #f8f8f5f5;
  --s1: #ebebe6; --s2: #e8e8e3; --surface: #e8e8e3; --s3: #e4e4de; --s4: #dfdfd9; --s5: #dadad4;
  --line: #dcdcd6; --line-2: #d0d0c9; --line-3: #bfbfb8; --line-4: #a4a49d; --line-5: #85857e;
  --text: #141413; --strong: #000;
  --muted: #6b6b66; --muted-2: #5b5b56; --muted-3: #77776f; --soft: #4f4f4a; --soft-hi: #2b2b29;
  --focus: #2b2b29; --sel: #1f1f1d; --error: #b3402a;
  --edge: #00000017; --edge-2: #00000014; --scrim: #f5f5f2e6;
  --logo-invert: 0; --grain: .05;
}
:root {
  --gutter: clamp(22px, 2.8vw, 54px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--background); scroll-behavior: smooth; scroll-padding-top: 105px; }
body { color: var(--text); font: 400 16px/1.6 'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 400; line-height: 1.2; letter-spacing: -.035em; }
::selection { color: var(--bg); background: var(--sel); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
.muted { color: var(--muted); }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 110; padding: 12px; background: white; color: black; }
.skip-link:focus { top: 16px; }
main, .site-footer { max-width: 1800px; margin: auto; padding-inline: var(--gutter); }
.site-header { position: fixed; z-index: 40; inset: 0 0 auto; height: 76px; margin: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--bg-95); }
.wordmark { font-size: 24px; letter-spacing: -.09em; line-height: 1; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.site-header nav a { padding-block: 10px; color: var(--muted-2); transition: color .25s; }
.site-header nav a:hover, .site-header nav a[aria-current], .site-header nav a:last-child { color: var(--text); }
.site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 7px; }
.menu-toggle { display: none; }
html.menu-open { overflow: hidden; }
.page-transition { position: fixed; inset: 0; z-index: 100; background: var(--s4); transform: translateX(-100%); pointer-events: none; transition: transform .38s var(--ease); }
.page-transition.is-active { transform: translateX(0); pointer-events: auto; }
.editorial-row { display: grid; grid-template-columns: 1fr 2fr; column-gap: 36px; }
.section-label { font-size: 14px; line-height: 1.6; letter-spacing: -.01em; font-weight: 400; }
.text-link { display: inline-flex; align-items: center; gap: 25px; width: fit-content; border-bottom: 1px solid var(--line-4); padding-bottom: 5px; font-size: 14px; line-height: 1.7; transition: border-color .25s; }
.text-link span { transition: transform .3s var(--ease); }
.text-link:hover { border-color: var(--text); }
.text-link:hover span { transform: translate(2px,-2px); }
.hero { min-height: 700px; min-height: 84svh; padding-top: clamp(180px,30svh,340px); padding-bottom: 100px; }
.hero-identity { padding-top: 7px; font-size: 15px; }
.hero h1 { max-width: 830px; font-size: clamp(30px,3.1vw,48px); line-height: 1.12; letter-spacing: -.045em; }
.hero-description { color: var(--muted); font-size: clamp(16px,1.45vw,21px); line-height: 1.5; margin-top: 24px; }
.client-strip { margin-top: 65px; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.client-strip>div { display: grid; place-items: center; height: 82px; background: var(--s1); border-radius: 3px; }
.client-strip img { width: 72%; max-width: 112px; height: 40px; object-fit: contain; filter: grayscale(1) brightness(0) invert(var(--logo-invert)); opacity: .73; }
.section-intro { padding-top: 35px; padding-bottom: 38px; border-top: 1px solid var(--line); }
.section-intro>.text-link { justify-self: end; }
.section-lead { font-size: clamp(24px,2.45vw,36px); line-height: 1.3; letter-spacing: -.035em; }
.project-row { margin-bottom: 28px; }
.project-copy { align-self: end; padding: 35px 24px 25px 0; max-width: 400px; }
.project-copy h3 { font-size: 18px; margin-bottom: 12px; letter-spacing: -.02em; }
.project-copy p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.project-tag { display: inline-block; margin-top: 22px; color: var(--soft); padding: 3px 8px; font-size: 10px; background: var(--s3); border-radius: 2px; }
.project-button { width: 100%; position: relative; overflow: hidden; display: block; border-radius: 4px; background: var(--s2); text-align: left; }
.project-button img { width: 100%; height: auto; aspect-ratio: 1.45; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.project-button:hover img { transform: scale(1.035); filter: brightness(.85); }
.project-open { position: absolute; bottom: 20px; right: 20px; border: 1px solid #ffffff70; background: #060606b3; backdrop-filter: blur(10px); border-radius: 2px; padding: 9px 14px; font-size: 12px; opacity: 0; transform: translateY(8px); transition: opacity .3s,transform .4s var(--ease); }
.project-button:hover .project-open, .project-button:focus-visible .project-open { opacity: 1; transform: none; }
.selected-projects { padding-bottom: 95px; }
.services { padding-bottom: 80px; }
.service-row { padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 95px; }
.service-row h3 { font-size: clamp(22px,2.15vw,32px); max-width: 370px; line-height: 1.25; }
.prose { max-width: 850px; }
.prose p { font-size: 17px; color: var(--muted-2); line-height: 1.75; margin-bottom: 22px; }
.prose p:last-child { margin-bottom: 0; }
.prose .large-copy { font-size: clamp(24px,2.35vw,36px); color: var(--text); letter-spacing: -.035em; line-height: 1.35; margin-bottom: 30px; }
.prose h2 { font-size: 25px; margin-bottom: 28px; }
.prose .text-link { margin-top: 8px; }
.about-section, .expert-section, .testimonials, .contact-section { padding-block: 75px; border-top: 1px solid var(--line); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; }
.stars { color: var(--soft); font-size: 11px; letter-spacing: 4px; margin-bottom: 20px; }
blockquote { font-size: 20px; line-height: 1.5; letter-spacing: -.025em; }
.contact-title { font-size: clamp(30px,3vw,44px); margin-bottom: 24px; }
.contact-intro { color: var(--muted); max-width: 640px; margin-bottom: 45px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.field { min-width: 0; }
.field-wide { grid-column: 1/-1; }
.field label { font-size: 13px; color: var(--muted-2); display: block; margin-bottom: 9px; }
.field input, .field textarea { padding: 10px 0 16px; width: 100%; border: 0; border-bottom: 1px solid var(--line-3); background: transparent; border-radius: 0; outline-offset: 3px; font-size: 16px; line-height: 1.5; transition: border-color .2s; }
.field input:focus, .field textarea:focus { border-color: var(--strong); outline: none; box-shadow: 0 1px 0 var(--strong); }
.field textarea { resize: vertical; min-height: 125px; }
.form-bottom { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.form-bottom p { color: var(--muted-3); font-size: 11px; line-height: 1.7; }
.form-bottom p a { text-decoration: underline; text-underline-offset: 2px; }
.submit-button { border: 1px solid var(--line-4); border-radius: 3px; padding: 14px 19px; font-size: 13px; white-space: nowrap; transition: background .25s, color .25s; }
.submit-button span { margin-left: 28px; }
.submit-button:hover { background: var(--text); color: var(--background); }
.form-status { grid-column: 1/-1; font-size: 14px; color: var(--soft-hi); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
noscript { grid-column: 1/-1; font-size: 14px; }
.site-footer { padding-top: 75px; }
.site-footer>.editorial-row { padding: 35px 0 60px; border-top: 1px solid var(--line); }
.footer-info { display: grid; grid-template-columns: 1fr 2fr auto; gap: 25px; font-size: 13px; }
.footer-info>div a { display: block; }
.footer-info a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding: 23px 0 32px; font-size: 11px; color: var(--muted); }
.footer-bottom>div { display: flex; gap: 25px; }
.page-intro { padding-top: 220px; padding-bottom: 90px; }
.page-intro h1 { font-size: clamp(32px,3.4vw,50px); }
.intro-copy { max-width: 660px; margin-top: 24px; color: var(--muted); font-size: 18px; }
.intro-copy:empty { display: none; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 24px; }
.gallery-item { display: flex; flex-direction: column-reverse; justify-content: end; }
.gallery-item .project-copy { align-self: start; max-width: 100%; padding: 24px 0 0; }
.gallery-item .project-copy p { max-width: 560px; font-size: 14px; }
.gallery-item .project-copy h3 { font-size: 18px; }
.gallery-item .project-tag { margin-top: 14px; }
.end-link { padding-block: 70px; }
.profile-section { padding-bottom: 85px; }
.portrait { max-width: 260px; padding-right: 24px; }
.portrait img { width: 100%; height: auto; aspect-ratio: .8; object-fit: cover; object-position: center; filter: grayscale(1); border-radius: 3px; }
.skills-section { padding-block: 65px; border-top: 1px solid var(--line); }
.skill { display: grid; grid-template-columns: 1fr 2fr; gap: 35px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.skill:first-child { padding-top: 0; }
.skill h3 { font-size: 18px; line-height: 1.4; }
.skill p { color: var(--muted); font-size: 15px; }
.article-row { border-top: 1px solid var(--line); padding-block: 40px; }
.article-row h2 { font-size: clamp(24px,2.2vw,32px); max-width: 700px; margin: 15px 0; }
.article-row p:not(.section-label) { color: var(--muted); max-width: 670px; }
.article-status { font-size: 11px; color: var(--muted-2); }
.contact-page { padding-bottom: 65px; }
.contact-details { font-size: 14px; }
.contact-details>p { margin-bottom: 26px; }
.contact-details>a { display: block; width: fit-content; margin-top: 10px; font-size: 13px; overflow-wrap: anywhere; }
.legal-section { padding-bottom: 50px; }
.legal-section h2:not(:first-child) { margin-top: 45px; }
.legal-section a { text-decoration: underline; text-underline-offset: 4px; }
/* Le contenu reste visible sans JavaScript et avec mouvement réduit. */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-waiting { opacity: 0; transform: translateY(18px); }
.hero-content .reveal { transition-duration: 1.15s; }
.hero-description.reveal { transition-delay: .12s; }
/* Fiches projets : image intégrale, sans recadrage. */
dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: var(--dialog); color: var(--text); overflow-y: auto; }
dialog::backdrop { background: var(--scrim); }
.dialog-top { position: sticky; top: 0; z-index: 2; background: var(--dialog-95); border-bottom: 1px solid var(--line); padding: 22px var(--gutter); display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.dialog-top>span { color: var(--muted-2); }
.dialog-top button { padding: 5px 0 5px 20px; }
.dialog-top button span { font-size: 22px; margin-left: 15px; }
.dialog-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 36px; padding: 40px var(--gutter); }
.dialog-copy { padding-top: 25px; }
.dialog-copy h2 { font-size: 35px; margin-bottom: 12px; }
.dialog-copy>p { font-size: 15px; margin-bottom: 25px; max-width: 400px; }
.dialog-copy>p:nth-of-type(2) { color: var(--muted-2); margin-top: 35px; }
.dialog-copy .text-link { margin-top: 15px; font-size: 13px; }
.dialog-image img { width: 100%; height: auto; }
.project-navigation { display: flex; gap: 12px; margin-top: 45px; }
.project-navigation button { border: 1px solid var(--line-3); width: 48px; height: 44px; font-size: 21px; }
.project-navigation button:hover { background: var(--s5); }
@media (min-width:1800px) { .site-header { left: calc((100vw - 1800px)/2); right: calc((100vw - 1800px)/2); } }
@media (max-width:1050px) {
  .editorial-row { grid-template-columns: 1fr 2fr; gap: 28px; }
  .hero { min-height: 690px; padding-top: 210px; }
  .hero h1 { font-size: 35px; }
  .client-strip { grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 40px; }
  .client-strip>div { height: 64px; }
  .client-strip img { height: 30px; }
  .hero-description { font-size: 17px; }
  .desktop-break { display: none; }
  .prose p { font-size: 16px; }
  .project-copy { padding-right: 0; }
  .project-copy p { font-size: 14px; }
  .quotes { grid-template-columns: 1fr; gap: 45px; }
  .footer-info { grid-template-columns: 1fr 2fr; }
  .footer-info>a { grid-column: 2; }
  .form-bottom { align-items: start; flex-direction: column-reverse; gap: 20px; }
  .skill { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width:700px) {
  body { font-size: 15px; }
  .site-header { height: 66px; }
  .wordmark { font-size: 23px; }
  .site-header .wordmark, .menu-toggle { position: relative; z-index: 2; }
  .site-header nav { display: flex; position: fixed; inset: 0; height: 100dvh; background: var(--s1); padding: 100px var(--gutter) 40px; overflow-y: auto; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; font-size: clamp(28px, 7vw, 44px); transform: translateX(-100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
  .site-header nav.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .menu-toggle { display: flex; align-items: center; gap: 18px; font-size: 13px; min-height: 44px; }
  .menu-toggle span { font-size: 24px; transition: transform .3s; }
  .menu-toggle[aria-expanded=true] span { transform: rotate(45deg); }
  .editorial-row { grid-template-columns: 1fr; gap: 25px; }
  .hero { min-height: auto; padding-top: 145px; padding-bottom: 65px; gap: 46px; }
  .hero-identity { font-size: 13px; padding-top: 0; }
  .hero h1 { font-size: clamp(30px,8vw,43px); max-width: 540px; line-height: 1.15; }
  .hero-description { margin-top: 23px; font-size: 16px; }
  .client-strip { margin-top: 36px; }
  .client-strip>div { height: 62px; }
  .client-strip img { width: 70%; height: 28px; }
  .section-label { font-size: 13px; color: var(--muted-2); }
  .section-intro { display: flex; justify-content: space-between; gap: 22px; align-items: start; padding: 25px 0; }
  .section-intro .text-link { font-size: 12px; gap: 14px; }
  .services .section-intro { flex-direction: column; padding-bottom: 35px; }
  .section-lead { font-size: 28px; }
  .project-row { display: flex; flex-direction: column-reverse; gap: 0; margin-bottom: 45px; }
  .project-copy { align-self: start; padding: 20px 0 0; max-width: none; }
  .project-copy h3 { font-size: 18px; margin-bottom: 9px; }
  .project-copy p { font-size: 14px; }
  .project-tag { margin-top: 14px; }
  .project-button img { aspect-ratio: 1.2; }
  .project-open { bottom: 12px; right: 12px; font-size: 11px; padding: 7px 10px; opacity: 1; transform: none; }
  .selected-projects { padding-bottom: 30px; }
  .service-row { padding: 32px 0; gap: 24px; }
  .service-row h3 { font-size: 27px; }
  .service-row h3 br { display: none; }
  .prose p { font-size: 16px; line-height: 1.75; margin-bottom: 19px; }
  .services { padding-bottom: 30px; }
  .about-section,.expert-section,.testimonials,.contact-section { padding-block: 38px; gap: 32px; }
  .prose .large-copy { font-size: 27px; margin-bottom: 25px; }
  .quotes { gap: 32px; }
  blockquote { font-size: 20px; }
  .contact-title { font-size: 30px; margin-bottom: 20px; }
  .contact-intro { margin-bottom: 35px; }
  .contact-form { grid-template-columns: 1fr; gap: 27px; }
  .field input { padding-top: 4px; }
  .submit-button { width: 100%; display: flex; justify-content: space-between; padding: 16px; }
  .form-bottom { gap: 20px; align-items: stretch; }
  .site-footer { padding-top: 40px; }
  .site-footer>.editorial-row { gap: 32px; padding: 28px 0 35px; }
  .footer-info { grid-template-columns: 1fr; gap: 23px; }
  .footer-info>a { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 18px; }
  .footer-bottom>div { flex-wrap: wrap; gap: 14px 20px; font-size: 10px; }
  .page-intro { padding-top: 135px; padding-bottom: 55px; gap: 28px; }
  .page-intro h1 { font-size: 34px; }
  .intro-copy { font-size: 16px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 42px; }
  .end-link { padding: 50px 0 15px; }
  .end-link>span { display: none; }
  .profile-section { gap: 35px; padding-bottom: 45px; }
  .portrait { max-width: 220px; padding-right: 0; }
  .skills-section { padding-block: 38px; }
  .article-row { padding-block: 30px; gap: 16px; }
  .article-row h2 { font-size: 27px; margin-top: 10px; }
  .article-row>div>p { font-size: 15px; }
  .contact-page { gap: 45px; padding-bottom: 25px; }
  .legal-section>span { display: none; }
  .dialog-grid { grid-template-columns: 1fr; gap: 35px; padding-top: 20px; }
  .dialog-copy { padding-top: 0; }
  .dialog-copy h2 { font-size: 29px; }
  .dialog-copy>p:nth-of-type(2) { margin-top: 20px; }
  .dialog-image { grid-row: 1; }
  .dialog-top { padding-block: 15px; }
  .project-navigation { margin-top: 28px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal.is-waiting { opacity: 1; transform: none; }
}

/* Écriture des titres sans changement de hauteur ni découpe des mots. */
.writing-title.reveal { opacity: 1; transform: none; }
.writing-word { display: inline-block; white-space: nowrap; }
.writing-char { opacity: 0; }
.is-written .writing-char {
  animation: write-letter .12s linear both;
  animation-delay: calc(var(--letter-index) * var(--letter-delay));
}
@keyframes write-letter { from { opacity: 0; } to { opacity: 1; } }
.sequence-copy { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.sequence-copy.is-copy-visible { opacity: 1; transform: none; }
.selected-projects.is-sequence-pending { opacity: 0; }
.sequence-block { opacity: 0; transform: translateY(12px) scale(1.035); transition: opacity .45s var(--ease), transform .85s var(--ease); }
.sequence-block.is-block-visible { opacity: 1; transform: none; }
img.sequence-image { opacity: 0; transform: scale(1.12); transition: opacity .45s var(--ease), transform .85s var(--ease); }
.project-button img.sequence-image:not(.is-image-visible) { transform: scale(1.12); }
.sequence-image.is-image-visible { opacity: 1; transform: scale(1); }
.project-button:hover img.sequence-image.is-image-visible { transform: scale(1.035); }
.portrait, .dialog-image, .client-strip>div { overflow: hidden; }
.hero-identity .muted { max-width: 310px; }
.article-read { margin-top: 22px; }
.article-row h2 a:hover { color: var(--soft-hi); }
.article-meta { margin-top: 30px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.article-byline { margin-top: 30px; font-size: 13px; }
.article-body { padding-bottom: 60px; align-items: start; }
.article-summary { position: sticky; top: 110px; font-size: 13px; }
.article-summary p { margin-bottom: 20px; }
.article-summary a { display: block; color: var(--muted); margin-top: 12px; width: fit-content; }
.article-summary a:hover { color: var(--text); }
.article-prose { max-width: 780px; }
.article-prose section { margin-bottom: 56px; scroll-margin-top: 115px; }
.article-prose h2 { font-size: clamp(25px,2.4vw,35px); line-height: 1.3; }
.article-end { border-top: 1px solid var(--line); padding-top: 30px; }
@media (max-width:700px) {
  .article-summary { position: static; padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 15px; }
  .article-prose section { margin-bottom: 40px; }
}
@media (prefers-reduced-motion:reduce) {
  .writing-char { opacity: 1; }
  .sequence-copy, .sequence-block, img.sequence-image { opacity: 1; transform: none; }
  .selected-projects.is-sequence-pending { opacity: 1; }
  .project-button img.sequence-image:not(.is-image-visible) { transform: none; }
}

/* GSAP orchestre les mouvements sans superposer de transitions CSS. */
.gsap-motion .sequence-copy,
.gsap-motion .sequence-block,
.gsap-motion img.sequence-image { transition: none; }
.gsap-motion .writing-char { animation: none; }
.gsap-motion .page-transition { transform: translateX(-100%); transition: none; }
@media (max-width:700px) {
  .gsap-motion .site-header nav { transform: none; transition: none; }
}

/* Bulles regroupées avec retour naturel sur mobile. */
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.project-tags .project-tag { margin: 0; }
@media (max-width:700px) { .project-tags { margin-top: 14px; gap: 6px; } }

/* ==========================================================================
   Finitions professionnelles — même ADN (noir, grille éditoriale, écriture
   lettre à lettre), exécution plus précise : typographie, filets, survols,
   transitions et mouvements.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
}
html { scrollbar-width: thin; scrollbar-color: var(--line-3) var(--background); }
body { font-kerning: normal; font-feature-settings: "kern" 1, "liga" 1; text-rendering: optimizeLegibility; }
h1, h2, h3, blockquote { text-wrap: balance; }
p { text-wrap: pretty; }
/* Grain de film très léger : donne de la profondeur au noir. */
body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: var(--grain); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* En-tête : verre dépoli sur ordinateur, filet qui s'éclaire au défilement. */
.site-header { transition: border-color .6s var(--ease-out), background-color .6s var(--ease-out); }
.site-header.is-scrolled { border-bottom-color: var(--line-2); }
@media (min-width: 701px) {
  .site-header { background: var(--bg-72); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
}
.site-header nav a { position: relative; }
.site-header nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform .7s var(--ease-out); }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after, .site-header nav a[aria-current]::after { transform: scaleX(1); transform-origin: left center; }
.site-header nav a[aria-current] { text-decoration: none; }
@media (max-width: 700px) { .site-header nav a::after { display: none; } }
.scroll-progress { position: fixed; z-index: 60; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--muted-3), var(--text)); transform: scaleX(0); transform-origin: left center; pointer-events: none; will-change: transform; }

/* Liens éditoriaux : soulignement qui se dessine. */
.text-link { position: relative; border-bottom: 0; padding-bottom: 6px; }
.text-link::before, .text-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; }
.text-link::after { background: var(--line-4); }
.text-link::before { z-index: 1; background: var(--text); transform: scaleX(0); transform-origin: left center; transition: transform .8s var(--ease-out); }
.text-link:hover::before, .text-link:focus-visible::before { transform: scaleX(1); }
.text-link span { display: inline-block; transition: transform .6s var(--ease-out); }
.text-link:hover span { transform: translate(3px, -3px); }

/* Filets de section qui se tracent à l'apparition (activé par le JavaScript). */
.lines-motion :is(.section-intro, .service-row, .about-section, .expert-section, .testimonials, .contact-section, .article-row) { position: relative; border-top-color: transparent; }
.lines-motion :is(.section-intro, .service-row, .about-section, .expert-section, .testimonials, .contact-section, .article-row)::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left center; transition: transform 1.6s var(--ease-out), background-color .6s; }
.lines-motion :is(.section-intro, .service-row, .about-section, .expert-section, .testimonials, .contact-section, .article-row).is-drawn::before { transform: scaleX(1); }
.lines-motion .service-row.is-drawn:hover::before, .lines-motion .article-row.is-drawn:hover::before { background: var(--line-4); }

/* Références clients. */
.client-strip>div { background: none; }

/* Cartes projets : cadre fin, dégradé de lecture, zoom lent. */
.project-button { border-radius: 6px; isolation: isolate; }
.project-button::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, transparent 50%, #060606a6); opacity: 0; transition: opacity .8s var(--ease-out); }
.project-button::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--edge); }
.project-button:hover::before, .project-button:focus-visible::before { opacity: 1; }
.project-button img { transition: transform 1.5s var(--ease-out), filter .9s var(--ease-out); }
.project-button:hover img { transform: scale(1.04); filter: brightness(.92); }
.gsap-motion img.sequence-image.is-image-visible { transition: transform 1.5s var(--ease-out), filter .9s var(--ease-out); }
.project-button:hover img.sequence-image.is-image-visible { transform: scale(1.04); filter: brightness(.92); }
.project-open { z-index: 2; border-radius: 999px; padding: 9px 16px; transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
html.has-cursor-label .project-button:not(:focus-visible) .project-open { display: none; }
.cursor-label { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; padding: 11px 18px; border-radius: 999px; background: var(--text); color: var(--background); font-size: 12px; letter-spacing: .01em; white-space: nowrap; opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor-label { display: none; } }

/* Bulles : contour fin plutôt qu'aplat. */
.project-tag { background: var(--s3); border-radius: 3px; padding: 4px 10px; font-size: 11px; letter-spacing: .01em; transition: background-color .6s var(--ease-out), color .6s var(--ease-out); }
.project-row:hover .project-tag, .gallery-item:hover .project-tag { background: var(--s5); color: var(--soft-hi); }

/* Écriture des titres : chaque lettre se pose légèrement. */
.writing-char { display: inline-block; }
.portrait img, .project-button img { will-change: transform; }

/* Formulaire : filet qui se dessine au focus, bouton à remplissage. */
.field { position: relative; }
.field input, .field textarea { display: block; }
.field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left center; transition: transform .8s var(--ease-out); pointer-events: none; }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus, .field textarea:focus { border-color: var(--line-3); box-shadow: none; }
.field label { transition: color .4s; }
.field:focus-within label { color: var(--text); }
.submit-button { position: relative; overflow: hidden; isolation: isolate; border-color: var(--line-4); transition: color .5s var(--ease-out), border-color .5s var(--ease-out); }
.submit-button::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--text); transform: translateY(101%); transition: transform .7s var(--ease-out); }
.submit-button:hover:not(:disabled) { background: transparent; color: var(--background); border-color: var(--text); }
.submit-button:hover:not(:disabled)::before { transform: none; }
.submit-button span { display: inline-block; transition: transform .6s var(--ease-out); }
.submit-button:hover:not(:disabled) span { transform: translateX(5px); }

/* Fiches projets : entrée en fondu glissé. */
dialog[open] { animation: dialog-in .8s var(--ease-out) both; }
dialog[open]::backdrop { animation: backdrop-in .6s ease both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.dialog-top button { transition: color .4s; }
.dialog-top button:hover { color: var(--strong); }
.dialog-top button span { display: inline-block; transition: transform .6s var(--ease-out); }
.dialog-top button:hover span { transform: rotate(90deg); }
.project-navigation button { border-radius: 3px; transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out); }
.project-navigation button:hover { background: var(--s5); border-color: var(--line-5); }

/* Rideau de transition entre pages, signé du monogramme. */
.page-transition { background: var(--s1); box-shadow: inset -1px 0 0 var(--line-2); }
.page-transition::after { content: 'CG'; position: absolute; left: var(--gutter); bottom: var(--gutter); font-size: clamp(56px, 11vw, 168px); line-height: .8; letter-spacing: -.09em; color: var(--edge-2); }

/* Pied de page. */
.footer-info a { transition: color .4s; }
.footer-info a:hover, .footer-bottom a:hover { color: var(--strong); }
.footer-bottom a { transition: color .4s; }

@media (prefers-reduced-motion: reduce) {
  dialog[open], dialog[open]::backdrop { animation: none !important; }
  .scroll-progress { transition: none; }
  .lines-motion :is(.section-intro, .service-row, .about-section, .expert-section, .testimonials, .contact-section, .article-row)::before { transform: scaleX(1); }
}

/* Bouton du menu : deux traits qui se croisent en croix à l'ouverture. */
.menu-toggle span, .menu-toggle[aria-expanded=true] span { position: relative; display: block; width: 22px; height: 14px; font-size: 0; line-height: 0; transform: none; transition: none; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: top .7s var(--ease-out), transform .7s var(--ease-out); }
.menu-toggle span::before { top: 2px; }
.menu-toggle span::after { top: 10px; }
.menu-toggle[aria-expanded=true] span::before { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded=true] span::after { top: 6px; transform: rotate(-45deg); }

/* ==========================================================================
   Grands écrans : contenu et barre de menu limités, puis mise à l'échelle
   progressive (2K, 4K, ultra-large) pour que la page ne paraisse jamais
   minuscule ni étirée.
   ========================================================================== */
:root { --max: 1800px; --zoom: 1; }
main, .site-footer { max-width: var(--max); }
.site-header { left: 0; right: 0; margin-inline: auto; width: min(calc(100% - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter))); }
@media (min-width: 2200px) { :root { --zoom: 1.15; } html { zoom: var(--zoom); } .hero { min-height: calc(84svh / var(--zoom)); } }
@media (min-width: 2560px) { :root { --zoom: 1.3; } }
@media (min-width: 3000px) { :root { --zoom: 1.55; } }
@media (min-width: 3600px) { :root { --zoom: 1.9; } }
@media (min-width: 5000px) { :root { --zoom: 2.6; } }

/* Réalisations : défilement horizontal, visuels 9:16. */
.gallery-grid { --card-w: clamp(230px, min(22vw, calc(42svh / var(--zoom))), 440px); display: flex; align-items: flex-start; gap: clamp(14px, 1.5vw, 30px); overflow-x: auto; overflow-y: hidden; margin: -10px calc(-1 * var(--gutter)); padding: 10px var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 calc(var(--gutter) * .9), #000 calc(100% - var(--gutter) * .9), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 calc(var(--gutter) * .9), #000 calc(100% - var(--gutter) * .9), transparent 100%); }
.gallery-grid::-webkit-scrollbar { display: none; }
.gallery-grid.is-dragging { cursor: grabbing; user-select: none; }
.gallery-grid.is-dragging * { pointer-events: none; }
.gallery-item { flex: 0 0 var(--card-w); width: var(--card-w); min-width: 0; }
.gallery-item .project-button img { aspect-ratio: 9 / 16; height: auto; }
.gallery-item .project-copy { padding-top: 22px; padding-right: 6px; }
.gallery-item .project-copy p { max-width: none; }
@media (max-width: 1050px) { .gallery-grid { --card-w: clamp(240px, 34vw, 340px); } }
@media (max-width: 700px) { .gallery-grid { --card-w: min(74vw, 320px); gap: 14px; } .gallery-grid .project-open { display: none; } }
@media (pointer: coarse) { .gallery-grid { scroll-snap-type: x proximity; cursor: auto; } .gallery-item { scroll-snap-align: start; } }
.gallery-controls { display: flex; align-items: center; gap: clamp(18px, 3vw, 48px); padding-block: 38px 90px; }
.gallery-count { min-width: 5.5em; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gallery-bar { position: relative; flex: 1; height: 1px; background: var(--line); }
.gallery-bar i { position: absolute; top: -1px; left: 0; height: 3px; width: 20%; background: var(--text); border-radius: 2px; }
.gallery-arrows { display: flex; gap: 10px; }
.gallery-arrows button { width: 48px; height: 44px; border: 1px solid var(--line-3); border-radius: 3px; font-size: 21px; transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), opacity .4s; }
.gallery-arrows button:hover:not(:disabled) { background: var(--s5); border-color: var(--line-5); }
.gallery-arrows button:disabled { opacity: .3; cursor: default; }
@media (max-width: 700px) { .gallery-controls { padding-block: 26px 40px; } .gallery-count { min-width: 4.5em; } }

/* Évite le décalage de la page quand le menu ou une fiche bloque le défilement. */
html { scrollbar-gutter: stable; }

/* Numéro de téléphone mis en avant avant le formulaire. */
.phone-feature { margin-bottom: 56px; padding: 28px 0 32px; border-block: 1px solid var(--line); }
.phone-label { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.phone-line { line-height: 1; }
.phone-number { position: relative; display: inline-block; padding-bottom: 10px; font-size: clamp(36px, 5vw, 76px); line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.phone-number::before, .phone-number::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; }
.phone-number::after { background: var(--line-4); }
.phone-number::before { z-index: 1; background: var(--text); transform: scaleX(0); transform-origin: left center; transition: transform .9s var(--ease-out); }
.phone-number:hover::before, .phone-number:focus-visible::before { transform: scaleX(1); }
.phone-note { margin-top: 18px; color: var(--muted-3); font-size: 13px; }
.contact-page .phone-feature { margin-top: 0; }
@media (max-width: 700px) { .phone-feature { margin-bottom: 38px; padding: 22px 0 26px; } .phone-number { font-size: clamp(34px, 10.5vw, 48px); } }

/* Articles : visuels dans la liste et dans l'article. */
.article-row > div { display: grid; grid-template-columns: minmax(0, 1fr) clamp(140px, 17vw, 250px); column-gap: clamp(24px, 4vw, 70px); align-items: start; }
.article-row > div > :not(.article-thumb) { grid-column: 1; }
.article-row .article-thumb { grid-column: 2; grid-row: 1 / span 5; display: block; position: relative; overflow: hidden; border-radius: 4px; background: var(--s2); align-self: start; }
.article-row .article-thumb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--edge); pointer-events: none; }
.article-thumb img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 1.4s var(--ease-out), filter .8s var(--ease-out); }
.article-row:hover .article-thumb img.is-image-visible { transform: scale(1.04); }
.article-figure { margin: 36px 0 10px; max-width: 580px; }
.article-figure img { width: 100%; height: auto; border-radius: 4px; background: var(--s2); }
.article-figure figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 480px; }
.article-hero { margin: 44px 0 0; max-width: 640px; }
.article-prose section .article-figure { margin-bottom: 0; }
@media (max-width: 700px) {
  .article-row > div { grid-template-columns: 1fr; }
  .article-row .article-thumb { grid-column: 1; grid-row: 1; margin-bottom: 22px; max-width: 320px; }
  .article-figure, .article-hero { max-width: none; margin-top: 28px; }
}

/* Barre du haut : fond pleine largeur (rien ne passe sur les côtés), filet limité à la grille. */
.site-header { --pad: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); left: 0; right: 0; margin: 0; width: auto; padding-inline: var(--pad); border-bottom: 0; }
.site-header::after { content: ''; position: absolute; bottom: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--line); transition: background-color .6s var(--ease-out); pointer-events: none; }
.site-header.is-scrolled { border-bottom: 0; }
.site-header.is-scrolled::after { background: var(--line-2); }
@media (max-width: 700px) { .site-header { background: var(--bg); } .site-header::after { z-index: 3; } }

/* Bouton d'ouverture des projets : un « + » à coins légèrement arrondis. */
.project-open { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; font-size: 0; border-radius: 4px; border: 1px solid #ffffff55; }
.project-open::before { content: '+'; font-size: 24px; font-weight: 300; line-height: 1; }
.cursor-label { display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border-radius: 4px; font-size: 30px; font-weight: 300; line-height: 1; }
@media (max-width: 700px) { .project-open { width: 40px; height: 40px; bottom: 12px; right: 12px; padding: 0; } }

/* Très grands écrans : échelle un peu plus modérée. */
@media (min-width: 2200px) { :root { --zoom: 1.05; } }
@media (min-width: 2560px) { :root { --zoom: 1.15; } }
@media (min-width: 3000px) { :root { --zoom: 1.35; } }
@media (min-width: 3600px) { :root { --zoom: 1.65; } }
@media (min-width: 5000px) { :root { --zoom: 2.3; } }

/* Visuels : grands, mais jamais plus hauts que l'écran. */
.project-button img { max-height: calc(86svh / var(--zoom)); }
.gallery-grid { --card-w: clamp(230px, min(22vw, calc(38svh / var(--zoom))), 440px); }
.dialog-image { display: flex; justify-content: flex-start; }
.dialog-image img { width: auto; max-width: 100%; max-height: calc((100svh - 150px) / var(--zoom)); }
.article-figure img { width: auto; max-width: 100%; max-height: calc(72svh / var(--zoom)); }
@media (max-width: 1050px) { .gallery-grid { --card-w: clamp(240px, 34vw, 340px); } }
@media (max-width: 700px) {
  .gallery-grid { --card-w: min(74vw, 320px); }
  .project-button img { max-height: 70svh; }
  .dialog-image img { max-height: 70svh; }
}

/* Logos clients : sans fond, défilement lent avec fondu sur les bords. */
.client-strip>div, .logo-run>div { background: none; border-radius: 0; box-shadow: none; }
.client-strip.is-marquee { display: block; overflow: hidden; gap: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.logo-track { width: 100%; overflow: hidden; }
.logo-run { display: flex; width: max-content; animation: logo-scroll var(--duration, 40s) linear infinite; will-change: transform; }
.logo-run>div { flex: 0 0 clamp(140px, 14vw, 220px); display: grid; place-items: center; height: 82px; }
.logo-run img { width: min(120px, 62%); max-width: none; height: 38px; object-fit: contain; filter: grayscale(1) brightness(0) invert(var(--logo-invert)); opacity: .74; transition: opacity .6s var(--ease-out); }
.logo-run>div:hover img { opacity: 1; }
.client-strip.is-marquee:hover .logo-run { animation-play-state: paused; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--shift, 1000px))); } }
@media (max-width: 1050px) { .logo-run>div { height: 64px; flex-basis: clamp(120px, 24vw, 170px); } .logo-run img { height: 30px; } }
@media (max-width: 700px) { .logo-run>div { height: 62px; flex-basis: 128px; } .logo-run img { height: 28px; width: min(100px, 70%); } }
@media (prefers-reduced-motion: reduce) { .logo-run { animation: none !important; } }
.editorial-row > * { min-width: 0; }
.client-strip.is-marquee, .logo-track { min-width: 0; max-width: 100%; contain: layout paint; }

:root[data-theme="light"] body::after { filter: invert(1); }

/* Bouton de thème dans le menu. */
.project-open { color: #fff; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 0; width: 34px; height: 34px; margin-left: 4px; color: var(--muted-2); border-radius: 4px; transition: color .4s var(--ease-out), background-color .4s var(--ease-out); }
.theme-toggle:hover, .theme-toggle:focus-visible { color: var(--text); background: var(--s3); }
.theme-toggle svg { width: 18px; height: 18px; flex: none; transition: transform .9s var(--ease-out); }
:root[data-theme="light"] .theme-toggle svg { transform: rotate(180deg); }
.theme-toggle .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header nav a[href$="contact.html"] { color: var(--text); }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .6s var(--ease-out), color .6s var(--ease-out), border-color .6s var(--ease-out), box-shadow .6s var(--ease-out), fill .6s, stroke .6s !important; }
@media (max-width: 700px) {
  .theme-toggle { position: relative; width: auto; height: auto; margin: 10px 0 0; padding: 0; justify-content: flex-start; color: var(--muted-2); font-size: inherit; letter-spacing: inherit; background: none; }
  .theme-toggle:hover, .theme-toggle:focus-visible { background: none; }
  .theme-toggle svg { width: .62em; height: .62em; }
  .theme-toggle .theme-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: .62em; letter-spacing: -.01em; }
}

/* ---------- Pages légales, listes de faits, cookies ---------- */
.legal-num { display: inline-block; min-width: 2.2em; color: var(--muted-3); font-weight: 400; }
.legal-section .prose h2 { font-size: 22px; margin-bottom: 20px; }
.legal-section .prose ul { margin: 0 0 22px; padding-left: 1.1em; color: var(--muted-2); line-height: 1.75; font-size: 17px; }
.legal-section .prose li { margin-bottom: 6px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--line); line-height: 1.6; }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 1px solid var(--line); }
.legal-table th { width: 34%; padding-right: 24px; font-weight: 400; color: var(--text); }
.legal-table td { color: var(--muted-2); }
@media (max-width: 700px) {
  .legal-table th, .legal-table td { display: block; width: 100%; padding: 4px 0; border: 0; }
  .legal-table tr { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
  .legal-table tr:last-child { border-bottom: 1px solid var(--line); }
  .legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
}
.fact-list { list-style: none; margin: 0 0 26px; padding: 0; }
.fact-list li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.65; color: var(--muted-2); }
.fact-list li:last-child { border-bottom: 1px solid var(--line); }
.fact-list strong { color: var(--text); font-weight: 400; }
.link-button { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.link-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-button.inline { text-decoration: underline; text-underline-offset: 4px; }
.viewpoint-section { padding-top: 0; }

/* Bandeau cookies */
.cookie-banner { position: fixed; z-index: 120; left: var(--pad, 20px); right: var(--pad, 20px); bottom: 20px; max-width: 760px; margin-left: auto; margin-right: auto; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 20px 22px; background: var(--s1, #111); color: var(--text); border: 1px solid var(--line-2, var(--line)); border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.35); opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out, ease), transform .6s var(--ease-out, ease); }
.cookie-banner[hidden], .cookie-modal[hidden] { display: none; }
.cookie-banner.is-open { opacity: 1; transform: none; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.6; color: var(--muted-2); }
.cookie-banner a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { font: inherit; font-size: 14px; padding: 10px 16px; border-radius: 4px; border: 1px solid var(--line-2, var(--line)); background: transparent; color: var(--text); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.cookie-btn:hover { border-color: var(--text); }
.cookie-btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.cookie-btn.ghost { border-color: transparent; color: var(--muted-2); }
.cookie-modal { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .35s; }
.cookie-modal[hidden] { display: none; }
.cookie-modal.is-open { opacity: 1; }
.cookie-modal-content { width: 100%; max-width: 480px; padding: 28px; background: var(--s1, #111); color: var(--text); border: 1px solid var(--line-2, var(--line)); border-radius: 4px; }
.cookie-modal-content h2 { font-size: 22px; margin: 0 0 12px; }
.cookie-modal-content p { font-size: 14px; line-height: 1.6; color: var(--muted-2); margin: 0 0 18px; }
.cookie-modal-content label { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.cookie-modal-content label:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.cookie-modal-content input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--text); }
@media (max-width: 600px) { .cookie-banner { bottom: 12px; padding: 16px; } .cookie-buttons { width: 100%; } .cookie-btn { flex: 1 1 auto; } }

.dialog-copy > p.dialog-headline { margin: 28px 0 18px; font-size: 19px; line-height: 1.4; color: var(--text); max-width: 520px; }
.dialog-text p { font-size: 15px; line-height: 1.7; color: var(--muted-2); margin: 0 0 16px; max-width: 520px; }

.summary-title { display: block; margin-bottom: 8px; color: var(--text); font-size: 1.08em; line-height: 1.35; }

.project-row .project-copy, .gallery-item .project-copy { cursor: pointer; }
.project-row .project-copy h3 { transition: opacity .3s; }
.project-row:hover .project-copy h3, .gallery-item:hover .project-copy h3 { opacity: .75; }

/* Page outil : atelier de workflows */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tool-section { padding: 0 var(--gutter) 110px; }
.tool-frame { height: min(78vh, 760px); min-height: 520px; border: 1px solid var(--line-4); border-radius: 6px; overflow: hidden; background: #eceef1; }
.tool-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; }
.tool-actions p { font-size: 13px; color: var(--muted); max-width: 520px; }
@media (max-width: 800px) { .tool-section { padding-bottom: 70px; } .tool-frame { display: none; } .tool-actions { margin-top: 0; } }

/* Flèche ↗ dessinée en CSS : le caractère Unicode s'affiche en emoji sur iPhone */
.arr { display: inline-block; width: .8em; height: .8em; margin-left: .45em; vertical-align: -.04em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='square'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='square'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.text-link .arr { margin-left: 0; }
