/* ==========================================================================
   PAVONOX — Feuille de style du site
   S'appuie exclusivement sur tokens.css
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

main { overflow-x: clip; }

body {
  margin: 0;
  background: var(--nuit);
  color: var(--ivoire);
  font-family: var(--font-texte);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.005em; }
h2 em { font-style: italic; font-weight: 300; color: var(--cendre); }
p { margin: 0; }

::selection { background: var(--bleu-paon); color: var(--nuit); }

:focus-visible {
  outline: 1px solid var(--or);
  outline-offset: 4px;
  border-radius: 4px;
}

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--s-4); top: -60px; z-index: 100;
  background: var(--ivoire); color: var(--nuit); padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-s); text-decoration: none; font-weight: 600;
}
.skip:focus { top: var(--s-4); }

/* --- Éléments communs ---------------------------------------------------- */

.etiquette {
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--or);
  font-weight: 500;
  margin-bottom: var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.etiquette::before {
  content: ""; width: 28px; height: var(--trait-fin);
  background: linear-gradient(90deg, transparent, var(--or));
}

.lead {
  font-size: var(--fs-lead);
  color: var(--cendre);
  max-width: 38rem;
  line-height: 1.7;
}

.section-tete { margin-bottom: var(--s-8); }
.section-tete h2 { margin-bottom: var(--s-5); }

.bouton {
  --bord: rgba(201, 164, 92, 0.55);
  position: relative;
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-pill);
  border: var(--trait-fin) solid var(--bord);
  color: var(--ivoire);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(12, 16, 19, 0.55);
  backdrop-filter: blur(6px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--t-micro) var(--ease-plume), color var(--t-micro);
}
.bouton::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-irise);
  opacity: 0;
  transition: opacity var(--t-moyen) var(--ease-plume);
}
.bouton::after {
  content: "→"; font-family: var(--font-texte);
  transition: transform var(--t-micro) var(--ease-plume);
}
.bouton:hover { border-color: transparent; color: var(--nuit); }
.bouton--icone::after { content: "↗"; }
.bouton--icone svg { flex: none; }
.bouton--icone:hover::after { transform: translate(2px, -2px); }
.bouton:hover::before { opacity: 1; }
.bouton:hover::after { transform: translateX(4px); }

/* --- En-tête ------------------------------------------------------------- */

.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--gutter);
  transition: background var(--t-moyen) var(--ease-plume), border-color var(--t-moyen);
  border-bottom: var(--trait-fin) solid transparent;
}
.entete.est-defile {
  background: rgba(6, 8, 9, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(34, 48, 58, 0.6);
}

.marque { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.marque__nom {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: var(--tracking-logo);
  text-transform: uppercase;
  padding-top: 2px;
}

.nav { display: flex; gap: clamp(var(--s-4), 3vw, var(--s-7)); }
.nav a {
  position: relative;
  text-decoration: none;
  font-size: var(--fs-small);
  color: var(--cendre);
  letter-spacing: 0.06em;
  padding: var(--s-2) 0;
  transition: color var(--t-micro);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: var(--trait-fin);
  background: var(--grad-irise);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-moyen) var(--ease-plume);
}
.nav a:hover { color: var(--ivoire); }
.nav a:hover::after { transform: scaleX(1); }

@media (max-width: 560px) {
  .nav a:not(:first-child) { display: none; }
  .marque__nom { font-size: 1.1rem; }
}

/* --- Héros : la roue ------------------------------------------------------ */

.heros {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  padding: 0 var(--gutter) clamp(6rem, 12vh, 9rem);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(30, 155, 196, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 92%, rgba(201, 164, 92, 0.08), transparent 70%),
    var(--nuit);
}

.heros__roue {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: max(100%, clamp(1180px, 178svh, 2100px));
  transform: translateX(-50%);
  pointer-events: none;
  will-change: transform;
}
.heros__roue > svg { width: 100%; height: auto; overflow: visible; }
.heros__roue--avant { z-index: 2; }
.heros__roue--avant svg { pointer-events: auto; }
.heros__roue--fond { z-index: 1; opacity: 0.4; filter: blur(0.4px); }

@media (max-width: 760px) {
  .heros__roue { width: 235%; bottom: 36%; }
}

/* Plumes : ouverture de la roue */
.roue .f {
  transform-box: view-box;
  transform-origin: 0 0;
  transform: rotate(0deg) scale(0.55);
  opacity: 0;
  transition:
    transform var(--t-roue) var(--ease-plume) calc(var(--i) * 45ms + 150ms),
    opacity calc(var(--t-roue) * 0.6) ease calc(var(--i) * 45ms + 150ms);
}
.roue.est-ouverte .f { transform: rotate(var(--a)) scale(1); opacity: 1; }

/* Balancement lent : la roue respire */
.roue.est-ouverte .f-souffle {
  transform-box: view-box;
  transform-origin: 0 0;
  animation: souffle 9s var(--ease-souffle) infinite alternate;
  animation-delay: calc(var(--i) * -0.6s);
}
@keyframes souffle {
  from { transform: rotate(-0.7deg); }
  to   { transform: rotate(0.7deg); }
}

.roue a { cursor: pointer; outline: none; }
.roue .f-hit { fill: transparent; pointer-events: all; }
.roue .f-barbes, .roue .f-rachis, .roue .f-ocelle { pointer-events: none; }
.roue .f-barbes { transition: opacity var(--t-moyen) var(--ease-plume); }
.roue .f-ocelle {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--t-moyen) var(--ease-plume), filter var(--t-moyen);
}
.roue a:hover .f-ocelle,
.roue a:focus-visible .f-ocelle,
.roue a.est-active .f-ocelle {
  transform: scale(1.16);
  filter: brightness(1.25) saturate(1.15);
}
.roue.a-survol a:not(:hover):not(:focus-visible) .f-barbes { opacity: 0.45; }

.heros__voile {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 38% at 50% 88%, rgba(6, 8, 9, 0.94) 0%, rgba(6, 8, 9, 0.75) 45%, transparent 100%),
    linear-gradient(to top, var(--nuit) 0%, transparent 22%),
    linear-gradient(to bottom, rgba(6, 8, 9, 0.6) 0%, transparent 14%);
}

.heros__poussiere { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.heros__poussiere i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--or);
  opacity: 0;
  animation: scintille 6s ease-in-out infinite;
}
@keyframes scintille {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--o, 0.5); }
}

.heros__texte {
  position: relative; z-index: 4;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  will-change: transform, opacity;
  pointer-events: none; /* laisse passer le survol vers les plumes */
}
.heros__texte a { pointer-events: auto; }
.heros__texte .etiquette::after {
  content: ""; width: 28px; height: var(--trait-fin);
  background: linear-gradient(90deg, var(--or), transparent);
}

.heros__titre {
  font-size: var(--fs-hero);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-right: -0.16em; /* compense l'espacement de la dernière lettre */
  line-height: 1;
  background: linear-gradient(180deg, var(--ivoire) 35%, #b9b2a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heros__accroche {
  margin-top: var(--s-5);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  color: var(--ivoire);
  opacity: 0.9;
  line-height: 1.35;
}

.heros__indice {
  margin: var(--s-5) 0 var(--s-6);
  min-height: 1.6em;
  font-size: var(--fs-small);
  color: var(--cendre);
  letter-spacing: 0.04em;
  transition: color var(--t-micro);
}
.heros__indice strong { color: var(--ivoire); font-weight: 600; }
.heros__indice em { font-style: normal; color: var(--or); }

/* Apparition du texte */
.heros__texte > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--t-reveal) var(--ease-plume), transform var(--t-reveal) var(--ease-plume);
}
.est-pret .heros__texte > * { opacity: 1; transform: none; }
.est-pret .heros__texte > :nth-child(2) { transition-delay: 250ms; }
.est-pret .heros__texte > :nth-child(3) { transition-delay: 450ms; }
.est-pret .heros__texte > :nth-child(4) { transition-delay: 650ms; }
.est-pret .heros__texte > :nth-child(5) { transition-delay: 800ms; }

.defiler {
  position: absolute; left: 50%; bottom: var(--s-5); z-index: 4;
  width: 1px; height: 56px; transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, rgba(201, 164, 92, 0.35));
  overflow: hidden;
}
.defiler span {
  position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--or);
  animation: goutte 2.4s var(--ease-plume) infinite;
}
@keyframes goutte { to { top: 110%; } }

@media (max-width: 760px) {
  .heros { padding-bottom: 5rem; }
  .heros__accroche br { display: none; }
}

/* --- Chiffres ------------------------------------------------------------ */

.chiffres {
  padding: var(--s-8) var(--gutter);
  border-top: var(--trait-fin) solid var(--filet);
  border-bottom: var(--trait-fin) solid var(--filet);
  background: linear-gradient(180deg, var(--nuit), var(--obsidienne));
}
.chiffres__liste {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: var(--max-w);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6);
}
.chiffres__liste li { text-align: center; }
.chiffres__liste strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 4.8rem);
  line-height: 1;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  background: var(--grad-irise);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chiffres__liste span { display: block; margin-top: var(--s-2); color: var(--cendre); font-size: var(--fs-small); letter-spacing: 0.04em; }
.chiffres__liste li:nth-child(2) { transition-delay: 120ms; }
.chiffres__liste li:nth-child(3) { transition-delay: 240ms; }

@media (max-width: 560px) {
  .chiffres__liste { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* --- Applications : le plumage ------------------------------------------ */

.applications {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-10) var(--gutter) var(--s-9);
}

.filtres {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  margin-bottom: var(--s-8);
}
.filtre {
  appearance: none; cursor: pointer;
  font: inherit; font-size: var(--fs-small);
  color: var(--cendre);
  background: transparent;
  border: var(--trait-fin) solid var(--filet);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  display: inline-flex; align-items: center; gap: var(--s-2);
  transition: color var(--t-micro), border-color var(--t-micro), background var(--t-micro);
}
.filtre span { font-size: 0.75rem; color: var(--brume); }
.filtre:hover { color: var(--ivoire); border-color: var(--cendre); }
.filtre[aria-pressed="true"] {
  color: var(--ivoire);
  border-color: var(--or);
  background: rgba(201, 164, 92, 0.08);
}
.filtre[aria-pressed="true"] span { color: var(--or); }

.plumage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-9) clamp(var(--s-5), 4vw, var(--s-8));
  align-items: start;
}
@media (max-width: 980px) { .plumage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plumage { grid-template-columns: 1fr; gap: var(--s-8); } }

.plume {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  will-change: transform;
}
.plume[hidden] { display: none; }

/* L'ocelle : l'image de l'application en est l'iris */
.plume__oeil {
  position: relative;
  display: block;
  width: min(86%, 300px);
  aspect-ratio: 1.18 / 1;
  border-radius: 50%;
  background: radial-gradient(ellipse closest-side,
    transparent 0 83%,
    #0F1647 83.5%,
    color-mix(in srgb, var(--bleu-paon) 70%, var(--nuit)) 87%,
    color-mix(in srgb, var(--emeraude) 70%, var(--nuit)) 91%,
    color-mix(in srgb, var(--or) 80%, var(--nuit)) 95%,
    rgba(138, 90, 47, 0.5) 97.5%,
    transparent 100%);
  transition: transform var(--t-moyen) var(--ease-plume), filter var(--t-moyen);
}
.plume__halo {
  position: absolute; inset: -25%;
  pointer-events: none;
  transition: transform 1.4s var(--ease-plume), opacity var(--t-moyen);
  opacity: 0.55;
}
.plume__halo svg { width: 100%; height: 100%; overflow: visible; }
.plume__halo path {
  stroke: var(--emeraude);
  stroke: color-mix(in srgb, var(--emeraude) 70%, var(--bleu-paon));
  stroke-width: 0.8;
  opacity: 0.75;
}

.plume__iris {
  position: absolute; inset: 8.5%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--obsidienne);
  box-shadow: 0 0 0 var(--trait-fin) rgba(201, 164, 92, 0.65), inset 0 0 24px rgba(6, 8, 9, 0.6);
}
.plume__iris img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-plume), filter var(--t-moyen);
  filter: saturate(0.85) brightness(0.9);
}
.plume__iris::after { /* reflet discret */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(ellipse 60% 40% at 35% 22%, rgba(237, 231, 218, 0.12), transparent 70%);
  pointer-events: none;
}
.plume__iris--vide {
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 60%, var(--indigo), #0A0F33 70%);
}
.plume__iris--vide span {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 4rem; color: var(--ivoire); opacity: 0.85;
}

.plume__rachis {
  width: var(--trait-fin);
  height: 54px;
  margin: var(--s-2) 0 var(--s-4);
  background: var(--grad-rachis);
  position: relative;
}
.plume__rachis::after {
  content: ""; position: absolute; left: 50%; bottom: -3px;
  width: 5px; height: 5px; border-radius: 50%;
  transform: translateX(-50%);
  background: var(--or); opacity: 0.6;
}

.plume__corps { max-width: 22rem; display: flex; flex-direction: column; align-items: center; }
.plume__cat {
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--brume);
  margin-bottom: var(--s-2);
}
.plume__titre { font-size: var(--fs-h3); font-weight: 500; margin-bottom: var(--s-3); }
.plume__desc { color: var(--cendre); font-size: 0.95rem; line-height: 1.65; }

.plume__tech {
  list-style: none; padding: 0; margin: var(--s-4) 0 var(--s-5);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2);
}
.plume__tech li {
  font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--cendre);
  border: var(--trait-fin) solid var(--filet);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.6rem;
}

.plume__lien {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ivoire);
  padding-bottom: 3px;
  background: linear-gradient(var(--or), var(--or)) left bottom / 100% var(--trait-fin) no-repeat;
  transition: background-size var(--t-moyen) var(--ease-plume), color var(--t-micro);
}
.plume__lien::after { content: "↗"; color: var(--or); transition: transform var(--t-micro) var(--ease-plume); }
.plume__lien:hover { color: #fff; background-image: var(--grad-irise); }
.plume__lien:hover::after { transform: translate(2px, -2px); }

/* Survol d'une plume */
.plume:hover .plume__oeil,
.plume:focus-within .plume__oeil { transform: translateY(-6px); filter: brightness(1.12) saturate(1.1); }
.plume:hover .plume__halo,
.plume:focus-within .plume__halo { opacity: 1; transform: rotate(4deg) scale(1.04); }
.plume:hover .plume__iris img,
.plume:focus-within .plume__iris img { transform: scale(1.07); filter: none; }

/* Plume ciblée depuis la roue */
.plume.est-ciblee .plume__oeil { animation: eclat 1.6s var(--ease-plume); }
@keyframes eclat {
  0% { filter: brightness(1); }
  30% { filter: brightness(1.6) saturate(1.3); }
  100% { filter: brightness(1); }
}

/* --- Approche ------------------------------------------------------------ */

.approche {
  position: relative;
  padding: var(--s-10) var(--gutter);
  background:
    radial-gradient(ellipse 50% 60% at 85% 40%, rgba(35, 164, 126, 0.07), transparent 70%),
    var(--obsidienne);
  border-top: var(--trait-fin) solid var(--filet);
  overflow: hidden;
}
.approche__plume {
  position: absolute; right: max(4%, calc(50% - 700px)); top: 16%;
  width: clamp(160px, 22vw, 300px);
  opacity: 0.5;
  pointer-events: none;
  transform: rotate(14deg);
}
.approche__plume svg { width: 100%; height: auto; overflow: visible; }
.approche__contenu { position: relative; max-width: var(--max-w); margin: 0 auto; }
.approche .section-tete { max-width: 44rem; }

.principes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--s-5), 4vw, var(--s-8));
}
.principes li {
  position: relative;
  padding-top: var(--s-6);
  border-top: var(--trait-fin) solid var(--filet);
}
.principes li::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: var(--trait-fin);
  background: var(--grad-irise);
}
.principes__num {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 1.4rem; color: var(--or);
}
.principes h3 { font-size: var(--fs-h3); margin: var(--s-2) 0 var(--s-3); }
.principes p { color: var(--cendre); }
.principes li:nth-child(2) { transition-delay: 120ms; }
.principes li:nth-child(3) { transition-delay: 240ms; }

@media (max-width: 820px) {
  .principes { grid-template-columns: 1fr; }
  .approche__plume { opacity: 0.25; }
}

/* --- Contact ------------------------------------------------------------- */

.contact {
  position: relative;
  padding: var(--s-10) var(--gutter);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 38% 55% at 50% 52%, rgba(30, 155, 196, 0.09), rgba(35, 164, 126, 0.04) 50%, transparent 75%),
    radial-gradient(ellipse 20% 30% at 50% 52%, rgba(201, 164, 92, 0.05), transparent 70%);
}
.contact__embleme { width: 56px; height: auto; margin: 0 auto var(--s-6); opacity: 0.95; }
.contact > div { display: flex; flex-direction: column; align-items: center; }
.contact .lead { margin-inline: auto; }
.contact h2 { margin-bottom: var(--s-5); }
.contact .etiquette::after {
  content: ""; width: 28px; height: var(--trait-fin);
  background: linear-gradient(90deg, var(--or), transparent);
}
.contact__actions { margin-top: var(--s-7); display: flex; gap: var(--s-4); flex-wrap: wrap; justify-content: center; }

/* --- Pied de page -------------------------------------------------------- */

.pied {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-6) var(--gutter);
  border-top: var(--trait-fin) solid var(--filet);
  font-size: var(--fs-small);
  color: var(--brume);
}
.pied__marque {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-display); letter-spacing: var(--tracking-logo); text-transform: uppercase;
  color: var(--ivoire);
}
.pied__liens { display: flex; gap: var(--s-5); }
.pied a { color: var(--cendre); text-decoration: none; border-bottom: var(--trait-fin) solid var(--filet); }
.pied a:hover { color: var(--ivoire); border-color: var(--or); }

/* --- Apparitions au défilement ------------------------------------------ */

.revele {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-reveal) var(--ease-plume), transform var(--t-reveal) var(--ease-plume);
}
.revele.est-visible { opacity: 1; transform: none; }
.plume.revele { transform: translateY(40px); }
.plume.revele.est-visible { transform: none; }
/* Le parallaxe utilise la propriété `translate`, indépendante de `transform`. */

.no-js .revele, .no-js .heros__texte > * { opacity: 1; transform: none; }

/* --- Mouvement réduit ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .revele { opacity: 1; transform: none; }
}
