/* ============================================================
   Nath's Cakes — Base styles (override classic + Bootstrap)
   Réécrit la typo, les couleurs de fond, les boutons.
   Charge APRÈS le CSS classic via priority 220.
   ============================================================ */

/* ─── Reset typo & fond ─── */
body {
  font-family: var(--sans) !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink) !important;
  background: var(--ivory) !important;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Titres (override classic) ─── */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.005em;
}

h1, .h1 { font-weight: 300; font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.05; letter-spacing: -.01em; }
h2, .h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; }
h3, .h3 { font-size: 1.5rem; }
h4, .h4 { font-size: 1.125rem; }

/* ─── Typo utilitaires ─── */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.25rem;
}
.lead {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}
.small-caps {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.signature {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--gold-deep);
  line-height: 1;
}

/* ─── Containers ─── */
.nc-wrap        { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.nc-wrap-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }

/* ─── Liens Bootstrap override ─── */
a { color: var(--ink); transition: color var(--nc-dur-base) var(--ease-elegant); }
a:hover { color: var(--gold-deep); text-decoration: none; }

/* ─── Buttons (override Bootstrap btn) ─── */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 2.25rem;
  font-family: var(--sans) !important;
  font-weight: 500 !important;
  font-size: .8125rem !important;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0 !important;
  background: transparent;
  transition:
    background var(--nc-dur-base) var(--ease-elegant),
    color var(--nc-dur-base) var(--ease-elegant),
    border-color var(--nc-dur-base) var(--ease-elegant),
    letter-spacing var(--nc-dur-base) var(--ease-elegant);
}

.btn-primary,
.btn.btn-primary {
  background: var(--gold) !important;
  color: var(--ivory) !important;
  border-color: var(--gold) !important;
}
.btn-primary:hover,
.btn.btn-primary:hover {
  background: var(--gold-deep) !important;
  border-color: var(--gold-deep) !important;
  letter-spacing: .18em;
}

.btn-secondary,
.btn.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--ink) !important;
}
.btn-secondary:hover,
.btn.btn-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  background: var(--ink) !important;
  color: var(--ivory) !important;
  letter-spacing: .18em;
}

.btn-sm { padding: .75rem 1.5rem !important; font-size: .7rem !important; }
.btn-block { width: 100%; }

/* ─── Forms (override Bootstrap input) ─── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea,
.form-control {
  font-family: var(--sans) !important;
  font-size: .9375rem !important;
  padding: .875rem 1rem !important;
  background: var(--white) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 0 !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  transition: border-color var(--nc-dur-fast) var(--ease-out);
}
input:focus, select:focus, textarea:focus, .form-control:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  box-shadow: none !important;
}

/* ─── Sections ─── */
section { padding: var(--nc-section-y) 0; }
section.section-tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
section.section-blush { background: var(--blush-light); }
section.section-white { background: var(--white); }

/* ─── Reveal au scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s var(--ease-expo),
    transform 1s var(--ease-expo);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── Séparateur ornement ─── */
.nc-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 540px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) 1.5rem;
}
.nc-divider::before,
.nc-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 1.1s var(--ease-expo) .15s,
    opacity .6s var(--ease-expo) .15s;
}
.nc-divider.is-visible::before,
.nc-divider.is-visible::after { transform: scaleX(1); opacity: 1; }
.nc-divider-orn {
  width: 42px;
  height: 42px;
  color: var(--gold-deep);
  opacity: 0;
  transform: scale(.8) rotate(-15deg);
  transition: all 800ms var(--ease-elegant) .5s;
}
.nc-divider.is-visible .nc-divider-orn {
  opacity: 1;
  transform: scale(1) rotate(0);
}
