/* Charte commune : largeur, navigation, boutons, pied de page et bandeaux. */
:root {
  /* Largeur générale, marges intérieures comprises. Partagée par toutes les pages FR/EN. */
  --wrap:1200px;
  --text-ui:1rem;
  --radius-card:5px;
  --etoile:url("/assets/etoile-constellation.svg") center/contain no-repeat;
  --etoile-compacte:url("/assets/etoile-constellation.svg#compacte") center/contain no-repeat;
  --etoile-pleine:url("/assets/etoile-constellation.svg#pleine") center/contain no-repeat;
}
/* Rayon commun des cartouches, avec raccord entre portraits et fonds de fiche. */
.home-expertise-note,.home-med-topics li,.home-pillars,.home-firm-copy,.home-firm img,
.home-mosaic article,.home-site-grid .site,.home-client-card,.home-orion .emile,
.home-featured-post,.person,.blog-card,.blog-card-image img {border-radius:var(--radius-card)}
.person .portrait-link {border-radius:var(--portrait-start,var(--radius-card)) var(--portrait-end,var(--radius-card)) 0 0}
.person .person-copy {border-radius:0 0 var(--radius-card) var(--radius-card)}

@media (max-width:640px) {
  .page-hero:not(.directory-hero) > .wm path {fill-opacity:.15}
}
/* Texte de navigation et de commande partagé par les pages FR/EN. */
.firm-header :is(.nav,.menu-mobile) :is(a,summary),
.ft :is(.ft-group h2,.ft-group a,.ft-bottom),
:is(.chips button,.opt,.lien-retour) {font-size:var(--text-ui)}

/* Mobile footer: group titles and touch-friendly navigation links. */
@media (max-width:540px) {
  .ft .ft-group {padding-top:20px}
  .ft .ft-group h2 {margin-bottom:4px;line-height:1.3;font-weight:600;letter-spacing:normal;text-transform:none}
  .ft .ft-group a {display:flex;align-items:center;min-height:44px;margin-top:0;font-weight:400;color:var(--txt-nuit)}
  .ft .ft-group a:is(:hover,:focus-visible) {color:var(--bleu-clair)}
}
.firm-header .hd {width:calc(min(100%, var(--wrap)) - 64px);max-width:none;margin-inline:auto;padding-inline:0;min-height:96px;gap:32px}
.firm-header .hd>nav {padding-left:0}
.firm-header .hd>nav::before,.firm-header .logo>svg,.firm-header .nav .lang::before {display:none}
.firm-header .logo img {width:clamp(180px,14.5vw,220px);height:auto}
.firm-header .hd {--nav-gap:clamp(8px,1vw,16px)}
.firm-header .nav {justify-content:flex-start;gap:var(--nav-gap)}
.firm-header .nav>.cta {margin-inline-start:auto}
@media(min-width:1101px){
  .firm-header .hd {column-gap:var(--nav-gap)}
  .firm-header .nav>li:first-child {margin-inline-start:auto}
}
.firm-header .nav .cta a {margin:0}
.firm-header .nav .lang {padding:0;margin:0}
.firm-header .nav .lang a {padding:10px;background:#f4f4f6;color:var(--encre);border-radius:4px}
.firm-nav details {position:relative}
.firm-nav summary {list-style:none;cursor:pointer;padding:10px 3px;white-space:nowrap}
.firm-nav summary::-webkit-details-marker {display:none}
.firm-nav summary::after {content:"▾";margin-left:.4em;font-size:.8em}
.firm-nav details[open] summary::after {content:"▴"}
.firm-header .nav .firm-nav ul {position:absolute;z-index:3;top:100%;left:0;min-width:180px;list-style:none;margin:0;padding:8px;background:white;border:1px solid var(--trait);border-radius:8px;box-shadow:0 10px 30px #10153612}
.firm-header .firm-nav ul a {display:block}
.firm-header .menu-mobile .firm-nav details {border-bottom:1px solid var(--trait)}
.firm-header .menu-mobile .firm-nav summary {display:flex;align-items:center;gap:10px;padding:12px 4px}
.firm-header .menu-mobile .firm-nav summary::after {content:"";width:7px;height:7px;margin:0;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-1px) rotate(45deg)}
.firm-header .menu-mobile .firm-nav details[open] summary::after {transform:translateY(2px) rotate(225deg)}
.firm-header .menu-mobile .firm-nav ul {padding:0 0 0 20px}
.firm-header .menu-mobile .firm-nav li:last-child>a {border-bottom:0}
.firm-header .menu-mobile .cta a {font-weight:600;color:var(--bleu)}
.firm-header :focus-visible,.home-band :focus-visible {outline:3px solid #4369ff;outline-offset:4px}
@media(max-width:1100px){
  .firm-header {display:flex;flex-direction:column;max-height:100vh;max-height:100dvh}
  .firm-header .hd {flex:none}
  .firm-header .menu-mobile {overflow-y:auto;overscroll-behavior-y:contain}
}
.home-button {--fill:var(--orange);display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:10px 24px;border-radius:99px;background:var(--fill);color:var(--encre);font-weight:600;font-size:var(--text-ui);line-height:1.35;text-align:center}
/* Même silhouette que le bouton Espace clients, sur fonds clairs et sombres. */
.home-button.blue {--pill-bg:var(--accent);--pill-hover:#193fc9;--pill-text:var(--blanc)}
.home-button.ink {--pill-bg:var(--encre);--pill-hover:#293562;--pill-text:var(--blanc)}
.home-button.white {--pill-bg:var(--blanc);--pill-hover:#e9eeff}
.home-mediation,.brand-hero {--pill-focus:var(--blanc)}
:is(.firm-header .nav a.client-area, .firm-header .menu-mobile a.client-area, .home-button.lavender, .home-button.blue, .home-button.ink, .home-button.white, .home-button.outline, .btn.sec) {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:44px;padding:10px clamp(15px,1.4vw,27px);border:var(--pill-border,0);border-radius:999px;
  background:var(--pill-bg,#dbe0ff);color:var(--pill-text,var(--encre));font:600 var(--text-ui)/1.5 var(--sans);letter-spacing:normal;text-align:center;
  box-shadow:none;transform:none;transition:background-color .15s;
  &:not(.btn.sec) {align-self:center}
  &:not(:disabled):hover {background:var(--pill-hover,#e9eeff);color:var(--pill-text,var(--encre));box-shadow:none;transform:none}
  &:focus-visible {outline:2px solid var(--pill-focus,var(--bleu));outline-offset:3px}
}
.home-button.outline {
  --pill-bg:transparent;--pill-hover:rgb(255 255 255 / 10%);--pill-text:var(--blanc);
  --pill-border:1px solid currentColor;
}
/* Socle du bouton orange, commun aux liens de contact et aux actions Orion. */
.orion-talk, .home-button.orange, .btn:not(.sec, .emile-saisie .btn), .firm-header .nav .cta a {
  display:inline-flex;align-self:center;align-items:center;justify-content:center;gap:9px;
  min-height:44px;padding:0 20px;border:0;border-radius:999px;
  background:var(--orange);color:var(--encre);cursor:pointer;
  font:600 var(--text-ui)/1.5 var(--sans);letter-spacing:normal;text-align:center;
  box-shadow:none;transform:none;transition:none;
  &:hover {background:var(--orange-2);color:var(--encre);box-shadow:none;transform:none}
  &:focus-visible {outline:3px solid var(--orange-focus,var(--bleu));outline-offset:4px}
  &:disabled {background:var(--orange);cursor:default}
}
/* Le header historique dessinait une étoile sur son lien de contact. */
.firm-header .nav .cta a::before {content:none}
.orion-talk, .cand .btn[type=submit] {--etoile-bouton:url("/assets/etoile-bouton.svg") center/contain no-repeat;--etoile-bouton-taille:12px}
.orion-talk, .btn:not(.sec, .emile-saisie .btn) {
  padding-inline-start:18px;
  &::before {
    content:"";flex:none;width:var(--etoile-bouton-taille,11px);aspect-ratio:1;background:currentColor;
    clip-path:none;mask:var(--etoile-bouton,var(--etoile-compacte));
    transform:none;
  }
  &:hover::before {transform:none}
  @media (prefers-reduced-motion:no-preference) and (hover:hover) {
    &::before {transition:transform .5s cubic-bezier(.2,.8,.2,1)}
    &:not(:disabled):hover::before {transform:rotate(90deg)}
  }
}
.nuit,.bleu,.page-hero,.home-sites {--orange-focus:var(--blanc);--pill-focus:var(--blanc)}
.emile-saisie .btn:hover {transform:none}

.page-hero.brand-hero,.home-band:is(.home-mediation,.home-sites),.join-collective {
  background-color:var(--encre);
  background-image:url(./grain-bleu-nuit.png),var(--night-halos);
  color:var(--blanc)
}
.home-mediation,.brand-hero--mediation {
  --night-halos:
    radial-gradient(ellipse at 89% 108%,#36425e 0%,transparent 34%),
    linear-gradient(155deg,transparent 5%,#343b58 21%,#162558 34%,transparent 54%),
    linear-gradient(172deg,#0d1131 12%,#101949 70%,#111d53);
}
.page-hero.brand-hero {--accent:#9dadff;position:relative}
.brand-hero--team,.brand-hero--join,.join-collective {
  --night-halos:
    radial-gradient(ellipse 47% 108% at 84% 42%,#2b3d68,transparent 76%),
    linear-gradient(150deg,#0d1238 18%,#121b46 65%,#0c1135);
}
.join-collective {--pill-focus:var(--blanc)}
.join-collective .deux {grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0;border:0}
.join-collective .deux > div:first-child {padding-inline-end:clamp(24px,4vw,56px)}
.join-collective .deux > div + div {border-inline-start:1px solid rgb(255 255 255 / 25%);padding-inline-start:clamp(24px,4vw,56px)}
.join-collective .deux .eyebrow,.join-collective .deux p {color:var(--txt-nuit)}
.join-collective .deux .home-button {margin-inline-end:auto;margin-block-start:10px}
@media(max-width:800px) {
  .join-collective .deux {grid-template-columns:minmax(0,1fr)}
  .join-collective .deux > div:first-child {padding-inline-end:0}
  .join-collective .deux > div + div {border-inline-start:0;border-block-start:1px solid rgb(255 255 255 / 25%);padding:24px 0 0;margin-block-start:24px}
}
.brand-hero--blog {
  --night-halos:
    radial-gradient(ellipse 55% 108% at 74% 12%,#263961,transparent 76%),
    linear-gradient(145deg,#0d1238 25%,#18234e 66%,#0d1238);
}
.page-hero.brand-hero > .wrap {padding-block:clamp(36px,5vw,76px);gap:16px}
.page-hero.brand-hero .eyebrow {letter-spacing:normal;color:var(--blanc);font-size:11px;font-weight:450;line-height:1.4;text-transform:uppercase}
.page-hero.brand-hero h1 {font-size:clamp(34px,4.25vw,60px);max-inline-size:20ch;text-wrap:pretty;font-weight:500;line-height:1.14;letter-spacing:-.025em}
.page-hero.brand-hero--join h1 {max-inline-size:23ch;text-wrap:balance}
.page-hero.brand-hero .lead {max-inline-size:60ch;font-size:1rem;line-height:1.5}
.page-hero.brand-hero > .wm {
  width:clamp(200px,38vw,560px);height:auto;aspect-ratio:1;
  right:clamp(-185px,-10vw,-70px);top:50%;translate:0 -50%;
}
.page-hero.brand-hero > .wm path {fill:var(--accent);fill-opacity:.18}
.brand-hero--mediation > .wm {color:var(--accent);stroke-opacity:.28}
.page-hero.brand-hero .actions {gap:12px;margin-top:8px}
.page-hero.brand-hero .home-button {max-inline-size:100%;cursor:pointer}
@media (min-width:370px) {
  .brand-hero--mediation h1 .acc {display:block}
}
@media (max-width:640px) {
  .page-hero.brand-hero > .wm {opacity:.55;right:-115px}
}
.page-hero.brand-hero h1 .acc {font-weight:700;color:var(--accent)}

@media(max-width:1100px){
  .firm-header .hd {gap:20px}
}
@media(min-width:541px) and (max-width:900px){
  .ft .ft-group h2 {line-height:1.3;letter-spacing:normal;text-transform:none}
}
@media(max-width:700px){
  .firm-header .hd {width:calc(100% - 40px);min-height:72px;justify-content:space-between}
}

.skip{position:fixed;left:20px;top:-100px;z-index:100;background:var(--blanc);padding:12px 20px}
.skip:focus{top:12px}
.skip:focus-visible{outline:3px solid var(--bleu);outline-offset:5px}
