/* ==========================================================================
   LES 3 CHAISES — global.css
   Feuille de style COMMUNE à toutes les pages du site
   (variables, reset, header/navigation, footer, boutons, utilitaires)
   Les styles propres à une page (ex: accueil.css) viennent SE GREFFER
   par-dessus celle-ci et ne doivent jamais redéfinir ces sélecteurs.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Bungee+Shade&family=Permanent+Marker&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');
/* ⚠️ Polices de substitution en attendant les vraies polices de la charte
   (payantes / à télécharger) — voir le détail donné dans le chat :
   - Titre      → à remplacer par "Rig Solid Medium Fill" (Adobe Fonts / MyFonts)
   - Manuelle   → à remplacer par "Sensei" (Ezeqviel Ergo, gratuite mais à héberger soi-même)
   - Corps      → à remplacer par "DIN Next" (Adobe Fonts / Monotype, payante) */

/* ---------- Tokens ----------
   Valeurs PAR DÉFAUT. Si des couleurs/polices ont été personnalisées depuis
   l'admin (josyshop.eu/admin.php), global.js les récupère au chargement de
   la page et les réapplique ici via document.documentElement.style.setProperty
   — donc via un style inline sur <html> qui prend le pas sur ce bloc :root.
   Ne pas être surpris si l'inspecteur affiche des valeurs différentes de
   celles écrites ci-dessous : c'est normal, l'admin a la priorité. */

   html, body {
  overflow-x: hidden;
}

:root {

  color-scheme: light;
  /* couleurs — nouvelle charte "Les 3 Chaises" */
  --ink: #050404;
  /* noir quasi-pur */
  --ink-soft: #4d4a47;
  --paper: #f6efe6;
  --paper-soft: #f2ceba;
  /* pêche — fond des sections en alternance */
  --paper-deep: #e6bd9f;
  --pine: #8a2e2e;
  /* rouge bordeaux de marque (nom conservé pour compat. code) */
  --pine-dark: #6a2222;
  --wine: #8a2e2e;
  --wine-dark: #6a2222;
  --brass: #686a86;
  /* gris-bleu ardoise, utilisé pour les traits/labels */
  --yellow: #ffd400;
  /* jaune d'accent, à utiliser avec parcimonie */
  --line: rgba(5, 4, 4, .14);
  --line-strong: rgba(5, 4, 4, .28);
  --header-bg: rgba(231, 223, 199, .92);
  /* fond du bandeau (header) — éditable depuis l'admin */

  /* typo */
  --f-display: "Bungee", "Arial Narrow", sans-serif;
  --f-hero: "Bungee Shade", "Bungee", sans-serif;
  --f-script: "Permanent Marker", cursive;
  --f-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* rythme */
  --gap: clamp(1.25rem, 2vw, 2rem);
  --radius: 6px;
  --shadow-card: 0 6px 20px -8px rgba(42, 37, 33, .28);

  --header-h: 86px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

svg {
  display: block;
}

/* focus visible partout sur le site */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper-soft);
  padding: .7rem 1.1rem;
  border-radius: var(--radius);
  z-index: 999;
  transition: top .2s ease;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .9rem;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Eyebrow / labels réutilisables ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-body);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .6rem;
  color: var(--pine-dark);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
}

/* ---------- Boutons (partagés) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 0.8rem;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--pine);
  color: var(--paper-soft);
}

.btn-primary:hover {
  background: var(--pine-dark);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--paper-soft);
}

.btn-wine {
  background: var(--wine);
  color: var(--paper-soft);
}

.btn-wine:hover {
  background: var(--wine-dark);
}

/* ==========================================================================
   HEADER + NAVIGATION (identique sur toutes les pages)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(42, 37, 33, .5);
}

/* backdrop-filter établit un bloc de confinement pour les descendants en
   position:fixed (comme .nav en mode mobile) : sans ceci, le menu ouvert
   se retrouverait limité à la hauteur du header au lieu de tout l'écran. */
.site-header.menu-open {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--pine);
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: .01em;
}

.brand__tag {
  font-family: var(--f-body);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav__link {
  position: relative;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: .79rem;
  color: var(--ink-soft);
  padding: .3rem 0;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--wine);
  transition: right .22s ease;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  right: 0;
}

.nav__cta {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
}

.menu-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.menu-toggle__bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.menu-toggle__bars span:nth-child(1) {
  top: 0;
}

.menu-toggle__bars span:nth-child(2) {
  top: 5px;
}

.menu-toggle__bars span:nth-child(3) {
  top: 10px;
}

.site-header.menu-open .menu-toggle__bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.site-header.menu-open .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle__bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

@media (min-width: 1141px) {
  .nav__cta {
    display: inline-flex;
  }
}

@media (max-width: 1140px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: auto;
    width: min(220px, 84vw);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--paper-soft);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem 1.6rem calc(2rem + env(safe-area-inset-bottom, 0px));
    border-left: 1px solid var(--line);
    box-shadow: -16px 0 32px -14px rgba(28, 28, 28, .35);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .32s cubic-bezier(.32, .72, .35, 1), visibility 0s linear .32s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 600;
  }

  .site-header.menu-open .nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .32s cubic-bezier(.32, .72, .35, 1);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    flex: none;
  }

  .nav__list li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav__link {
    display: block;
    padding: .85rem .1rem;
    font-size: 1.02rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.3rem;
    align-self: stretch;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   FOOTER (identique sur toutes les pages)
   ========================================================================== */
.site-footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  background: var(--ink);
  color: var(--paper-soft);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.6rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
}

.footer__brand .brand__mark {
  color: var(--brass);
  filter: invert(1) brightness(1.6);
}

.footer__brand .brand__name {
  color: var(--paper-soft);
  font-size: 1.2rem;
}

.footer p,
.footer__col a,
.footer__col li {
  color: #cfc6b3;
  font-size: .92rem;
}

.footer__lede {
  max-width: 32ch;
  color: #cfc6b3;
  font-size: .94rem;
  line-height: 1.65;
}

.footer__col h3 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}

.footer__col li {
  margin-bottom: .6rem;
}

.footer__col a:hover {
  color: var(--paper-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(231, 223, 199, .14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  font-size: .78rem;
  color: #a99f8c;
}

.footer__legal-links {
  flex-basis: 100%;
  order: 3;
}

.footer__legal-links a {
  color: #a99f8c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal-links a:hover {
  color: var(--paper-soft, #f2ceba);
}

/* ---------- Réseaux sociaux (footer) ---------- */
.footer__social {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1rem;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(231, 223, 199, .28);
  color: var(--paper-soft);
  transition: background .2s ease, border-color .2s ease, transform .18s ease;
}

.footer__social a svg {
  width: 18px;
  height: 18px;
}

.footer__social a:hover {
  background: var(--wine);
  border-color: var(--wine);
  transform: translateY(-2px);
}



/* ==========================================================================
   Motif "trois chaises" — divider décoratif réutilisable sur tout le site
   ========================================================================== */
.chair-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 2.6rem);
  padding: clamp(0rem, 5vw, 0rem) 0;
  color: var(--brass);
}

.chair-divider__line {
  height: 1px;
  width: clamp(30px, 10vw, 120px);
  background: var(--line-strong);
}

.chair-divider svg {
  width: 30px;
  height: 30px;
  overflow: visible;
}

.chair-divider path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  transition: stroke-dashoffset 1s ease;
}

.chair-divider.is-visible path {
  stroke-dashoffset: 0;
}

.chair-divider.is-visible svg:nth-of-type(2) path {
  transition-delay: .12s;
}

.chair-divider.is-visible svg:nth-of-type(3) path {
  transition-delay: .24s;
}

/* ---------- Lien admin (cadenas discret) ---------- */
.admin-link {
  position: fixed;
  top: 3px;
  right: 3px;
  z-index: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(28, 28, 28, .55);
  color: var(--paper-soft);
  opacity: .35;
  transition: opacity .2s ease, background .2s ease, transform .18s ease;
}

.admin-link:hover {
  opacity: 1;
  background: var(--ink);
  transform: translateY(-1px);
}

.admin-link svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 720px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.1rem;
  }

  .admin-link {
  position: fixed;
  top: 0px;
  right: 0px;
  z-index: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(28, 28, 28, .55);
  color: var(--paper-soft);
  opacity: .35;
  transition: opacity .2s ease, background .2s ease, transform .18s ease;
}

}