/* Page d'accueil « bilan » — conforme à l'identité de marque (V. 13.11.2025) :
   couleurs 200F08 / FEFCED / FBC546 / E76E0D / C02E06,
   Camera Obscura (titres), Moving (chiffres), Caviar Dreams (textes). */

@font-face {
  font-family: "Camera Obscura";
  src: url("/wp-content/uploads/2025/12/CameraObscura-2.woff2") format("woff2");
  font-display: swap;
}
/* Moving : police commerciale (Graphicxell). Utilisée si installée chez le visiteur, ou si le
   fichier est déposé dans /assets/fonts/ une fois la licence web vérifiée. Sinon : Camera Obscura. */
@font-face {
  font-family: "Moving";
  src: local("Moving"), local("Moving Regular"), url("/assets/fonts/Moving.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Caviar Dream";
  src: url("/wp-content/uploads/2025/11/caviardreams-webfont.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Caviar Dream";
  font-weight: bold;
  src: url("/wp-content/uploads/2025/11/caviardreams_bold-webfont.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Caviar Dream";
  font-style: italic;
  src: url("/wp-content/uploads/2025/11/caviardreams_italic-webfont.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Caviar Dream";
  font-style: italic;
  font-weight: bold;
  src: url("/wp-content/uploads/2025/11/caviardreams_bolditalic-webfont.woff2") format("woff2");
  font-display: swap;
}

:root {
  --brun: #200F08;
  --creme: #FEFCED;
  --jaune: #FBC546;
  --orange: #E76E0D;
  --rouge: #C02E06;
  --titre: "Camera Obscura", Georgia, serif;
  --chiffres: "Moving", "Camera Obscura", Georgia, serif;
  --text: "Caviar Dream", "Helvetica Neue", Arial, sans-serif;
  /* Dégradé crème → or des titres de la charte */
  --or: linear-gradient(180deg, var(--creme) 15%, var(--jaune) 100%);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--brun);
  color: var(--creme);
  font-family: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Fond : photo de forge assombrie dans le brun de la charte, lueur orange en bas */
.bg {
  position: fixed;
  inset: -4%;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 115%, rgba(231, 110, 13, .32), transparent 60%),
    linear-gradient(180deg, rgba(32, 15, 8, .8) 0%, rgba(32, 15, 8, .92) 55%, var(--brun) 100%),
    url("/assets/bilan-fond.jpg") center / cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate;
}
@media (max-width: 700px) {
  .bg {
    background:
      radial-gradient(ellipse at 50% 115%, rgba(231, 110, 13, .32), transparent 60%),
      linear-gradient(180deg, rgba(32, 15, 8, .82) 0%, rgba(32, 15, 8, .94) 55%, var(--brun) 100%),
      url("/assets/bilan-fond-mobile.jpg") center / cover no-repeat;
  }
}
@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

.embers {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo principal : date en Caviar Dreams italique, alignée sur le bord droit du logo.
   Zone de protection respectée par les marges autour du bloc. */
.lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  padding: clamp(12px, 2vw, 20px);
}
.logo {
  display: block;
  width: min(380px, 72vw);
  height: auto;
}
.date {
  margin: 4px 0 0;
  font-style: italic;
  font-size: clamp(.95rem, 2.6vw, 1.15rem);
  color: var(--creme);
}
.tagline {
  margin: clamp(20px, 3vw, 28px) 0 0;
  font-style: italic;
  font-size: clamp(.85rem, 2.4vw, 1rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--jaune);
}

/* Titre, avec « 2026 » en style outline (déclinaisons de la charte) */
.intro {
  position: relative;
  margin: clamp(48px, 8vw, 88px) 0 clamp(32px, 5vw, 52px);
}
.outline {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  margin: 0;
  transform: translate(-50%, -50%);
  font-family: var(--titre);
  font-size: clamp(7rem, 26vw, 17rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(254, 252, 237, .16);
  white-space: nowrap;
  pointer-events: none;
}
h1 {
  margin: 0;
  font-family: var(--titre);
  font-weight: normal;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1.02;
  text-wrap: balance;
}
h1 span {
  display: block;
  background: var(--or);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Chiffres */
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 20px);
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 190px;
  padding: 28px 22px;
  border-radius: 22px;
  background: rgba(32, 15, 8, .55);
  border: 1px solid rgba(254, 252, 237, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
/* Filet du contraste secondaire de la charte : orange → jaune */
.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--jaune));
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .5s ease;
}
.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 197, 70, .5);
  box-shadow: 0 18px 40px -18px rgba(231, 110, 13, .55);
}
.stat:hover::before { transform: scaleX(1); }

.stat--xl { grid-column: span 2; min-height: 240px; }
.stat--wide {
  grid-column: 1 / -1;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.num {
  font-family: var(--chiffres);
  font-weight: normal;
  font-size: clamp(3rem, 7vw, 4.2rem);
  line-height: 1;
  background: var(--or);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat--xl .num { font-size: clamp(4.2rem, 11vw, 7rem); }
.label {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.35;
  color: rgba(254, 252, 237, .9);
  text-wrap: balance;
}
.stat--xl .label { font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: bold; }
.stat--wide .label { text-align: left; max-width: 34ch; }

/* Bouton : orange de la charte, survol en contraste secondaire (jaune / brun) */
.cta { margin: clamp(40px, 7vw, 64px) 0; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--creme);
  font-family: var(--text);
  font-weight: bold;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(231, 110, 13, .8);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.button svg { width: 22px; height: 22px; transition: transform .25s ease; }
.button:hover {
  background: var(--jaune);
  color: var(--brun);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(251, 197, 70, .7);
}
.button:hover svg { transform: translateX(4px); }
.button:focus-visible { outline: 3px solid var(--jaune); outline-offset: 4px; }

/* Pied de page */
.foot {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid rgba(254, 252, 237, .14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: .9rem;
  color: rgba(254, 252, 237, .7);
}
.foot nav { display: flex; gap: 20px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--jaune); }
.foot p { margin: 0; }

/* Apparition au chargement */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.no-js .reveal { opacity: 1; transform: none; }

/* Tablette */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat--xl { grid-column: span 1; }
}

/* Mobile */
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat--xl { grid-column: 1 / -1; min-height: 0; padding: 28px 20px; }
  .stat { min-height: 150px; padding: 22px 14px; border-radius: 18px; }
  .stat--wide { flex-direction: column; gap: 10px; }
  .stat--wide .label { text-align: center; }
  .foot { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .bg { animation: none; }
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .stat, .stat::before, .button, .button svg { transition: none; }
}
