/* =====================================================================
   OR PRODUCT DESIGN — effets graphiques (essai n°2)
   Texte qui s'allume au défilement, barre de progression,
   visuels dévoilés, boutons « aimantés », titres révélés mot à mot.
   Pour revenir à l'état d'origine : retirer ce fichier, assets/js/effets.js
   et leurs deux lignes dans index.html. Rien d'autre n'en dépend.
   ===================================================================== */
:root{--fx-ease:cubic-bezier(.16,1,.3,1)}

/* ---- barre de progression de lecture, juste sous le bandeau du haut ---- */
.fx-progress{position:fixed;left:0;top:calc(var(--bh) * var(--u));z-index:61;width:100%;height:2px;
  background:linear-gradient(90deg,var(--gold-line),var(--gold));transform-origin:0 50%;transform:scaleX(0);pointer-events:none}
@media (max-width:1199px), (min-width:1200px) and (max-width:1439px) and (hover:none) and (pointer:coarse) and (orientation:landscape){
  .fx-progress{top:calc(80 * var(--u) + env(safe-area-inset-top, 0px))}
}

/* ---- bandeau du haut : fine ombre dès que la page défile ---- */
#bandeau{transition:box-shadow .4s ease}
html.fx-scrolled #bandeau{box-shadow:0 1px 0 rgba(112,101,81,.12),0 10px 30px rgba(0,0,0,.04)}

/* ---- menu du haut : au survol, un reflet doré part du milieu du mot vers ses deux extrémités
        et les lettres qu'il a parcourues deviennent dorées ; quand la souris s'en va, le doré
        s'estompe en douceur vers la couleur d'origine. La rubrique affichée prend le doré des titres ---- */
@property --sh{syntax:"<percentage>";inherits:false;initial-value:80%}
@property --gd{syntax:"<color>";inherits:false;initial-value:#000}
.b-nav a{--nc:#000;--gd:var(--nc);--sh:80%;transform:none!important;transition:--gd .8s ease,color .5s ease} /* pas de zoom au survol */
.b-nav a.is-on{--nc:#7f775e;color:#7f775e}
@supports (background-clip:text) or (-webkit-background-clip:text){
  .b-nav a{color:transparent;-webkit-background-clip:text;background-clip:text;
    background-image:linear-gradient(90deg,
      var(--nc) 0%, var(--nc) calc(50% - var(--sh) - 14%),
      #b8963e calc(50% - var(--sh) - 6%), #f6e6ad calc(50% - var(--sh)), #b8963e calc(50% - var(--sh) + 6%),
      var(--gd) calc(50% - var(--sh) + 12%), var(--gd) calc(50% + var(--sh) - 12%),
      #b8963e calc(50% + var(--sh) - 6%), #f6e6ad calc(50% + var(--sh)), #b8963e calc(50% + var(--sh) + 6%),
      var(--nc) calc(50% + var(--sh) + 14%), var(--nc) 100%)}
  .b-nav a.is-on{color:transparent}
}
@media (hover:hover){
  .b-nav a:hover{--gd:#a08848;transition:--gd .35s ease,color .5s ease;animation:fx-shine 1.1s cubic-bezier(.3,.1,.3,1) both}
}
@keyframes fx-shine{from{--sh:12%}to{--sh:80%}}

/* ---- accueil : apparition du logo, puis il s'éloigne quand la page monte ---- */
html.fx .home-logo{animation:fx-logo 1.8s var(--fx-ease) backwards;will-change:scale,opacity,filter}
html.fx .home-chev{animation:fx-fade 1s ease 1s backwards}
html.fx .home-chev .chev-svg{animation:fx-bob 2.6s ease-in-out 2.2s infinite}
@keyframes fx-logo{from{opacity:0;scale:.92;filter:blur(10px)}to{opacity:1;scale:1;filter:blur(0)}}
@keyframes fx-fade{from{opacity:0}to{opacity:1}}
@keyframes fx-bob{0%,100%{translate:0 0}50%{translate:0 calc(7 * var(--u))}}

/* ---- apparition au défilement ---- */
html.fx .rv{opacity:0;translate:0 26px;
  transition:opacity .9s ease var(--d,0s),translate 1.2s var(--fx-ease) var(--d,0s),scale 1.2s var(--fx-ease) var(--d,0s)}
html.fx .rv.in{opacity:1;translate:0 0}
html.fx .a-sep.rv{translate:none;scale:1 0;transform-origin:50% 0}
html.fx .a-sep.rv.in{scale:1 1}
@media (max-width:1199px), (min-width:1200px) and (max-width:1439px) and (hover:none) and (pointer:coarse) and (orientation:landscape){
  html.fx .a-sep.rv{scale:0 1;transform-origin:50% 50%}
}

/* ---- visuels dévoilés de bas en haut (rideau), l'image se resserre ---- */
html.fx .rv-clip{clip-path:inset(100% 0 0 0);transition:clip-path 1.3s var(--fx-ease) var(--d,0s)}
html.fx .rv-clip.in{clip-path:inset(0 0 0 0)}
html.fx .tuile.rv-clip img{scale:1.25;transition:filter .45s ease,transform 2s cubic-bezier(.2,.7,.2,1),scale 1.8s var(--fx-ease) var(--d,0s)}
html.fx .tuile.rv-clip.in img{scale:1}
html.fx img.c-photo.rv-clip{transition:clip-path 1.5s var(--fx-ease)}

/* ---- grands titres : chaque mot monte derrière un masque ---- */
.fx-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.12em;margin-bottom:-.12em}
.fx-wi{display:inline-block}
html.fx .fx-title .fx-wi{translate:0 110%;transition:translate 1.1s var(--fx-ease) calc(var(--i) * 70ms)}
html.fx .fx-title.in .fx-wi{translate:0 0}

/* ---- textes qui « s'allument » mot à mot au fil du défilement ---- */
.fx-sw{opacity:.22;transition:opacity .25s linear}
.fx-sw.on{opacity:1}

/* ---- éléments « aimantés » : glissement fluide ---- */
.fx-mag{transition:translate .6s var(--fx-ease),transform .3s var(--ease),opacity .35s ease}

/* === Menu haut droite — survol style Pentagram ===
   Police, taille, graisse et placement d'origine conservés (Archivo 100, 23.8u, positions --x).
   Seules les couleurs et l'effet de survol sont repris de pentagram.com :
   gris #767676 au repos, #1a1a1a au survol et sur la rubrique active, changement net sans animation. */

.b-nav a {
  color: #767676;
  background: none;                    /* retire le dégradé doré */
  animation: none;
  transition: opacity .5s cubic-bezier(.59, .01, .28, 1);
  transform: none !important;
}

.b-nav a:hover,
.b-nav a.is-on {
  color: #1a1a1a;
  background: none;
  animation: none;
}
