:root{color-scheme:dark;--night:#101a2b;--ink:#f6f5f1;--muted:#c0cbd8;--teal:#85b7b5;--orange:#ffab6d;--line:#ffffff38;font-family:Arial,Helvetica,sans-serif;background:var(--night);color:var(--ink)}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 82% 20%,#1a2d48,transparent 44%),var(--night)}
a{color:inherit;text-decoration:none}
a:focus-visible{outline:2px solid var(--teal);outline-offset:5px}
h1,h2,h3,p{margin:0}
p{line-height:1.5;color:var(--muted)}
.wrap{width:min(100% - 7vw,1320px);margin-inline:auto}
.skip{position:fixed;top:1rem;left:1rem;transform:translateY(-180%);padding:.75rem;background:var(--teal);color:var(--night);z-index:5}
.skip:focus{transform:none}
.header{min-height:72px;padding:0 3.35vw;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);background:#101827}
.header nav{display:flex;align-items:center;gap:clamp(1rem,5vw,4.5rem);font-size:1.05rem}
.brand{display:inline-flex;align-items:flex-start;gap:.4rem;font-size:clamp(1.1rem,2.3vw,2rem);font-weight:700;white-space:nowrap;letter-spacing:-.035em}
.brand i{width:.39em;height:.39em;background:#e7393b;margin-top:.16em}
.nav-accent{color:var(--orange)}
.header a:hover,.profiles a:hover strong,.progress a:hover{color:var(--teal)}
.hero{display:grid;grid-template-columns:49% 51%;background:radial-gradient(ellipse at 54% 48%,#213955,#101a2b 72%)}
.hero-copy{padding:clamp(3rem,8vw,8rem) 2vw clamp(3.2rem,8vw,8rem) 3.35vw;align-self:center}
h1{font-size:clamp(2.8rem,5.5vw,6.35rem);letter-spacing:-.059em;line-height:1.06;font-weight:650}
h1 em{font-style:normal;color:var(--teal)}
.hero p{max-width:32em;margin-top:1.35rem;font-size:clamp(1.05rem,2.13vw,2rem);line-height:1.28}
.hero-photo{width:100%;height:100%;min-height:0;object-fit:cover;aspect-ratio:786/707}
.button{display:inline-flex;padding:.82em 1.45em;align-items:center;min-height:48px;background:var(--teal);color:#101a2b;font-size:clamp(1rem,1.65vw,1.35rem);font-weight:700}
.button:hover{background:#a8cecb}
.hero .button{margin-top:1.7rem}
.profiles{display:grid;grid-template-columns:1fr 1fr;padding:clamp(1.1rem,2.65vw,2.7rem) 3.35vw;gap:3.5vw;border-block:1px solid var(--line)}
.profiles a:last-child{border-left:1px solid var(--line);padding-left:3.5vw}
.profiles strong{display:block;font-size:clamp(1.25rem,3.1vw,3rem);letter-spacing:-.04em}
.profiles a:last-child strong::before{content:"";display:inline-block;width:.1em;height:.74em;background:var(--orange);margin-right:.33em}
.profiles span{display:block;color:var(--muted);margin-top:.45rem;font-size:clamp(1rem,1.76vw,1.48rem)}
.journey{background:radial-gradient(ellipse at 65% 50%,#172c43,transparent 62%),#111c30;padding-bottom:4rem}
.journey-intro{padding-block:clamp(3.8rem,9vw,8.5rem) clamp(2.6rem,5vw,5rem);border-bottom:1px solid var(--line)}
h2{font-size:clamp(2.45rem,5.75vw,5.4rem);line-height:1.04;letter-spacing:-.062em}
.journey-intro p,.contact p,.residents p{max-width:38rem;font-size:clamp(1.13rem,1.72vw,1.4rem);margin-top:1.1rem}
.read-link{display:inline-block;color:var(--teal);font-weight:700;border-bottom:1px solid var(--teal);padding-bottom:.25rem;margin-top:1.35rem}
.read-link:hover{color:var(--ink)}
.stage{display:none}
.step{padding-block:2rem;border-bottom:1px solid var(--line);scroll-margin-top:2rem}
.step h3{font-size:clamp(1.8rem,3.9vw,3.8rem);line-height:1.08;letter-spacing:-.052em}
.step p{font-size:clamp(1.07rem,1.55vw,1.3rem);margin-top:1rem;max-width:35rem}
.still{display:block;width:min(100%,680px);height:auto;margin-top:1.4rem}
.animated{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-areas:"copy stage";gap:clamp(1.7rem,6.5vw,6.5rem);align-items:start}
.animated .stage{display:block;grid-area:stage;position:sticky;top:clamp(1.65rem,15vh,8rem);align-self:start;padding-block:1.25rem}
.animated .steps{grid-area:copy}
.animated .step{display:grid;align-items:center;min-height:76vh;padding-block:1.35rem}
.animated .still{display:none}
.art{position:relative;aspect-ratio:3/2;overflow:hidden;border-radius:16px}
.art img{position:absolute;inset:0;width:100%;height:100%;opacity:0;transform:translateY(12px) scale(.985);transition:opacity 430ms ease,transform 520ms ease}
.art img.current{opacity:1;transform:none}
.progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin-top:1rem}
.progress a{display:block;padding:.65rem 0;color:var(--muted);border-top:2px solid #3a4e63;text-align:center;font-size:.96rem}
.progress a[aria-current]{color:#e3f2f2;border-color:var(--teal);font-weight:700}
.residents,.contact{border-top:1px solid var(--line);padding-block:clamp(3rem,6vw,7rem);background:#101827}
.contact{background:#192a3d}
.contact-inner{display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap}
.footer{display:flex;justify-content:space-between;align-items:center;min-height:76px;gap:1rem;color:var(--muted)}
.footer .brand{font-size:1.16rem;color:var(--ink)}
@media(max-width:900px){
  h1{font-size:clamp(2.7rem,5.6vw,5rem)}
  .hero-copy{padding-block:3.2rem}
}
@media(max-width:760px){
  .wrap{width:calc(100% - 2rem)}
  .header{padding:.75rem 1rem;min-height:58px;flex-wrap:wrap}
  .header nav{font-size:.9rem}
  .hero{display:block}
  .hero-copy{padding:2.65rem 1rem}
  .hero-photo{display:block;height:clamp(180px,50vw,350px);aspect-ratio:auto;object-position:50% 58%}
  .profiles{padding-inline:1rem}
  .profiles span{font-size:.91rem}
  .animated{display:block}
  .animated .stage{top:0;z-index:2;background:#111c30;padding:.7rem 0 .4rem}
  .art{max-width:min(100%,39svh * 1.5);margin-inline:auto}
  .progress{margin-top:.45rem}
  .progress a{font-size:.88rem;padding:.45rem 0}
  .animated .step{min-height:53svh;scroll-margin-top:calc(min(66.67vw,39svh) + 3.5rem)}
}
@media(max-height:460px) and (max-width:760px){
  .animated .stage{position:relative}
  .animated .step{scroll-margin-top:1rem}
}
@media(prefers-reduced-motion:reduce){
  .art img{transition:none}
}

/* The cabinet and Le Pôle Frontalier share the approved blue-night palette. */
:root {
  --surface:#152338;
  --panel:#1a2b43;
  --gutter:clamp(1.15rem,4.6vw,5rem);
}
html{scroll-padding-top:1.5rem}
.wrap{width:min(100% - 2 * var(--gutter),1280px)}
.header{padding-inline:var(--gutter);min-height:84px}
.header .brand,.site-footer .brand{display:flex;align-items:center}
.brand img{display:block;width:clamp(105px,10vw,146px);height:auto;max-height:54px;object-fit:contain}
.frontalier .brand img{width:clamp(125px,13vw,176px)}
.frontalier .brand-lockup{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem .85rem}
.frontalier .brand-lockup .brand-parent img{width:clamp(80px,7vw,105px)}
.frontalier .brand-by{color:var(--muted);font-size:.875rem}
.frontalier .header{flex-wrap:wrap}
.frontalier .header nav{flex-wrap:wrap}
.frontalier .header .return-link:hover{text-decoration:underline;text-underline-offset:.2em}
.header nav{gap:clamp(1rem,2.6vw,2.6rem);font-size:.96rem;font-weight:600}
.button{border:1px solid transparent;border-radius:7px;cursor:pointer;font:inherit;font-weight:700;justify-content:center}
.button.secondary{background:transparent;color:var(--ink);border-color:#8a9eb8}
.button.secondary:hover,.header .nav-button:hover{color:var(--teal);border-color:var(--teal)}
.button.frontalier-cta:is(:hover,:focus-visible){color:var(--orange);border-color:var(--orange);background:#ffab6d1a;outline-color:var(--orange)}
.frontalier .button:not(.secondary){background:var(--orange);color:#111a27}
.frontalier a:focus-visible,.frontalier button:focus-visible{outline-color:var(--orange)}
.frontalier .header nav a:not(.button,.return-link):is(:hover,:focus-visible){color:var(--orange)}
.frontalier .button.secondary:is(:hover,:focus-visible){color:var(--orange);border-color:var(--orange)}
.frontalier .button:not(.secondary):is(:hover,:focus-visible){background:#ffc49c;color:#111a27;border-color:var(--orange)}
.frontalier .theme-card:is(:hover,:focus-within){border-color:var(--orange)}
.frontalier .theme-card summary:is(:hover,:focus-visible) strong{color:var(--orange)}
.frontalier .read-link{color:var(--orange);border-color:var(--orange)}
.frontalier .read-link:is(:hover,:focus-visible){color:#ffc49c;border-color:#ffc49c}
.frontalier .progress a:is(:hover,:focus-visible,[aria-current]){color:var(--orange);border-color:var(--orange)}
.frontalier .return-link{color:var(--teal)}
.frontalier :is(.return-link,.form-email):focus-visible{outline-color:var(--teal)}
.frontalier .button.return-link,.frontalier .button.return-link:is(:hover,:focus-visible){color:var(--teal);border-color:var(--teal)}
.frontalier .button.return-link:is(:hover,:focus-visible){background:#85b7b51a}
.frontalier .contact-form :is(input,select,textarea):focus{outline-color:var(--orange)}
.header .nav-button{min-height:42px;padding:.5rem 1rem}
.hero{grid-template-columns:49% 51%;min-height:clamp(490px,46vw,720px)}
.hero-copy{padding:clamp(3rem,6vw,6.5rem) 2.3vw clamp(3rem,6vw,6.5rem) var(--gutter)}
.hero h1{font-size:clamp(2.6rem,5.55vw,6.2rem);font-weight:650}
.hero-photo{display:block;aspect-ratio:auto;object-fit:cover}
.frontalier .hero-photo{object-position:right center}
.frontalier .hero h1{font-size:clamp(2.5rem,4.65vw,5.35rem)}
.hero p:not(.kicker):not(.hero-bridge){font-size:clamp(1.05rem,1.65vw,1.48rem);max-width:34rem;line-height:1.42}
.kicker,.hero p.kicker,.contact p.kicker{margin:0 0 1rem;color:var(--teal);letter-spacing:.12em;text-transform:uppercase;font-weight:700;font-size:.81rem}
.frontalier .kicker,.frontalier .hero p.kicker,.frontalier .contact p.kicker,.frontalier em{color:var(--orange)}
.actions{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1.7rem}
.hero .actions .button{margin-top:0}
.hero .hero-bridge{font-size:.93rem;line-height:1.5;margin-top:clamp(1.4rem,4.1vw,3.8rem)}
.hero-bridge a{color:var(--orange);font-weight:700}
.hero-bridge a:hover,.site-footer a:hover{text-decoration:underline;text-underline-offset:.22em}
.section{padding-block:clamp(3.5rem,7.2vw,7.75rem);border-top:1px solid var(--line)}
.section.surface{background:var(--surface)}
.section h2{font-size:clamp(2.25rem,4.15vw,4.65rem);max-width:22ch;font-weight:650}
.section h2 em{font-style:normal;color:var(--teal)}
.frontalier .section h2 em{color:var(--orange)}
.split{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(1.2rem,5vw,5.25rem);align-items:center}
.section-heading{margin-bottom:2.25rem}
.section-heading p{max-width:32rem;font-size:1.06rem}
.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.question-card,.theme-card{background:var(--panel);border:1px solid #6988ac44;border-radius:8px}
.question-card{display:flex;flex-direction:column;justify-content:space-between;gap:1rem;min-height:136px;padding:1.28rem}
.question-card.other{border-color:#85b7b57a;background:#1c344a}
.question-card strong,.theme-card strong{font-size:clamp(1.1rem,1.65vw,1.4rem);line-height:1.25}
.question-card span,.theme-card .explore{color:var(--teal);font-size:.96rem;font-weight:700}
.question-card:hover,.theme-card:hover{border-color:var(--teal)}
.theme-card summary{display:flex;flex-direction:column;list-style:none;gap:.7rem;min-height:170px;cursor:pointer;padding:1.28rem}
.theme-card summary::-webkit-details-marker{display:none}
.theme-card summary:focus-visible{outline:2px solid var(--orange);outline-offset:4px;border-radius:8px}
.theme-card summary span:not(.explore){color:var(--muted);line-height:1.55}
.theme-card .explore{color:var(--orange);margin-top:auto}
.theme-card[open] .explore{display:none}
.theme-detail{padding:0 1.28rem 1.28rem}
.theme-detail .read-link{margin-top:.75rem}
#expertises h2{max-width:none}
.expertise-grid{margin-top:clamp(1.6rem,3vw,3rem)}
.expertise-card{justify-content:flex-start;gap:.65rem}
.expertise-card h3,.three-steps h3,.bridge h3{font-size:clamp(1.2rem,2vw,1.6rem);letter-spacing:-.025em}
.expertise-card h3{color:var(--teal)}
.expertise-card:target{border-color:var(--teal)}
.cabinet-block img{width:100%;height:auto;aspect-ratio:1.35;object-fit:cover;border-radius:10px}
.cabinet-copy{min-width:0;container-type:inline-size}
.cabinet-copy h2{max-width:none;font-size:min(4.65rem,8.1cqi);white-space:nowrap}
.cabinet-block h2 + p{margin-top:1.25rem}
.facts,.three-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.95rem,2.5vw,2rem);margin-top:2rem}
.facts dt{font-weight:700;color:var(--teal);margin-bottom:.5rem;font-size:1.03rem}
.facts dd{margin:0;color:var(--muted);line-height:1.5;font-size:.94rem}
.three-steps > div{border-top:1px solid #85b7b58c;padding-top:1.15rem}
.three-steps p{margin-top:.65rem}
.frontalier .three-steps > div{border-top-color:#ffab6d80}
.bridge{display:flex;align-items:center;gap:clamp(1rem,3vw,2.25rem);border:1px solid var(--line);border-radius:8px;padding:1.35rem;margin-top:clamp(2rem,5vw,4.7rem)}
.bridge img{width:145px;height:auto}
.bridge .button{margin-left:auto;flex-shrink:0}
.bridge h3 + p{margin-top:.5rem}
.contact{background:radial-gradient(ellipse at 68% 31%,#223b52,#142238 72%)}
.contact .contact-inner{display:grid;align-items:start}
.contact-form{background:#182a40;border:1px solid #85b7b54f;border-radius:11px;padding:clamp(1.1rem,2.7vw,2.3rem);display:grid;gap:.86rem}
.contact-form h3{font-size:1.3rem;margin-bottom:.5rem}
.contact-form label{display:block;font-size:.97rem;font-weight:700}
.contact-form label span{color:var(--muted);font-weight:400}
.contact-form input,.contact-form select,.contact-form textarea{display:block;width:100%;margin-top:.35rem;padding:.7rem;border-radius:6px;border:1px solid #6988ac85;background:#101c2c;color:var(--ink);font:inherit;font-weight:400}
.contact-form textarea{resize:vertical}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:2px solid var(--teal);outline-offset:2px}
.contact-form p,.contact-form .form-email{font-size:.91rem}
.contact-form .button{justify-self:start}
.form-email{color:var(--teal);justify-self:start}
.form-email:hover{text-decoration:underline}
.site-footer{background:#101827;border-top:1px solid var(--line);padding-block:2rem}
.footer-grid{display:grid;grid-template-columns:auto 1fr auto;gap:1.5rem;align-items:center;font-size:.95rem;color:var(--muted)}
.footer-grid > div{line-height:1.65}
@media(max-width:1000px){
  .header nav{gap:1rem}
}
@media(max-width:760px){
  .header{padding:1rem var(--gutter);align-items:flex-start}
  .header nav{flex-wrap:wrap;gap:.75rem 1rem}
  .header .nav-button{min-height:36px}
  .hero{min-height:0}
  .hero-copy{padding:2.5rem var(--gutter)}
  .hero-photo{min-height:180px;height:clamp(200px,67vw,350px);object-position:center 55%}
  .split,.contact .contact-inner{grid-template-columns:1fr}
  .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bridge{flex-wrap:wrap}
  .bridge .button{margin-left:0}
  .footer-grid{grid-template-columns:1fr;gap:1rem}
}
@media(max-width:440px){
  .card-grid,.three-steps{grid-template-columns:1fr}
  .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .question-card,.theme-card summary{min-height:0}
}

/* Keep the portrait crop within the height of the LIVE CONSEIL introduction. */
.cabinet .hero{
  position:relative;
  min-height:clamp(480px,51vw,760px);
}
.cabinet .hero-copy{
  padding-block:clamp(2rem,4vw,4.25rem);
}
.cabinet .hero-bridge{
  margin-top:clamp(1.35rem,2.1vw,2.25rem);
}
.cabinet .hero-photo{
  position:absolute;
  inset:0 0 0 auto;
  width:51%;
  object-position:center 34%;
}
.cabinet .section{
  padding-block:clamp(2.7rem,5.2vw,5rem);
}
.cabinet .expertise-card{
  min-height:0;
}
.cabinet .bridge{
  margin-top:clamp(1.65rem,2.9vw,3rem);
}

@media(min-width:1600px){
  .cabinet .hero-photo{
    object-position:center 48%;
  }
}

@media(max-width:760px){
  .cabinet .hero{
    min-height:0;
  }
  .cabinet .hero-photo{
    position:static;
    width:100%;
    height:clamp(215px,68vw,390px);
    object-position:center 60%;
  }
}

/* Formulaire réel + liens juridiques (intégration Claude) */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-status{margin:.75rem 0 0;font-size:.95rem}
.form-note a,.site-footer a{text-decoration:underline;text-underline-offset:2px}

/* Retours Greg 22.11 : header plus large, fondu image/marine, logo parent réduit */
@media (min-width:761px){
  .hero{position:relative;display:block;min-height:clamp(480px,42vw,660px);overflow:hidden}
  .hero .hero-photo{position:absolute;top:0;right:0;width:64%;height:100%;object-fit:cover;object-position:left center;z-index:0}
  .hero::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
    background:linear-gradient(90deg,#101a2b 0%,#101a2b 37.5%,rgba(16,26,43,.8) 44%,rgba(16,26,43,.4) 54%,rgba(16,26,43,0) 68%)}
  .hero .hero-copy{position:relative;z-index:2;max-width:min(54%,920px)}
}
@media (max-width:760px){
  .hero{position:relative}
  .hero .hero-photo{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 22%);mask-image:linear-gradient(180deg,transparent 0,#000 22%)}
}
.frontalier .brand-lockup .brand-parent img{width:clamp(56px,4.6vw,74px)}
.frontalier .brand-by{font-size:.8rem}
@media (min-width:761px){.frontalier .hero .hero-photo{object-position:right center}}
@media (min-width:761px){body:not(.frontalier) .hero .hero-photo{object-position:center center}}
/* Accueil : vague entière, image plus large, fondu plus long (22.11 soir) */
@media (min-width:761px){
  body:not(.frontalier) .hero{min-height:clamp(440px,35vw,620px)}
  body:not(.frontalier) .hero .hero-photo{width:74%;object-position:40% center}
  body:not(.frontalier) .hero::before{background:linear-gradient(90deg,#101a2b 0%,#101a2b 26%,rgba(16,26,43,.75) 33%,rgba(16,26,43,.35) 42%,rgba(16,26,43,0) 52%)}
}
/* Pôle : « by LIVE CONSEIL » aligné sur la ligne FRONTALIER du logo */
.frontalier .brand-lockup{--lpf-h:min(54px,calc(clamp(125px,13vw,176px)*0.3425));align-items:flex-end;flex-wrap:nowrap}
.frontalier .brand-lockup>.brand:first-child img{height:var(--lpf-h);width:auto;max-height:none}
.frontalier .brand-lockup .brand-by{line-height:1;margin-bottom:calc(var(--lpf-h)*0.277 - .4em)}
.frontalier .brand-lockup .brand-parent{margin-bottom:calc(var(--lpf-h)*0.277 - clamp(56px,4.6vw,74px)*0.164)}
/* Pôle : image passage de douane (24.11) — frontière et douane visibles, fondu court */
@media (min-width:761px){
  .frontalier .hero .hero-photo{width:63%;object-position:78% center}
  .frontalier .hero::before{background:linear-gradient(90deg,#101a2b 0%,#101a2b 37%,rgba(16,26,43,.55) 41%,rgba(16,26,43,0) 47%)}
}
/* 24.11 : visuel du hero aligné sur le texte (hero-fit.js) */
@media (min-width:761px){
  .hero.hero-fitted::before{display:none}
  .frontalier .hero.hero-fitted .hero-photo{object-fit:cover;object-position:center;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 9%);mask-image:linear-gradient(90deg,transparent 0,#000 9%)}
}
/* 24.11 bis : contenu aligné sur les marges du header (plus de largeur max) ; fondu gauche plus marqué sur l'image du Pôle */
.wrap{width:calc(100% - 2 * var(--gutter))}
@media (min-width:761px){
  .frontalier .hero.hero-fitted .hero-photo{-webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.35) 12%,#000 30%);mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.35) 12%,#000 30%)}
}
/* 24.11 : titres de section du Pôle en pleine largeur, texte d'accompagnement en dessous */
.section-heading.split{display:block}
.section-heading.split h2{max-width:none}
.section-heading.split p{margin-top:1.25rem;max-width:62rem;font-size:1.1rem}
