/* Tifi Solèy Créations — site-specific layout built on top of the Nocturne
   tokens in styles.css. Mirrors the design handoff 1:1, with explicit
   stacking breakpoints added for narrow viewports (the handoff only used
   clamp()-based fluid sizing and flagged breakpoints as developer work). */

a { color: var(--color-accent-300); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-accent); text-decoration: underline; }
::selection { background: var(--color-accent-800); color: var(--color-text); }

.page { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); min-height: 100vh; }

/* — scroll-reveal (JS toggles .is-visible via IntersectionObserver in main.js) — */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* — cookie consent banner (PIPEDA) — floating card, not a full-width bar — */
.cookie-banner {
  display: none;
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  width: min(400px, calc(100vw - 40px));
  flex-direction: column; gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.cookie-banner.visible { display: flex; }
.cookie-banner.visible.is-shown { opacity: 1; transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--color-neutral-200); }
.cookie-banner-actions { display: flex; gap: var(--space-3); }
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}
@media (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* — header / nav — */
.site-header {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  padding: var(--space-6) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-bg); color: var(--color-text); font-family: var(--font-body);
  flex-wrap: wrap;
}
.site-header .nav-brand { display: flex; align-items: center; justify-content: center; }
.site-header .nav-brand img { height: 128px; width: auto; display: block; }
.site-header nav { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.site-header nav a { color: var(--color-accent-300); }
.site-header nav a[aria-current='page'] { color: var(--color-accent); }
.site-header nav a:hover { color: var(--color-accent); text-decoration: none; }

/* — mobile hamburger toggle — */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; flex: none;
  background: transparent; border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  color: var(--color-text); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--color-accent); color: var(--color-accent); }
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-panel { display: contents; }

/* — footer — */
.site-footer {
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 72px) var(--space-6);
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg); color: var(--color-neutral-400); font-family: var(--font-body);
}
.site-footer a { color: var(--color-neutral-400); }
.site-footer a:hover { color: var(--color-accent-300); }
.footer-top {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: clamp(32px, 6vw, 64px);
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--color-divider);
}
.footer-brand { max-width: 340px; }
.footer-brand img { height: 88px; width: auto; display: block; margin-bottom: var(--space-4); }
.footer-brand p { font-size: 14.5px; margin: 0 0 var(--space-1); }
.footer-brand .footer-tagline { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 15px; color: var(--color-neutral-300); margin: var(--space-1) 0 0; }
.footer-links { display: flex; gap: clamp(48px, 6vw, 96px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: var(--space-3); font-size: 14.5px; }
.footer-col a { display: inline-flex; align-items: center; gap: var(--space-2); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding-top: var(--space-6); font-size: 12.5px; color: var(--color-neutral-500);
}
.footer-legal { display: flex; align-items: center; gap: var(--space-5); }
.footer-legal a { color: var(--color-neutral-500); }

/* — hero — */
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 0; }
.hero-content { position: relative; z-index: 1; }

.hero-home {
  padding: clamp(120px, 15vw, 200px) clamp(20px, 5vw, 72px) clamp(72px, 9vw, 120px);
  min-height: 84vh;
}
.hero-home .hero-overlay {
  background: linear-gradient(to top, var(--color-bg) 8%, color-mix(in srgb, var(--color-bg) 30%, transparent) 55%, color-mix(in srgb, var(--color-bg) 60%, transparent) 100%);
}
.hero-home .hero-content { max-width: 1280px; margin: 0 auto; width: 100%; }
.hero-home .hero-kicker { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-300); margin-bottom: var(--space-4); }
.hero-home h1 { font-size: clamp(52px, 8vw, 108px); line-height: 0.96; letter-spacing: -0.02em; margin: 0; max-width: 16ch; }
.hero-home p { font-size: 18px; line-height: 1.6; max-width: 52ch; color: var(--color-neutral-200); margin: var(--space-6) 0 0; }
.hero-home .hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-8); }
.hero-home .hero-actions .btn { font-size: 17px; padding: var(--space-4) var(--space-7); }

.hero-page {
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 72px) clamp(56px, 7vw, 88px);
  min-height: 60vh;
}
.hero-page .hero-overlay {
  background: linear-gradient(to top, color-mix(in srgb, var(--color-bg) 92%, transparent) 5%, color-mix(in srgb, var(--color-bg) 25%, transparent) 55%, color-mix(in srgb, var(--color-bg) 55%, transparent) 100%);
}
.hero-page h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 var(--space-6); }
.hero-page p { font-size: 17px; line-height: 1.6; color: var(--color-neutral-200); margin: 0; }
.hero-page .tag-row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }

/* — hero scroll indicator — */
.scroll-indicator {
  position: absolute; left: 50%; bottom: clamp(16px, 3vw, 28px); z-index: 2;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-text) 35%, transparent);
  color: var(--color-neutral-200);
  text-decoration: none;
  animation: scroll-bounce 2.2s ease-in-out infinite;
}
.scroll-indicator:hover {
  color: var(--color-accent); border-color: var(--color-accent);
  text-decoration: none;
}
.scroll-indicator svg { display: block; }
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator { animation: none; }
}

/* — hero scroll CTA (Accueil only — text label + chevron) — */
.scroll-cta {
  position: absolute; left: 50%; bottom: var(--space-6); z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  color: var(--color-neutral-200); text-decoration: none;
  animation: soley-bounce 2s ease-in-out infinite;
}
.scroll-cta:hover { color: var(--color-accent); text-decoration: none; }
.scroll-cta span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-cta svg { display: block; }
@keyframes soley-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cta { animation: none; }
}

/* — generic section wrapper — */
.section { padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 72px) 0; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-tight { padding: clamp(24px, 4vw, 40px) clamp(20px, 5vw, 72px) clamp(56px, 6vw, 80px); max-width: 1280px; margin: 0 auto; }
.section-bottom { padding: 0 clamp(20px, 5vw, 72px) clamp(56px, 6vw, 80px); max-width: 1280px; margin: 0 auto; }
.section-full { padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 72px); }

.section h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 0 0 var(--space-8); max-width: 24ch; }

/* — reusable elevated card (pillars, process steps, occasions, contact info) — */
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-divider));
}

/* — 3-col numbered process — */
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.process-grid .step-number { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 15px; color: var(--color-accent); margin: 0 0 var(--space-3); }
.process-grid h3 { font-size: 19px; margin: 0 0 var(--space-3); }
.process-grid p { font-size: 15.5px; line-height: 1.6; color: var(--color-neutral-300); margin: 0; }

/* — pillars (Accueil "Sur mesure / Réparation / Artisanal") — */
.pillars-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.pillars-grid .step-number { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 15px; color: var(--color-accent); margin: 0 0 var(--space-3); }
.pillars-grid h3 { font-size: 21px; margin: 0 0 var(--space-3); }
.pillars-grid p { font-size: 15.5px; line-height: 1.6; color: var(--color-neutral-300); margin: 0; }

/* — intro text block (Accueil "On vous écoute") — */
.intro-block h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin: 0; max-width: 22ch; }
.intro-block p { font-size: 17px; line-height: 1.65; color: var(--color-neutral-200); max-width: 62ch; margin: var(--space-4) 0 0; }
.intro-block p:first-of-type { margin-top: var(--space-6); }

/* — numbered feature rows (Accueil "Trois savoir-faire") — */
.feature-row {
  display: grid; grid-template-columns: minmax(64px, 140px) minmax(0, 1fr) minmax(0, 260px);
  gap: var(--space-6) clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  margin-bottom: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-divider));
}
.feature-row .step-number { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 15px; color: var(--color-accent); margin: 0; }
.feature-row h2 { font-size: 28px; margin: 0 0 var(--space-3); }
.feature-row .eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-300); margin: 0 0 var(--space-3); }
.feature-row p { font-size: 16px; line-height: 1.6; color: var(--color-neutral-200); max-width: 56ch; margin: 0; }
.feature-row .feature-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 14px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-row .feature-link:hover {
  background: color-mix(in srgb, var(--color-accent) 14%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  color: var(--color-accent);
  text-decoration: none;
}
.feature-row .feature-link:active { transform: translateY(0); background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.feature-row .feature-link-arrow { display: inline-block; transition: transform 0.25s ease; }
.feature-row .feature-link:hover .feature-link-arrow { transform: translateX(4px); }
.feature-row .feature-image {
  display: block; overflow: hidden;
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s ease;
}
.feature-row .feature-image.contain { background: var(--color-neutral-100); padding: var(--space-3); }
.feature-row .feature-image img {
  width: 100%; height: 190px; object-fit: cover; display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}
.feature-row .feature-image.contain img { object-fit: contain; }
.feature-row .feature-image:hover { box-shadow: var(--shadow-lg); }
.feature-row .feature-image:hover img { transform: scale(1.06); filter: brightness(0.82); }
@media (prefers-reduced-motion: reduce) {
  .feature-row .feature-image:hover img { transform: none; }
}

/* — indigo section band (CTA) — */
.band {
  background: radial-gradient(900px 420px at 85% -40%, color-mix(in srgb, var(--color-section-glow) 70%, transparent), transparent 64%), var(--color-section);
  padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 72px);
}
.band.wide { padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 72px); }
.band-inner { max-width: 1280px; margin: 0 auto; }

.cta-band { max-width: 720px; margin: 0 auto; }
.cta-band.wide { max-width: 1280px; text-align: left; }
.cta-band .kicker-alt { color: var(--color-accent-2); }
.cta-band h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 var(--space-4); }
.cta-band.wide h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; max-width: 18ch; }
.cta-band p { font-size: 16px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 82%, transparent); margin: 0 0 var(--space-6); }
.cta-band .btn-row { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* — photo galleries (Bijoux / Ateliers / Decoration) — */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-6); }
.gallery.wide-tiles { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.mat { background: var(--color-neutral-100); padding: var(--space-3); border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.mat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mat img { display: block; width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius-sm); transition: transform 0.4s ease; }
.mat:hover img { transform: scale(1.04); }
.gallery.wide-tiles .mat img { height: 300px; }

/* Zooms past the default crop to push a corner watermark out of frame —
   needed on the Décoration hero and two gallery photos that carry a
   third-party vendor logo, since narrow mobile tiles crop horizontally
   instead of vertically and would otherwise reveal it. */
img.crop-watermark { transform: scale(1.4); transform-origin: top left; }
/* .mat:hover img would otherwise win on specificity and reset this away
   from top-left, re-exposing the corner the scale is there to hide. */
.mat:hover img.crop-watermark { transform: scale(1.45); transform-origin: top left; }

/* — occasions two-column text (Decoration) — */
.occasions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.occasions-grid h3 { font-size: 22px; margin: 0 0 var(--space-3); }
.occasions-grid p { font-size: 15.5px; line-height: 1.6; color: var(--color-neutral-300); margin: 0; }

/* — Contact page — */
.contact-hero { padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px) clamp(24px, 4vw, 40px); max-width: 1280px; margin: 0 auto; }
.contact-hero h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 var(--space-6); }
.contact-hero p { font-size: 17px; line-height: 1.6; max-width: 58ch; color: var(--color-neutral-200); margin: 0; }

.contact-grid {
  padding: 0 clamp(20px, 5vw, 72px) clamp(64px, 8vw, 96px); max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 64px);
}
.contact-form { display: flex; flex-direction: column; gap: var(--space-6); }
.contact-info { display: flex; flex-direction: column; gap: var(--space-8); }
.contact-info h2 { font-size: 19px; margin: 0 0 var(--space-3); }
.contact-info p { font-size: 15.5px; line-height: 1.6; color: var(--color-neutral-300); margin: 0 0 var(--space-2); }
.contact-info a { color: var(--color-neutral-300); }

.form-status { font-size: 14px; margin: 0; display: none; }
.form-status.visible { display: block; }
.form-status.success { color: var(--color-accent-300); }
.form-status.error { color: #e2a2a2; }

/* — legal pages — */
.legal { padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 72px); max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 3vw, 36px); margin: 0 0 var(--space-8); }
.legal-body { display: flex; flex-direction: column; gap: var(--space-6); font-size: 15.5px; line-height: 1.7; color: var(--color-neutral-200); }
.legal-body h2 { font-size: 20px; color: var(--color-text); margin: 0; }
.legal-body em { color: var(--color-neutral-300); }

/* — responsive breakpoints — */
@media (max-width: 860px) {
  .process-grid,
  .pillars-grid,
  .occasions-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .feature-row {
    grid-template-columns: 1fr;
  }
  .feature-row .step-number { order: -1; }
  .feature-row .feature-image { order: 2; }
  .feature-row .feature-image img { height: 220px; }
}

@media (max-width: 600px) {
  .site-header .nav-brand img { height: 112px; }
  .site-header { flex-wrap: nowrap; padding: var(--space-4) 20px; }
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    display: block;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  }
  .nav-panel:not(.is-open) { display: none; }
  .nav-panel.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: var(--space-6);
    padding: var(--space-6) 20px; background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider); box-shadow: var(--shadow-md);
  }
  .nav-panel.is-open nav { flex-direction: column; align-items: flex-start; gap: var(--space-4); width: 100%; }
  .nav-panel.is-open nav a { font-size: 16px; }
  .nav-panel.is-open .nav-cta { align-self: flex-start; }
  .hero-home { min-height: 60vh; }
  .gallery, .gallery.wide-tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .footer-brand { max-width: none; }
  .footer-links { gap: clamp(32px, 8vw, 64px); }
}
