/* Shared mechanics for the three directions. No look here: colour, type and shape live in each direction's styles.css. */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
html.locked{overflow:hidden}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:inherit}
ul,ol{list-style:none}
dl,dd{margin:0}
.wrap{width:100%;max-width:var(--max,1480px);margin-inline:auto;padding-inline:var(--pad,1.5rem)}
section[id]{scroll-margin-top:4.5rem}
#cat-src{display:none}

.skip{position:fixed;left:1rem;top:-4rem;z-index:400;padding:.6rem 1.1rem;border-radius:99px;background:#F4F2EC;color:#07202C;font-weight:600}
.skip:focus{top:1rem}
.back-to-index{position:fixed;left:50%;bottom:1rem;z-index:150;transform:translateX(-50%);padding:.55rem 1.1rem;border-radius:99px;background:rgba(7,32,44,.88);color:#F4F2EC;font:500 .78rem/1 -apple-system,"Segoe UI",sans-serif;letter-spacing:.04em;border:1px solid rgba(244,242,236,.2);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}

/* header + menu */
.site-header{position:fixed;inset:0 0 auto;z-index:100;transition:background-color .4s,box-shadow .4s,color .4s}
.nav{display:flex;align-items:center;justify-content:space-between;gap:2rem;height:4.75rem}
.nav-links{display:flex;gap:2rem}
.menu-btn{display:none;width:44px;height:44px;flex-direction:column;justify-content:center;align-items:flex-end;gap:6px}
.menu-btn span{display:block;width:26px;height:2px;background:currentColor;transform-origin:center;transition:transform .45s cubic-bezier(.16,1,.3,1)}
.menu-btn span:nth-child(2){transform:scaleX(.7);transform-origin:right}
body.menu-open .menu-btn span:nth-child(1){transform:translateY(4px) rotate(45deg)}
body.menu-open .menu-btn span:nth-child(2){transform-origin:center;transform:translateY(-4px) rotate(-45deg)}
.mobile-menu{position:fixed;inset:0;z-index:90;display:flex;flex-direction:column;justify-content:center;gap:2rem;padding:6rem var(--pad,1.5rem) 3rem;clip-path:inset(0 0 100% 0);visibility:hidden;transition:clip-path .6s cubic-bezier(.65,0,.35,1),visibility 0s .6s}
body.menu-open .mobile-menu{clip-path:inset(0);visibility:visible;transition:clip-path .6s cubic-bezier(.65,0,.35,1)}
.mobile-menu ul{display:grid;gap:.35rem}
@media (max-width:1023px){.nav-links,.nav-cta{display:none}.menu-btn{display:flex}}

/* reveal on scroll: only when motion is allowed and JS is running */
html.motion [data-rv]{opacity:0;transform:translateY(34px);transition:opacity 1s cubic-bezier(.16,1,.3,1),transform 1s cubic-bezier(.16,1,.3,1)}
html.motion [data-rv].in{opacity:1;transform:none}

/* expertise panel */
.panel{position:fixed;inset:0;z-index:200}
.panel[hidden]{display:none}
.panel-backdrop{position:absolute;inset:0;opacity:0;transition:opacity .5s}
.panel.open .panel-backdrop{opacity:1}
.panel-sheet{position:absolute;top:0;right:0;bottom:0;width:min(880px,100%);overflow-y:auto;overscroll-behavior:contain;transform:translateX(100%);transition:transform .65s cubic-bezier(.16,1,.3,1)}
.panel.open .panel-sheet{transform:none}
.panel-top{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:1rem}
.panel-count{margin-left:auto;font-variant-numeric:tabular-nums}
.panel-close{flex:none;width:3rem;height:3rem;border-radius:50%;display:grid;place-items:center}
.panel-close svg{width:1.15rem;height:1.15rem}
.panel-body .svc-lists{display:grid;gap:2.5rem}
@media (min-width:720px){.panel-body .svc-lists{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}}
.panel-body .chips{display:flex;flex-wrap:wrap;gap:.5rem}
.panel-nav{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.panel-nav button{display:inline-flex;align-items:center;gap:.6rem}
.panel-nav svg{width:1rem;height:1rem}

.btn svg,.contact-mail svg,.to-top svg,.cat-plus svg{flex:none}
.to-top{display:inline-flex;align-items:center;gap:.5rem}
.to-top svg{width:1rem;height:1rem}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* calls to action: shared layout, each direction paints them */
.sec-cta{display:flex;flex-wrap:wrap;align-items:center;gap:1.2rem 2rem;margin-top:clamp(1.8rem,4vh,2.6rem)}
.duo-end .sec-cta{margin-top:0}
.duo-end{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.5rem 3rem}
.exp-end{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.2rem 3rem;margin-top:clamp(3rem,7vh,4.5rem);padding-top:2rem}
.exp-end .sec-cta{margin-top:0}
.cat-go{display:inline-flex;align-items:center;gap:.7rem}
.cat-cta{white-space:nowrap}
.model-cta,.partner-cta{display:inline-flex;align-items:center;gap:.6rem;align-self:flex-start;white-space:nowrap}
.model-cta{margin-top:1.4rem}
.model-cta svg,.partner-cta svg{width:1em;height:1em;transition:transform .4s cubic-bezier(.16,1,.3,1)}
.model-cta:hover svg,.partner-cta:hover svg{transform:translateX(4px)}
.panel-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.2rem 2rem;margin-top:3rem;padding:clamp(1.4rem,3vw,2rem)}
.panel-cta-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.6rem}

/* language switch, in the header at every width */
.nav-end{display:flex;align-items:center;gap:1.4rem}
.lang-switch{display:inline-flex;align-items:center;gap:.15rem;font:600 .78rem/1 -apple-system,"Segoe UI",sans-serif;letter-spacing:.08em}
.lang-switch a{padding:.45rem .5rem;border-radius:99px;opacity:.75;transition:opacity .3s}
.lang-switch a:hover{opacity:1}
.lang-switch a[aria-current]{opacity:1;box-shadow:inset 0 0 0 1.5px currentColor}
.lang-switch a+a::before{content:none}

/* ---------- contact form: shared shape; it takes its colours from the section it sits in ---------- */
.cform{position:relative;max-width:60rem;margin-top:clamp(2rem,5vh,3.5rem)}
.cform-grid{display:grid;gap:1.1rem 1.4rem}
@media (min-width:720px){.cform-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.field-wide{grid-column:1 / -1}}
.field{display:grid;gap:.45rem;min-width:0}
.field label{font-size:.8rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase}
.field .opt{font-weight:400;letter-spacing:0;text-transform:none}
.field input,.field select,.field textarea{width:100%;min-width:0;font:inherit;font-size:1rem;line-height:1.4;color:inherit;background-color:var(--field-bg,color-mix(in srgb,currentColor 8%,transparent));border:1.5px solid var(--field-line,color-mix(in srgb,currentColor 45%,transparent));border-radius:var(--field-r,12px);padding:.85rem 1rem;transition:border-color .25s,background-color .25s,box-shadow .25s}
.field select{appearance:none;-webkit-appearance:none;padding-right:2.8rem;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:right 1.35rem center,right 1rem center;background-size:.36rem .36rem;background-repeat:no-repeat}
.field select option,.field select optgroup{color:#07202C;background:#F4F2EC}
.field textarea{resize:vertical;min-height:9rem}
.field input:hover,.field select:hover,.field textarea:hover{border-color:currentColor}
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-color:currentColor}
.field [aria-invalid="true"]{border-color:currentColor;box-shadow:inset 5px 0 0 currentColor}
.field-error[hidden]{display:none}
.field-error{display:flex;align-items:center;gap:.5rem;font-size:.9rem;font-weight:600}
.field-error::before{content:"!";flex:none;display:inline-grid;place-items:center;width:1.15rem;height:1.15rem;border:1.5px solid currentColor;border-radius:50%;font-size:.75rem;line-height:1}
.hp{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.cform-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem;margin-top:1.5rem}
.cform-note{font-size:.92rem;max-width:42ch}
.cform-note a{text-decoration:underline;text-underline-offset:.2em}
.cform button[disabled]{opacity:.6;cursor:progress}
.cform-status{margin-top:1.1rem;font-weight:600}
.cform-status:empty{display:none}
.cform-status a{text-decoration:underline;text-underline-offset:.2em}
.cform.sent .cform-grid,.cform.sent .cform-foot{display:none}
.cform.sent .cform-status{margin-top:0;font-size:clamp(1.2rem,2.2vw,1.6rem);line-height:1.35;max-width:36ch}
.contact .contact-meta{margin-top:clamp(2.5rem,6vh,4rem)}
.contact-meta a{text-decoration:underline;text-underline-offset:.2em}

/* ---------- cookie and audience banner ---------- */
.consent{position:fixed;left:1rem;right:1rem;bottom:calc(1rem + env(safe-area-inset-bottom,0px));z-index:300;max-width:27rem;padding:1.25rem 1.35rem;border-radius:16px;background:#F4F2EC;color:#07202C;border:1px solid rgba(16,51,67,.18);box-shadow:0 24px 60px -24px rgba(0,0,0,.6);font:400 .92rem/1.5 -apple-system,"Segoe UI",sans-serif}
.consent[hidden]{display:none}
@media (min-width:640px){.consent{left:1.25rem;right:auto;bottom:1.25rem}}
.consent-title{font-weight:700;font-size:1rem;margin-bottom:.3rem}
.consent-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin-top:1rem}
.consent-btn{flex:1 1 0;min-width:7rem;padding:.75rem 1rem;border-radius:99px;border:1.5px solid #07202C;background:#07202C;color:#F4F2EC;font-weight:600;text-align:center;transition:background-color .25s}
.consent-btn:hover{background:#103343}
.consent-btn:focus-visible,.consent-more:focus-visible{outline:2px solid #07202C;outline-offset:3px}
.consent-more{width:100%;font-size:.86rem;text-decoration:underline;text-underline-offset:.2em}

/* ---------- footer legal row ---------- */
.footer .foot{padding-bottom:1.4rem}
.foot-legal{padding-bottom:4.5rem}
.foot-legal ul{display:flex;flex-wrap:wrap;gap:.5rem 1.6rem;padding-top:1.2rem;border-top:1px solid color-mix(in srgb,currentColor 18%,transparent);font-size:.86rem}
.foot-legal a:hover,.foot-legal .link-btn:hover{text-decoration:underline;text-underline-offset:.2em}
.foot-legal .foot-area{margin-left:auto} /* where the studio works: France, Luxembourg, Belgium, Europe */
.link-btn{display:inline;padding:0;font:inherit;color:inherit;cursor:pointer}
.legal-doc .link-btn{text-decoration:underline;text-underline-offset:.2em}

/* ---------- legal pages ---------- */
.legal{padding-block:clamp(7.5rem,15vh,10rem) clamp(4rem,10vh,7rem)}
.legal-doc{max-width:48rem}
.legal-kicker{font-size:.78rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.legal-doc h1{font-family:var(--display,var(--sans,inherit));font-weight:600;font-size:clamp(2.4rem,6vw,4.4rem);line-height:1.02;letter-spacing:-.02em;margin:.7rem 0 1rem;text-wrap:balance}
.legal-updated{font-size:.92rem;margin-bottom:2.6rem}
.legal-doc h2{font-family:var(--display,var(--sans,inherit));font-weight:600;font-size:clamp(1.4rem,2.4vw,1.9rem);line-height:1.15;letter-spacing:-.01em;margin:2.8rem 0 .9rem;text-wrap:balance}
.legal-doc h3{font-size:1.06rem;font-weight:700;margin:1.8rem 0 .5rem}
.legal-doc p,.legal-doc li{max-width:68ch}
.legal-doc p+p{margin-top:.9rem}
.legal-doc ul{list-style:disc;padding-left:1.25rem;display:grid;gap:.65rem;margin:.9rem 0}
.legal-doc a{text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}
.legal-facts{border-top:1px solid color-mix(in srgb,currentColor 22%,transparent)}
.legal-facts>div{display:grid;gap:.15rem 2rem;padding:.85rem 0;border-bottom:1px solid color-mix(in srgb,currentColor 22%,transparent)}
@media (min-width:640px){.legal-facts>div{grid-template-columns:15rem minmax(0,1fr)}}
.legal-facts dt{font-weight:600}
mark.todo{background:#FF6B4B;color:#07202C;padding:.05em .4em;border-radius:4px;font-weight:600}

/* ---------- 404 ---------- */
.notfound{min-height:100svh;display:grid;align-items:center;padding-block:7rem 5rem}
.nf-code{font-family:var(--display,var(--sans,inherit));font-weight:700;font-size:clamp(6rem,24vw,15rem);line-height:.9;letter-spacing:-.04em}
.nf-code span{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:400;color:#FF6B4B;padding-inline:.04em}
.nf-title{font-family:var(--display,var(--sans,inherit));font-weight:600;font-size:clamp(2rem,5vw,3.6rem);line-height:1.05;letter-spacing:-.02em;margin-top:1.2rem;text-wrap:balance}
.nf-fr{font-size:clamp(1.15rem,2.2vw,1.5rem);margin-top:.5rem}
.nf-text{max-width:52ch;margin-top:1.4rem}
.nf-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.8rem;margin-top:2.2rem}
.nf-alt{text-decoration:underline;text-underline-offset:.2em}

/* portraits load when their section comes near (common.js); without JavaScript they load with the page */
html.lazy-duo .duo-portrait{-webkit-mask-image:none;mask-image:none;visibility:hidden}

/* small phones: the header keeps logo, language switch and menu on one line; touch targets stay 44px tall */
@media (max-width:400px){.nav{gap:.75rem}.nav-end{gap:.6rem}.lang-switch a{padding:.45rem .4rem}}
.to-top{min-height:44px}
.mobile-menu{overflow-x:hidden;overflow-y:auto}
.partner-grid>*,.steps>*{min-width:0}
@media (max-width:480px){.model-cta,.partner-cta{white-space:normal}}
@media (max-width:359px){.nav .logo{font-size:.95rem;letter-spacing:0;white-space:normal;line-height:1.05;max-width:7.5em;min-width:0}}
/* long words (Communication, confidentialité) hyphenate instead of pushing the page wider on small phones */
.partner h3,.legal-doc h1,.legal-doc h2,.nf-title,.sec-title,.contact-title{overflow-wrap:break-word}
@media (max-width:480px){.partner h3,.legal-doc h1,.legal-doc h2,.nf-title,.sec-title,.contact-title{-webkit-hyphens:auto;hyphens:auto}}

/* the final logo (directions I to P): outlined SVG, white letters and coral "&" on the night */
a.logo:has(> .logo-svg){display:inline-flex;align-items:center;line-height:0}
.logo-svg{display:block;height:1.3rem;width:auto;overflow:visible}
.logo-svg .ink{fill:var(--logo-ink,#FFFFFF)}
.logo-svg .amp{fill:#FF6B4B}
.footer .logo-svg{height:1.6rem}
@media (max-width:420px){.site-header .logo-svg{height:1.12rem}}
/* the logo's own "&" (directions I to P): in the services strip and in the Two Minds knot */
.amp-svg{display:inline-block;height:.72em;width:auto;vertical-align:-.04em;fill:#FF6B4B;overflow:visible}
.duo-knot .amp-svg{display:block;height:.8em}

/* the menu follows the reading: the section on screen (or the one just clicked) is underlined in coral */
.nav-links a{position:relative}
.nav-links a::after{content:"";position:absolute;left:0;right:0;bottom:-.5rem;height:2px;border-radius:2px;background:#FF6B4B;transform:scaleX(0);transform-origin:left center;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.nav-links a.is-current::after{transform:scaleX(1)}
@media (prefers-reduced-motion:reduce){.nav-links a::after{transition:none}}
