/* 
 * Fichier : theme-light.css
 * Rôle : Surcouche CSS pour le mode clair (crème chaud premium)
 * Activation : via l'attribut html[data-theme="light"]
 * Note : Le mode sombre reste le défaut.
 */

/* ============================================================
SECTION 1 — Remap global des variables (palette crème chaud)
============================================================ */
html[data-theme="light"] {
  --bf-black: #f5f0ea;            /* fond de page ivoire chaud */
  --bf-surface: #ffffff;
  --bf-surface-2: #faf6f0;
  --bf-white: #1a1714;            /* devient la couleur de TEXTE principale */
  --bf-off-white: #1a1714;
  --bf-muted: rgba(26, 23, 20, .60);
  --bf-soft: rgba(26, 23, 20, .05);
  --bf-gold: #b8893f;             /* or renforcé pour le contraste sur fond clair */
  --bf-gold-strong: #a9742f;
  --bf-gold-ink: #7d5a22;          /* or texte : 5,6:1 sur l'ivoire (≥ 4,5:1 AA) */
  --bf-border: rgba(26, 23, 20, .10);
  --bf-border-gold: rgba(184, 137, 63, .30);
  --shadow-card: 0 2px 16px rgba(60, 45, 25, .10);
  --shadow-card-hover: 0 10px 40px rgba(60, 45, 25, .16);
  color-scheme: light;
}

/* ============================================================
SECTION 2 — Fonds racine codés en dur à forcer en clair
============================================================ */
html[data-theme="light"] body.bf-fullwidth {
  background: var(--bf-black);
  color: var(--bf-white);
  --bf-muted: rgba(26, 23, 20, .72); /* re-remap au niveau body (cf. a11y.css) */
}

html[data-theme="light"] body.bf-fullwidth #page-container { 
  background: #f5f0ea !important; 
}

/* ============================================================
SECTION 3 — ÎLOTS SOMBRES (rester sombres même en mode clair)
============================================================ */
html[data-theme="light"] .bf-hero,
html[data-theme="light"] .bf-footer {
  --bf-white: #ffffff;
  --bf-off-white: #f5f0ea;
  --bf-muted: rgba(255, 255, 255, .58);
  --bf-soft: rgba(255, 255, 255, .10);
  --bf-black: #000000;
  --bf-border: rgba(255, 255, 255, .08);
}

/* ============================================================
SECTION 4 — Barre de navigation (fixed, verre translucide)
============================================================ */
html[data-theme="light"] .bf-nav {
  background: rgba(245, 240, 234, .82);
  border-bottom: 1px solid rgba(26, 23, 20, .08);
}

html[data-theme="light"] .bf-nav.is-scrolled {
  background: rgba(245, 240, 234, .96);
  border-bottom-color: rgba(26, 23, 20, .12);
}

html[data-theme="light"] .bf-nav__links a {
  color: rgba(26, 23, 20, .65);
}

/* ============================================================
SECTION 5 — Overlay du menu mobile (plein écran)
============================================================ */
html[data-theme="light"] .bf-nav__overlay-link {
  color: rgba(26, 23, 20, .55);
}

/* ============================================================
SECTION 6 — Boutons (CRUCIAL pour le contraste)
============================================================ */
html[data-theme="light"] .bf-btn { 
  background: #1a1714; 
  color: #f5f0ea; 
}

html[data-theme="light"] .bf-btn:hover { 
  background: #b8893f; 
  color: #1a1714; 
}

/* gemma-guard:allow — correctif d'audit (contraste CTA), retouche Architecte */
html[data-theme="light"] .bf-btn.bf-btn--primary,
html[data-theme="light"] .bf-nav__links a.bf-nav__cta,
html[data-theme="light"] a.bf-nav__cta {
  background: #b8893f; /* fond doré, sinon foncé-sur-foncé = invisible */
  color: #1a1714;
}

html[data-theme="light"] .bf-btn.bf-btn--primary:hover,
html[data-theme="light"] a.bf-nav__cta:hover {
  background: #1a1714;
  color: #f5f0ea;
}

html[data-theme="light"] .bf-btn--ghost {
  background: transparent; /* sinon le fond #1a1714 du .bf-btn générique l'emporte → texte sombre sur noir = invisible */
  color: #1a1714;
  border-color: rgba(26, 23, 20, .22);
}

html[data-theme="light"] .bf-btn--ghost:hover { 
  background: #1a1714; 
  color: #f5f0ea; 
}

/* ============================================================
SECTION 7 — Section FAQ
============================================================ */
html[data-theme="light"] .bf-faq__item { 
  border-top-color: rgba(26, 23, 20, .10); 
}

html[data-theme="light"] .bf-faq__item:last-child { 
  border-bottom-color: rgba(26, 23, 20, .10); 
}

html[data-theme="light"] .bf-faq__item:hover { 
  background: rgba(26, 23, 20, .03); 
}

/* ============================================================
SECTION 8 — Cartes équipe (team.css)
============================================================ */
html[data-theme="light"] .bf-team-card { 
  background: #ffffff; 
}

html[data-theme="light"] .bf-team-card__role, 
html[data-theme="light"] .bf-team-card__bio { 
  color: rgba(26, 23, 20, .62); 
}

/* ============================================================
SECTION 9 — Tab bar mobile (barre du bas)
============================================================ */
html[data-theme="light"] .bf-tabbar { 
  background: rgba(245, 240, 234, .85); 
  border-top: 1px solid rgba(26, 23, 20, .08); 
}

html[data-theme="light"] .bf-tabbar.is-scrolled { 
  background: rgba(245, 240, 234, .96); 
}

html[data-theme="light"] .bf-tabbar__label {
  color: rgba(26, 23, 20, .65);
}

/* gemma-guard:allow — icônes inactives lisibles en mode clair (héritent currentColor du lien) ; actif + bouton central Réserver conservent leur or. Output Gemma audité Architecte. */
html[data-theme="light"] .bf-tabbar__item:not(.bf-tabbar__item--active):not(.bf-tabbar__item--booking) a,
html[data-theme="light"] .bf-tabbar__item:not(.bf-tabbar__item--active):not(.bf-tabbar__item--booking) button {
  color: rgba(26, 23, 20, .65);
}

html[data-theme="light"] .bf-tabbar__callmenu { 
  background: #ffffff; 
  border: 1px solid rgba(26, 23, 20, .10); 
}

html[data-theme="light"] .bf-tabbar__callmenu a { 
  color: #1a1714; 
}

/* ============================================================
SECTION 10 — Barre concierge + comparateur
============================================================ */
html[data-theme="light"] .bf-concierge { 
  background: rgba(245, 240, 234, .90); 
}

html[data-theme="light"] .bf-compare__divider, 
html[data-theme="light"] .bf-compare__handle-label { 
  background: rgba(245, 240, 234, .85); 
}

/* ============================================================
SECTION 11 — Bloc local.css (sections « salon »)
============================================================ */
html[data-theme="light"] .bf-local-divider { 
  border-bottom-color: rgba(26, 23, 20, .10); 
}

html[data-theme="light"] .bf-local-note { 
  color: rgba(26, 23, 20, .78); 
}

/* ============================================================
SECTION 12 — Bouton bascule (commun aux 2 thèmes)
============================================================ */
.bf-theme-toggle {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  width: 40px; 
  height: 40px; 
  padding: 0; 
  border-radius: 999px;
  background: transparent; 
  border: 1px solid var(--bf-border);
  color: var(--bf-white); 
  cursor: pointer; 
  flex-shrink: 0;
  transition: background .25s var(--ease-btn), border-color .25s var(--ease-btn), color .25s var(--ease-btn);
  -webkit-tap-highlight-color: transparent;
}

.bf-theme-toggle:hover { 
  border-color: var(--bf-gold); 
  color: var(--bf-gold); 
}

.bf-theme-toggle svg { 
  width: 20px; 
  height: 20px; 
}

.bf-theme-toggle__sun { 
  display: none; 
}

.bf-theme-toggle__moon { 
  display: block; 
}

html[data-theme="light"] .bf-theme-toggle__sun { 
  display: block; 
}

html[data-theme="light"] .bf-theme-toggle__moon { 
  display: none; 
}

.bf-nav__overlay .bf-theme-toggle {
  width: auto;
  height: auto;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
