/* Retour d'Ivoire / Ivory to Her — styles partagés
   Concept : le site est un ciel d'heure dorée ; le contenu flotte dans des panneaux
   couleur terre, comme les plateformes du marché suspendu. Un seul thème, sombre et chaud. */
:root {
  --night: #140d08;
  --earth: #22160e;
  --panel: rgba(22, 14, 9, 0.86);
  --panel-solid: #1d140d;
  --ivory: #f4ecdc;
  --muted: #cbbfa9;
  --dim: #a8987f;
  --amber: #e9b66b;
  --terra: #d0744a;
  --sage: #9db394;
  --line: rgba(233, 182, 107, 0.24);
  --line-soft: rgba(244, 236, 220, 0.12);
  --focus: #f2cf8e;

  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-accent: "Cormorant Garamond", Georgia, serif;
  --f-ui: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  /* Noto couvre les alphabets africains (ɛ ɔ ŋ ɓ ɗ ƙ ẹ ọ ṣ), l'arabe et le ge'ez */
  --f-body: "Noto Sans", "Noto Sans Ethiopic", "Noto Naskh Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 6px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

html { background: var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--panel-solid);
}
a { color: var(--amber); }
a:hover { color: var(--ivory); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.label {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- fond : le marché suspendu au-dessus de la savane ---------- */
.bgfix {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("../img/fond.webp") center 62% / cover no-repeat, var(--earth);
}
.lite .bgfix { background-image: url("../img/fond-lite.webp"); }
.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 13, 8, 0.72) 0%, rgba(20, 13, 8, 0.35) 45%, rgba(20, 13, 8, 0) 70%);
}
@media (max-width: 760px) {
  .veil { background: linear-gradient(180deg, rgba(20, 13, 8, 0.55), rgba(20, 13, 8, 0.72)); }
}
.page { position: relative; z-index: 2; }

/* ---------- en-tête ---------- */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: linear-gradient(180deg, rgba(20, 13, 8, 0.92), rgba(20, 13, 8, 0.78));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-block: 10px;
}
.brand {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--ivory);
  text-decoration: none;
  white-space: nowrap;
}
.brand .h { color: var(--amber); font-style: normal; }
.nav {
  display: flex;
  gap: 4px;
  order: 3;
  width: 100%;
  overflow-x: auto;
}
.nav a {
  font-family: var(--f-ui);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--r);
  white-space: nowrap;
}
.nav a:hover { color: var(--ivory); background: var(--line-soft); }
.nav a[aria-current="page"] { color: var(--amber); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 860px) {
  .nav { order: 0; width: auto; margin-left: 12px; }
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.seg button {
  background: none;
  border: 0;
  padding: 8px 12px;
  min-height: 40px;
  font-family: var(--f-ui);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--amber); color: var(--night); }
.lite-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 12px;
  min-height: 40px;
  font-family: var(--f-ui);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
}
.lite-btn .dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid currentColor;
}
.lite-btn .short { display: none; }
@media (max-width: 480px) {
  .lite-btn .full { display: none; }
  .lite-btn .short { display: inline; }
  .brand { font-size: 18px; }
  .seg button, .lite-btn { padding-inline: 10px; }
}
.lite-btn[aria-pressed="true"] { color: var(--sage); border-color: var(--sage); }
.lite-btn[aria-pressed="true"] .dot { background: currentColor; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--r);
  font-family: var(--f-ui);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--amber);
}
.btn-primary { background: var(--amber); color: var(--night); }
.btn-primary:hover { background: var(--ivory); border-color: var(--ivory); color: var(--night); }
.btn-ghost { background: rgba(20, 13, 8, 0.5); color: var(--ivory); }
.btn-ghost:hover { background: var(--ivory); color: var(--night); }

/* ---------- crédits ---------- */
.credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  font-family: var(--f-ui);
  text-transform: uppercase;
}
.credits .who { display: grid; gap: 2px; }
.credits small { font-size: 12px; font-weight: 300; letter-spacing: 0.28em; color: var(--muted); }
.credits strong { font-size: 20px; font-weight: 500; letter-spacing: 0.16em; color: var(--ivory); }
.credits .lower { text-transform: none; }
.credits .sep { width: 1px; height: 40px; background: var(--line); }
a.who.wa { text-decoration: none; color: inherit; border-radius: 4px; }
.wa-name { display: inline-flex; align-items: center; gap: 10px; }
.wa-logo { width: 26px; height: auto; flex: none; transition: transform 0.3s; }
a.wa:hover strong { color: var(--amber); }
a.wa:hover .wa-logo { transform: translateY(-2px); }
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding-block: 28px 36px;
}
.site-foot .wrap { display: grid; gap: 16px; }
.site-foot p { color: var(--dim); font-size: 14px; }
.site-foot .copy { font-family: var(--f-ui); font-size: 13px; letter-spacing: 0.14em; color: var(--muted); }
.copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.copy .eiii { width: 34px; height: auto; flex: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* retour vers le site parapluie Pictures Infusion (picturesinfusion.media) */
.pi-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; font-family: var(--f-ui); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.pi-link:hover, .pi-link:focus-visible { color: var(--ivory); }

/* logo Pictures Infusion en tête : retour au site parapluie, comme sur les autres projets */
.pi-home { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; flex: none; border-radius: 8px; }
.pi-home img { width: 30px; height: 30px; border-radius: 6px; opacity: 0.92; transition: opacity 0.2s, transform 0.2s; }
.pi-home:hover img, .pi-home:focus-visible img { opacity: 1; transform: translateY(-1px); }
@media (max-width: 480px) { .pi-home { width: 40px; margin-right: -14px; } .pi-home img { width: 26px; height: 26px; } }
