:root {
  --shell-bg: #faf6ee;
  --shell-navy: #1b2440;
  --shell-gold: #b99044;
  --shell-muted: #8a8578;
  --shell-line: rgba(27, 36, 64, 0.1);
  --shell-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--navy, var(--shell-navy));
  background: rgba(250, 246, 238, 0.96);
  border-bottom: 1px solid var(--shell-line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-topbar .nav--inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  width: 100%;
  min-height: 4.55rem;
  padding: 0.7rem clamp(1rem, 4vw, 3.2rem);
}

.site-topbar .nav__lockup {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.18rem;
  color: inherit;
  text-decoration: none;
}

.site-topbar .nav__logo-img {
  display: block;
  width: auto;
  height: 26px;
}

.site-topbar .nav__baseline {
  color: var(--text-muted, var(--shell-muted));
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.site-topbar .nav__baseline::before {
  display: block;
  width: 2.4rem;
  height: 1px;
  margin: 0.12rem auto 0.24rem;
  background: var(--gold, var(--shell-gold));
  content: "";
}

.site-topbar .nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 1.7rem);
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.site-topbar .nav__links a {
  position: relative;
  display: block;
  padding: 0.25rem 0;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-topbar .nav__links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold, var(--shell-gold));
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--shell-ease);
}

.site-topbar .nav__links a:hover::after,
.site-topbar .nav__links a:focus-visible::after,
.site-topbar .nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-topbar .nav__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.site-topbar .nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 1.2rem;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    background-color 0.25s ease;
}

.site-topbar .nav__cta:hover,
.site-topbar .nav__cta:focus-visible {
  color: var(--bg, var(--shell-bg));
  background: var(--navy, var(--shell-navy));
}

.site-topbar .nav__burger {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 42px;
  margin-left: auto;
  padding: 9px;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
}

.site-topbar .nav__burger:focus-visible {
  border-color: var(--gold, var(--shell-gold));
  outline: 2px solid transparent;
}

.site-topbar .nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.site-topbar.nav-open .nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-topbar.nav-open .nav__burger span:nth-child(2) {
  opacity: 0;
}

.site-topbar.nav-open .nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-footer {
  display: grid;
  gap: 2rem;
  padding: 3rem clamp(1.2rem, 6vw, 5rem) 2.2rem;
  color: var(--navy, var(--shell-navy));
  background: transparent;
  border-top: 1px solid var(--shell-line);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(10rem, 0.75fr) minmax(15rem, 1fr) minmax(18rem, 1.35fr);
  gap: 2rem;
  align-items: center;
}

.site-footer__logo {
  display: block;
  width: auto;
  height: 34px;
}

.site-footer__copy {
  margin: 0;
  color: var(--text-muted, var(--shell-muted));
  font-size: 0.85rem;
  line-height: 1.7;
}

.site-footer__copy b {
  color: var(--navy, var(--shell-navy));
  font-weight: 400;
}

.site-footer__signature {
  color: var(--gold, var(--shell-gold));
  letter-spacing: 0.02em;
}

.site-footer__copy a,
.site-footer__bottom a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-footer__copy a:hover,
.site-footer__copy a:focus-visible,
.site-footer__bottom a:hover,
.site-footer__bottom a:focus-visible {
  color: var(--navy, var(--shell-navy));
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  color: var(--text-muted, var(--shell-muted));
  border-top: 1px solid var(--shell-line);
  font-size: 0.78rem;
}

.site-footer__version {
  letter-spacing: 0.06em;
}

@media (max-width: 1180px) {
  .site-topbar .nav--inner {
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
  }

  .site-topbar .nav__lockup {
    flex: 1 1 auto;
  }

  .site-topbar.nav-enhanced .nav__burger {
    display: flex;
  }

  .site-topbar .nav__links,
  .site-topbar .nav__actions {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .site-topbar .nav__links {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: flex-start;
    padding: 0.35rem 0;
  }

  .site-topbar .nav__links a {
    width: 100%;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(27, 36, 64, 0.07);
    font-size: 0.94rem;
    letter-spacing: 0.06em;
  }

  .site-topbar .nav__links a::after {
    display: none;
  }

  .site-topbar .nav__actions {
    order: 4;
    padding-bottom: 0.45rem;
  }

  .site-topbar .nav__cta {
    width: 100%;
    justify-content: center;
  }

  .site-topbar.nav-enhanced .nav__links,
  .site-topbar.nav-enhanced .nav__actions {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 0.35s var(--shell-ease),
      opacity 0.2s ease,
      padding 0.35s var(--shell-ease),
      visibility 0s linear 0.35s;
  }

  .site-topbar.nav-enhanced.nav-open .nav__links,
  .site-topbar.nav-enhanced.nav-open .nav__actions {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .site-topbar.nav-enhanced.nav-open .nav__links {
    max-height: 25rem;
    padding: 0.45rem 0 0.2rem;
  }

  .site-topbar.nav-enhanced.nav-open .nav__actions {
    max-height: 6rem;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 860px) {
  .site-topbar .nav--inner {
    position: relative;
    justify-content: center;
    min-height: 4.2rem;
    padding-inline: 1rem;
  }

  .site-topbar .nav__lockup {
    align-items: center;
    flex: 0 1 auto;
    width: calc(100% - 6rem);
    margin-inline: auto;
    text-align: center;
  }

  .site-topbar .nav__logo-img {
    height: 24px;
  }

  .site-topbar .nav__baseline {
    max-width: 100%;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .site-topbar .nav__baseline::before {
    display: block;
    width: 2rem;
    height: 1px;
    margin: 0.12rem auto 0.24rem;
    background: var(--gold, var(--shell-gold));
    content: "";
  }

  .site-topbar .nav__burger {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    margin-left: 0;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}

@media (min-width: 681px) and (max-width: 1180px) {
  .site-topbar .nav--inner {
    position: relative;
    justify-content: center;
    min-height: 4.2rem;
    padding-inline: clamp(1.5rem, 4vw, 3.2rem);
  }

  .site-topbar .nav__lockup {
    align-items: center;
    flex: 0 1 auto;
    width: calc(100% - 8rem);
    margin-inline: auto;
    text-align: center;
  }

  .site-topbar .nav__logo-img {
    height: 26px;
  }

  .site-topbar .nav__baseline {
    position: static;
    max-width: 100%;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-align: center;
    transform: none;
    white-space: nowrap;
  }

  .site-topbar .nav__baseline::before {
    display: block;
    width: 2.4rem;
    height: 1px;
    margin: 0.12rem auto 0.24rem;
    background: var(--gold, var(--shell-gold));
    content: "";
  }

  .site-topbar .nav__burger {
    position: absolute;
    top: 0.8rem;
    right: clamp(1.5rem, 4vw, 3.2rem);
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-topbar *,
  .site-topbar *::before,
  .site-topbar *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Loader Phipom — kit de marque, PHI Identite/loader-phipom ──
   Animation d'attente unique du site. Boucle 1,4 s.
   Fond navy : .ph-loader--inverse · sans texte : .ph-loader--sans-texte
   Taille : style="--taille:32px" · statique : .ph-loader--statique */
.ph-loader{--taille:48px;--encre:var(--navy,#1b2440);--duree:1.4s;
  display:inline-flex;flex-direction:column;align-items:center;
  gap:calc(var(--taille)*.26);color:var(--encre)}
.ph-loader--inverse{--encre:#faf6ee}
.ph-loader--sans-texte .ph-loader__texte{display:none}
.ph-loader__marque{width:var(--taille);height:auto;display:block}
.ph-loader__anneau{stroke-dasharray:568.63;stroke-dashoffset:-568.63;
  animation:ph-anneau var(--duree) cubic-bezier(.6,.04,.36,.96) infinite}
.ph-loader__feuille{fill:currentColor;transform-box:fill-box;transform-origin:0% 100%;
  opacity:0;animation:ph-feuille var(--duree) ease-out infinite}
.ph-loader__texte{margin:0;font:300 calc(var(--taille)*.27)/1 var(--font-body,"Poppins",system-ui,sans-serif);
  letter-spacing:.14em;white-space:nowrap}
.ph-loader__texte span{animation:ph-points var(--duree) ease-in-out infinite}
.ph-loader__texte span:nth-child(2){animation-delay:calc(var(--duree)*-.87)}
.ph-loader__texte span:nth-child(3){animation-delay:calc(var(--duree)*-.74)}
@keyframes ph-anneau{0%{stroke-dashoffset:-568.63}55%,72%{stroke-dashoffset:0}100%{stroke-dashoffset:568.63}}
@keyframes ph-feuille{0%,48%{opacity:0;transform:scale(.85)}60%,82%{opacity:1;transform:scale(1)}96%,100%{opacity:0}}
@keyframes ph-points{0%,15%{opacity:.3}35%,55%{opacity:1}75%,100%{opacity:.3}}
/* Décompte facultatif au centre de l'anneau : .ph-loader--compte
   La piste garde le O lisible pendant que l'anneau se trace et s'efface. */
.ph-loader__piste{display:none;fill:none;stroke:#B99044;stroke-width:19;opacity:.16}
.ph-loader--compte .ph-loader__piste{display:block}
.ph-loader__compte{fill:currentColor;font:400 74px/1 var(--font-body,"Poppins",system-ui,sans-serif);
  transition:opacity .4s ease}
.ph-loader--compte .ph-loader__anneau{animation-name:ph-anneau-compte}
@keyframes ph-anneau-compte{0%{stroke-dashoffset:-568.63}55%,72%{stroke-dashoffset:0}100%{stroke-dashoffset:568.63}}
.ph-loader--compte.is-fini .ph-loader__compte{opacity:0}
.ph-loader--statique .ph-loader__anneau,.ph-loader--statique .ph-loader__feuille,
.ph-loader--statique .ph-loader__texte span{animation:none}
.ph-loader--statique .ph-loader__anneau{stroke-dashoffset:0}
.ph-loader--statique .ph-loader__feuille{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .ph-loader__anneau,.ph-loader__feuille,.ph-loader__texte span{animation:none}
  .ph-loader__anneau{stroke-dashoffset:0}
  .ph-loader__feuille{opacity:1;transform:none}
}


/* ── Fond de page ────────────────────────────────────────────────────
   Couche unique et fixe derrière les 18 pages : l'ivoire prend la
   lumière, la marque se pose en filigrane or à gauche.
   Palette charte seule, aucun élément interactif au-dessus. */
body{background:transparent}
body::before{display:none}          /* ancienne trame de styles.css */

html{
  background-color:var(--shell-bg);
  background-image:
    radial-gradient(120% 90% at 8% -10%, rgba(255,255,255,.95), rgba(255,255,255,0) 55%),
    radial-gradient(90% 70% at 100% 105%, rgba(185,144,68,.09), rgba(185,144,68,0) 60%),
    linear-gradient(180deg,#faf6ee 0%,#f7f1e7 60%,#f3ecdf 100%);
  background-attachment:fixed;
}

html::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background-repeat:no-repeat;
  background-position:left -16vw center;
  background-size:auto min(120vh,900px);
  opacity:.07;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-130 -185 260 315'%3E%3Ccircle cx='0' cy='0' r='90.5' fill='none' stroke='%23B99044' stroke-width='19'/%3E%3Cg transform='translate(38,-92) scale(1.827) rotate(-6)'%3E%3Cpath fill='%23B99044' d='M0 0 C 0 -24 20 -42 46 -40 C 46 -16 24 4 0 0 Z'/%3E%3C/g%3E%3C/svg%3E");
}

@media (max-width:767px){
  html{background-attachment:scroll}
  html::before{background-position:left -22vw top 18vh;background-size:auto 52vh;opacity:.055}
}
