/* ============================================================
   style-utilities.css — Classes utilitaires
   Remplacement des 556 styles inline récurrents
   François Gaillard Parquet — Refactoring ingénieur senior
   8 mai 2026
   ============================================================ */

/* ── Couleurs ─────────────────────────────────────────────── */
.c-gold      { color: var(--gold) !important; }
.c-gold-dim  { color: #a89060 !important; }
.c-gold-hex  { color: #c9a84c !important; }
.c-white     { color: #fff !important; }
.c-muted     { color: var(--muted) !important; }
.c-text      { color: var(--text) !important; }

/* ── Typographie ──────────────────────────────────────────── */
.f-cormorant { font-family: 'Cormorant Garamond', serif !important; }
.f-jost      { font-family: 'Jost', sans-serif !important; }
.f-xs        { font-size: .65rem !important; }
.f-sm        { font-size: .75rem !important; }
.f-base      { font-size: .85rem !important; }
.f-md        { font-size: .9rem !important; }
.f-lg        { font-size: 1rem !important; }
.f-xl        { font-size: 1.1rem !important; }
.f-2xl       { font-size: 1.4rem !important; }
.f-3xl       { font-size: 1.6rem !important; }
.f-700       { font-weight: 700 !important; }
.f-600       { font-weight: 600 !important; }
.f-500       { font-weight: 500 !important; }
.f-400       { font-weight: 400 !important; }
.uppercase   { text-transform: uppercase !important; }
.no-underline{ text-decoration: none !important; }
.underline   { text-decoration: underline !important; }
.ls-1        { letter-spacing: .1em !important; }
.ls-2        { letter-spacing: .15em !important; }
.ls-3        { letter-spacing: .25em !important; }
.lh-phi      { line-height: 1.618 !important; }
.lh-tight    { line-height: 1.2 !important; }

/* ── Espacements ──────────────────────────────────────────── */
.mt-0   { margin-top: 0 !important; }
.mt-1   { margin-top: .5rem !important; }
.mt-2   { margin-top: 1rem !important; }
.mt-3   { margin-top: 1.5rem !important; }
.mt-4   { margin-top: 2rem !important; }
.mt-5   { margin-top: 3rem !important; }
.mb-0   { margin-bottom: 0 !important; }
.mb-1   { margin-bottom: .5rem !important; }
.mb-2   { margin-bottom: 1rem !important; }
.mb-3   { margin-bottom: 1.5rem !important; }
.mb-4   { margin-bottom: 2rem !important; }
.p-sm   { padding: 1rem !important; }
.p-md   { padding: 1.5rem !important; }
.p-lg   { padding: 2rem !important; }
.px-md  { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-md  { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

/* ── Flex ─────────────────────────────────────────────────── */
.flex         { display: flex !important; }
.flex-col     { flex-direction: column !important; }
.flex-center  { display: flex !important; align-items: center !important; justify-content: center !important; }
.flex-between { display: flex !important; align-items: center !important; justify-content: space-between !important; }
.flex-gap-sm  { gap: .5rem !important; }
.flex-gap-md  { gap: 1rem !important; }
.flex-gap-lg  { gap: 1.5rem !important; }
.flex-shrink-0{ flex-shrink: 0 !important; }
.items-center { align-items: center !important; }

/* ── Affichage ────────────────────────────────────────────── */
.d-none    { display: none !important; }
.d-block   { display: block !important; }
.d-inline  { display: inline !important; }
.nowrap    { white-space: nowrap !important; }

/* ── Fond ─────────────────────────────────────────────────── */
.bg-dark2  { background: var(--dark2) !important; }
.bg-dark   { background: var(--dark) !important; }
.bg-gold-5 { background: rgba(201,168,76,.05) !important; }
.bg-gold-10{ background: rgba(201,168,76,.10) !important; }

/* ── Bordures ─────────────────────────────────────────────── */
.border       { border: 1px solid var(--border) !important; }
.border-gold  { border: 1px solid var(--gold) !important; }
.border-l-gold{ border-left: 3px solid var(--gold) !important; }
.border-none  { border: none !important; }
.rounded      { border-radius: 4px !important; }

/* ── Largeurs ─────────────────────────────────────────────── */
.w-full   { width: 100% !important; }
.max-860  { max-width: 860px !important; margin-left: auto !important; margin-right: auto !important; }
.max-496  { max-width: 496px !important; }

/* ── Liens annuaires footer ───────────────────────────────── */
/* Remplace color:#a89060;font-size:.9rem;text-decoration:none (190 occurrences) */
.footer-link {
  color: #a89060;
  font-size: .9rem;
  text-decoration: none;
}
.footer-link:hover { color: var(--gold); }

/* ── Lien doré standard ───────────────────────────────────── */
/* Remplace color:var(--gold) (102 occurrences) */
.link-gold {
  color: var(--gold);
  text-decoration: none;
}
.link-gold:hover { opacity: .8; }

/* ── Tag de section ───────────────────────────────────────── */
/* Remplace font-size:.65rem;letter-spacing:.15em;text-transform:uppercase */
.section-tag {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .5rem;
}

/* ── Liste nav ────────────────────────────────────────────── */
/* Remplace list-style:none;padding:0;margin:0;display:flex */
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

/* ── Bloc sources ─────────────────────────────────────────── */
.sources-block {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  background: var(--dark2);
  border: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
}
.sources-block .sources-title {
  color: var(--gold);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
  display: block;
}

/* ── Sticky CTA ───────────────────────────────────────────── */
/* Remplace les styles inline du sticky CTA */
#cta-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #1a1710;
  border-top: 1px solid rgba(201,168,76,.35);
  padding: 10px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
#cta-sticky .cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  display: inline-block;
}
#cta-sticky .cta-status {
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  color: #9a9283;
  white-space: nowrap;
}
#cta-sticky .cta-btn {
  background: #c9a84c;
  color: #0d0b08;
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 22px;
  text-decoration: none;
  white-space: nowrap;
}
#cta-sticky .cta-close {
  background: none;
  border: none;
  color: #9a9283;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* ── Ajout refactoring phase 2 ────────────────────────────── */

/* Nav list — 9 occurrences */
.nav-sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Row between — 7 occurrences */
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

/* Card dark — 6 occurrences */
.card-dark {
  background: var(--dark2);
  padding: 1.5rem 2rem;
}

/* Label section — 6 occurrences */
.label-section {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* Text body — 6 occurrences */
.text-body {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.7;
}

/* Nav item label — 6 occurrences */
.nav-label {
  font-family: 'Jost', sans-serif;
  color: #fff;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* Hamburger bar — 3 occurrences */
.ham-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #c9a84c;
  border-radius: 1px;
}

/* Sub label — 3 occurrences */
.sub-label {
  padding: .5rem 0 .25rem;
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--text-muted);
}

/* Skip link accessibilité */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--gold);
  color: var(--noir);
  padding: .5rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus {
  top: 0;
}

/* Bouton icône */
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* Search input */
.search-input {
  width: 100%;
  padding: .6rem;
  background: var(--dark);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ── Page secrète φ ────────────────────────────────────────── */
#phi-secret {
  position: fixed;
  bottom: 1.2rem;
  right: 1.5rem;
  z-index: 998;
  color: #c9a84c;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  text-decoration: none;
  line-height: 1;
  opacity: 0.8;
  transition: opacity .3s, transform .3s;
  cursor: pointer;
}
#phi-secret:hover {
  opacity: 1;
  transform: scale(1.2);
}
