/* Brand : qui est derrière PAOLIA, d'où vient le nom, les huit valeurs sur le gouvernail.
   Trois chapitres sur un fond d'encre : le parcours (frise), le nom (scène épinglée, pilotée par le défilement), le gouvernail interactif (brand.js).
   Mouvement : transform et opacité seulement. Sans JavaScript ou avec « réduire les animations », tout est lisible et immobile. */
.brand {
  --br-fond: #555947;      /* le vert d'action du logo et des boutons (--vt-vert-action-fonce), assombri d'un peu d'encre : Pérola dessus 6,2:1. Les bandes voisines sont claires (Bege rosé de « Notre approche », blanc de la FAQ) : c’est le seul aplat sombre de la page */
  --br-texte: var(--vt-perola); --br-doux: rgb(240 237 228 / .8); --br-trait: rgb(240 237 228 / .22);
  --br-accent: var(--vt-bege);      /* Bege rosé : 5,1:1, pour les petits textes, les traits et la valeur active */
  --br-ia: #D1B29B;      /* Terracota éclairci : « IA », en grand seulement (3,6:1) */
  --br-mer: var(--vt-bege);      /* la houle */
  position: relative; background: var(--br-fond); color: var(--br-texte); border-top: 0; overflow-x: clip;
}
.brand ::selection { background: var(--br-accent); color: var(--br-fond); }
.brand :focus-visible { outline-color: var(--br-texte); }
.brand p { color: inherit; }
body.vt .brand h2, body.vt .brand h3 { color: var(--br-texte); }
body.vt .brand h2 { margin: 0 0 1.4rem; max-width: 15ch; font-size: clamp(2.1rem, 3.9vw, 3.9rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 500; color: var(--br-texte); }
.brand .eyebrow { color: var(--br-doux); }
.brand .eyebrow i { background: var(--br-accent); }
.br-lead { margin: 0 0 1.4rem; max-width: 44ch; font-size: 1.0625rem; line-height: 1.65; color: var(--br-doux); }
.br-ch { padding: clamp(84px, 11vw, 176px) var(--vt-marge); }
.br-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); width: min(1560px, 100%); margin: 0 auto; }
.br-tete { align-self: start; position: sticky; top: calc(var(--vt-barre) + 32px); }

/* ---------- I. Parcours : une frise dont le trait se dessine au fil du défilement ---------- */
.br-quand { display: block; margin: 0 0 .5rem; font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--br-accent); }
.br-mot-fin { margin: clamp(1.4rem, 3vw, 2.4rem) 0 0; padding-top: clamp(1.4rem, 3vw, 2.4rem); border-top: 1px solid var(--br-trait); }
.br-citation { margin: 0 0 1.2rem; max-width: 30ch; font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.br-signature { margin: 0; font-size: .875rem; color: var(--br-doux); }
.br-signature b { color: var(--br-texte); font-weight: 500; }

/* ---------- II. Le nom : scène épinglée ; la progression --p (0 à 1) vient de brand.js ---------- */
.br-nom { position: relative; padding: 0; }
.br-scene { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(1rem, 3vh, 2.4rem); padding: calc(var(--vt-barre) + .6rem) var(--vt-marge) calc(clamp(34px, 7vh, 64px) + 1.4rem); overflow: hidden; }
.br-nom-tete { align-self: flex-start; width: min(1560px, 100%); margin: 0 auto; }
.br-mot { display: block; width: min(88vw, 1120px, max(17.5rem, calc((100svh - 23rem) * 5.287))); height: auto; overflow: visible; fill: var(--br-texte); }      /* la hauteur du nom suit celle de l'écran (rapport 5.29) : le nom et les inscriptions du dessous tiennent toujours ensemble */
.br-ia path, .br-pied { fill: var(--br-ia); }
.br-pied { opacity: 1; }
.br-legendes { display: grid; width: min(44rem, 100%); text-align: center; }
.br-legende { margin: 0; padding: 0; }
body.vt .brand .br-legende h3 { margin: 0 0 .7rem; font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--br-accent); }
.br-legende p { margin: 0 auto; max-width: 40ch; font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.4; letter-spacing: -.012em; color: var(--br-texte); }
.br-legende p small { display: block; margin-top: .8rem; font-size: .9375rem; letter-spacing: 0; color: var(--br-doux); }
.br-cap { margin: 0; font-size: clamp(1.7rem, 3.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 500; text-align: center; }
.br-cap em { font-style: normal; color: var(--br-accent); }
.br-mer { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(34px, 7vh, 64px); overflow: hidden; pointer-events: none; }
.br-mer svg { position: absolute; left: 0; bottom: 0; width: 200%; max-width: none; height: 100%; }
.br-mer path { opacity: .6; fill: none; stroke: var(--br-mer); stroke-width: 1; vector-effect: non-scaling-stroke; }
.br-mer svg:nth-child(2) { opacity: .45; bottom: -9px; }
.br-defiler { position: absolute; left: 50%; bottom: clamp(44px, 9vh, 78px); display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; transform: translateX(-50%); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--br-doux); }
.br-defiler::after { content: ""; width: 1px; height: 28px; background: currentColor; transform-origin: 50% 0; }

/* version animée : la scène est épinglée sur 3,4 écrans ; seule la page le décide (classe posée par brand.js) */
.brand.br-anim .br-nom { height: 340svh; }
.brand.br-anim .br-scene { position: sticky; top: 0; height: 100svh; min-height: 0; }
.brand.br-anim .br-legendes > .br-legende { grid-area: 1 / 1; align-self: start; }
.brand.br-anim .br-legendes { min-height: 12.5rem; }
.brand.br-anim .br-cap { position: relative; min-height: 1.1em; }
.brand.br-anim .br-defiler::after { animation: br-fil 2.2s var(--vt-douce) infinite; }
@keyframes br-fil { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.brand.br-anim .br-mer svg { animation: br-houle 34s linear infinite; }
.brand.br-anim .br-mer svg:nth-child(2) { animation-duration: 52s; animation-direction: reverse; }
@keyframes br-houle { to { transform: translateX(-50%); } }
html:not(.js) .br-legendes, .brand:not(.br-anim) .br-legendes { gap: 2rem; }

/* ---------- III. Le gouvernail interactif ---------- */
.br-barre { overflow: hidden; padding-top: clamp(40px, 6vw, 96px); }
.br-grille { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(28px, 5vw, 96px); width: min(1560px, 100%); margin: 0 auto; }
.br-droite { min-width: 0; }
.br-barre-tete { margin: 0 0 clamp(1.6rem, 3.4vw, 3rem); }
.br-barre-tete .br-lead { margin-bottom: 0; }
.br-roue { position: relative; width: min(100%, 88svh, 840px); aspect-ratio: 1; margin: 0 auto; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; border-radius: 4px; outline-offset: 6px; }
.br-roue.prise { cursor: grabbing; }
/* couronne de graduation : un compas de marine autour du gouvernail ; elle tourne avec lui, le chiffre sous la poignée du haut est le cap */
.br-couronne { position: absolute; inset: 19%; color: var(--br-texte); will-change: transform; pointer-events: none; }
.br-couronne svg { display: block; width: 100%; height: 100%; overflow: visible; }
.br-cc { fill: none; stroke: var(--br-trait); stroke-width: 1; vector-effect: non-scaling-stroke; stroke: rgb(240 237 228 / .5); }
.br-tk, .br-tm, .br-tM { fill: none; stroke: currentColor; vector-effect: non-scaling-stroke; }
.br-tk { stroke-width: 1; opacity: .38; }
.br-tm { stroke-width: 1; opacity: .7; }
.br-tM { stroke-width: 1.6; }
.br-nb text { fill: currentColor; font: 500 5.2px "Inter", sans-serif; letter-spacing: .08px; opacity: .6; font-variant-numeric: tabular-nums; transition: opacity .25s ease, fill .25s ease; }
.br-nb text.actif { fill: var(--br-accent); opacity: 1; }
.br-barre-roue { position: absolute; inset: 25%; color: var(--br-texte); will-change: transform; transform: rotate(var(--rot, 0deg)); pointer-events: none; }
.br-barre-roue svg { display: block; width: 100%; height: 100%; fill: currentColor; overflow: visible; }
.br-liens { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.br-liens line { stroke: var(--br-texte); stroke-width: 1; vector-effect: non-scaling-stroke; }
.br-liens circle { fill: var(--br-fond); stroke: var(--br-texte); stroke-width: 1; vector-effect: non-scaling-stroke; }
.br-liens .actif line { stroke: var(--br-accent); }
.br-liens .actif circle { fill: var(--br-accent); stroke: var(--br-accent); }
.br-val { position: absolute; left: 0; top: 0; z-index: 2; min-height: 44px; display: inline-flex; align-items: center; padding: 0 .35rem; border: 0; background: none; color: var(--br-texte); font: 500 clamp(.66rem, 1.05vw, .9rem)/1 "Inter", sans-serif; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; cursor: pointer; opacity: var(--o, 1); will-change: transform, opacity; -webkit-tap-highlight-color: transparent; }
.br-val[aria-current="true"] { color: var(--br-accent); }
.br-val i { font-style: normal; margin-right: .5em; font-size: .75em; letter-spacing: .06em; color: var(--br-doux); font-variant-numeric: tabular-nums; }
.br-val[aria-current="true"] i { color: var(--br-accent); }
.br-panneau { position: relative; display: flex; flex-direction: column; justify-content: flex-start; }
.br-num { margin: 0 0 1rem; font-size: .8125rem; letter-spacing: .12em; color: var(--br-doux); font-variant-numeric: tabular-nums; }
.br-num b { color: var(--br-accent); font-weight: 500; }
.br-cap-lu { margin-left: 1.2em; padding-left: 1.2em; border-left: 1px solid var(--br-trait); text-transform: uppercase; }
.br-cap-lu b { display: inline-block; min-width: 3ch; text-align: right; }
body.vt .brand .br-valeur { margin: 0 0 1.2rem; font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.04em; font-weight: 500; color: var(--br-texte); }
.br-def { margin: 0 0 2rem; max-width: 34ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--br-doux); }
.br-pas { display: flex; align-items: center; gap: .8rem; }
.br-pas button { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--br-trait); background: none; color: var(--br-texte); font: 400 1.25rem/1 "Inter", sans-serif; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease-out; }
.br-pas button:active { transform: scale(.94); }
.br-pas span { font-size: .8125rem; color: var(--br-doux); }
.br-liste-sansjs { display: none; margin: 1.4rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--br-trait); }
.br-liste-sansjs li { padding: 1rem 0; border-bottom: 1px solid var(--br-trait); color: var(--br-doux); }
.br-liste-sansjs b { color: var(--br-texte); font-weight: 500; }
html:not(.js) .br-liste-sansjs { display: block; }
html:not(.js) .br-panneau, html:not(.js) .br-roue { display: none; }
.br-fin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem 2.4rem; width: min(1560px, 100%); margin: clamp(2.4rem, 6vw, 5rem) auto 0; padding-top: clamp(1.6rem, 3vw, 2.6rem); border-top: 1px solid var(--br-trait); }
.br-fin p { margin: 0; max-width: 24ch; font-size: clamp(1.4rem, 2.6vw, 2.4rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 500; }
.brand .btn-vt { background: var(--br-texte); border-color: var(--br-texte); color: var(--br-fond); }
.brand .btn-vt-clair { background: transparent; border-color: var(--br-texte); color: var(--br-texte); }
@media (hover: hover) and (pointer: fine) {
  .br-pas button:hover { background: var(--br-texte); border-color: var(--br-texte); color: var(--br-fond); }
  .br-val:hover { color: var(--br-accent); }
  .brand .btn-vt:hover { background: var(--br-accent); border-color: var(--br-accent); color: var(--br-fond); }
}

.br-symboles { position: absolute; width: 0; height: 0; overflow: hidden; }
/* entrée du gouvernail : tant qu'il n'est pas à l'écran, il attend ; ensuite il tourne et les libellés se lèvent un à un (seulement si le script de mouvement est actif) */
html.br-attend .br-roue:not(.pret) .br-val { opacity: 0 !important; }
html.br-attend .br-roue:not(.pret) .br-barre-roue, html.br-attend .br-roue:not(.pret) .br-liens, html.br-attend .br-roue:not(.pret) .br-couronne { opacity: 0; }
.br-barre-roue, .br-liens, .br-couronne { transition: opacity .9s var(--vt-elan); }
.br-roue.pret .br-val { animation: br-leve .9s var(--vt-elan) backwards; animation-delay: calc(var(--i) * 90ms + 250ms); }
@keyframes br-leve { from { opacity: 0; } }

/* ---------- Bande du haut : le gouvernail remplace le lien « À propos » ; il tourne doucement avec la page (brand.js) ---------- */
.hd-nav .hd-helm { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; margin: -6px 0; color: var(--vt-logo); }
.hd-nav a.hd-helm:not(.hd-co)::after { content: none; }
.hd-helm svg { display: block; width: 26px; height: 26px; fill: currentColor; transform: rotate(var(--hd-rot, 0deg)); transition: transform .5s var(--vt-elan), color .3s ease; }
.hd-helm.actif { color: var(--vt-terracota); }
@media (hover: hover) and (pointer: fine) { .hd-helm:hover svg { transform: rotate(calc(var(--hd-rot, 0deg) + 90deg)) scale(1.12); color: var(--vt-terracota); } }
@media (max-width: 1023px) { .hd-nav .hd-helm { width: 48px; height: 48px; margin: .2rem 0; justify-content: flex-start; } .hd-helm svg { width: 34px; height: 34px; } }

@media (max-width: 1023px) {
  .br-in, .br-grille { grid-template-columns: 1fr; }
  .br-droite { display: contents; }
  .br-barre-tete { order: -1; }
  .br-roue { order: 0; }
  .br-panneau { order: 1; }
  .br-in { gap: 2.4rem; }
  .br-tete { position: static; }
  .br-panneau { min-height: 0; align-items: flex-start; text-align: left; }
  .br-roue { width: min(100%, 560px); }
}
@media (max-width: 600px) {
  .br-nb { display: none; }
  .br-roue { width: calc(100% + 2 * var(--vt-marge)); max-width: none; margin-inline: calc(var(--vt-marge) * -1); }      /* le gouvernail prend toute la largeur de l'écran : les libellés ne sont plus coupés */
  .br-couronne { inset: 23%; } .br-barre-roue { inset: 27%; }
  .br-val { font-size: .62rem; letter-spacing: .03em; padding: 0 .2rem; }
  .br-val i { display: none; }
  .br-fin { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .brand.br-anim .br-mer svg, .brand.br-anim .br-defiler::after { animation: none; }
  .hd-helm svg { transition: none; }
}
