﻿/* ============================================================
   ALLURE RÉSINE — Design Tokens & Apple System UI (Dark Mode)
   ============================================================ */
:root {
  /* ── Palette Charte Premium (Dark Mode) ── */
  --noir:         #1c1c1e;
  --noir-deep:    #0e0f0e;
  --noir-soft:    #2c2c2e;
  --noir-hover:   #3a3a3c;
  --beige:        #bcaa95;
  --beige-light:  #cfc0aa;
  --beige-pale:   #f0ece6;
  --blanc:        #ffffff;
  
  /* ── Apple Glassmorphism Utility ── */
  --apple-glass-bg: rgba(28, 28, 30, 0.45);
  --apple-glass-blur: blur(30px) saturate(180%);
  --apple-glass-border: 1px solid rgba(255, 255, 255, 0.12);
  --apple-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --apple-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  
  /* ── Typo (Contrast Serif/Sans) ── */
  --serif: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;

  /* ── Borders & Spacing ── */
  --radius-card: 32px;
  --radius-pill: 100px;
  --gutter: clamp(20px, 6vw, 80px);
  --max-w: 1200px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t1: 0.2s;
  --t2: 0.4s;
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; height: 100%; }
body {
  font-family: var(--sans);
  background: var(--noir-deep);
  color: var(--blanc);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; border-radius: 16px; }
a { color: inherit; text-decoration: none; transition: color var(--t1) var(--ease); }
ul, ol { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
::selection { background: rgba(188, 170, 149, 0.3); color: var(--blanc); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--noir-deep); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 10px; }

/* ── Layout Framework ── */
.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(60px, 8vw, 120px) 0; }
.s--dark  { background: var(--noir-deep); }
.s--soft  { background: var(--noir); }
.s--light { background: var(--beige-pale); color: var(--noir-deep); }

/* ── Apple Glassmorphism Panel ── */
.apple-panel {
  background-color: var(--apple-glass-bg);
  backdrop-filter: var(--apple-glass-blur);
  -webkit-backdrop-filter: var(--apple-glass-blur);
  border: var(--apple-glass-border);
  box-shadow: var(--apple-shadow), var(--apple-glass-highlight);
}

/* ── Section Header ── */
.sh { margin-bottom: 64px; }
.sh.center { text-align: center; }
.sh-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: .25em; text-transform: uppercase;
  color: var(--beige); margin-bottom: 16px;
}
.sh-tag::before { content: ''; width: 20px; height: 1px; background: currentColor; }
.sh-title { font-family: var(--serif); font-size: clamp(36px, 5vw, 64px); font-weight: 300; line-height: 1.1; letter-spacing: 0; }
.sh-title em { font-style: normal; color: var(--beige); }
.sh-lead { font-size: 16px; font-weight: 400; line-height: 1.6; color: rgba(255, 255, 255, 0.6); max-width: 540px; margin-top: 16px; }
.s--light .sh-lead { color: rgba(0, 0, 0, 0.6); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; padding: 12px 28px;
  border-radius: var(--radius-pill); transition: all 0.3s var(--ease);
}
.btn-gold { background: var(--beige); color: var(--noir-deep); }
.btn-gold:hover { background: var(--beige-light); transform: translateY(-2px); }
.btn-white { background: var(--blanc); color: var(--noir-deep); }
.btn-white:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(255, 255, 255, 0.2); color: var(--blanc); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.4); }
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ── Dynamic Island Navigation ── */
#nav {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  width: 92%; max-width: 1100px; z-index: 500; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: var(--radius-pill); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
#nav.s {
  padding: 8px 24px; background-color: rgba(28, 28, 30, 0.85);
  top: 16px; max-width: 900px; border-color: rgba(255, 255, 255, 0.08);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-brand { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--blanc); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.6); }
.nav-links a:hover, .nav-links a.on { color: var(--blanc); }
.nav-cta { font-size: 12px; font-weight: 600; color: var(--noir-deep); background: var(--blanc); padding: 8px 18px; border-radius: var(--radius-pill); }
.nav-cta:hover { transform: scale(1.03); }
.burger { display: none; flex-direction: column; gap: 5px; width: 22px; }
.burger span { height: 1.5px; background: var(--blanc); width: 100%; border-radius: 2px; }

/* ── Mobile Overlay Menu ── */
#mob-menu {
  position: fixed; inset: 0; z-index: 490; background: rgba(14,15,14,.98);
  backdrop-filter: blur(24px); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px; opacity: 0; visibility: hidden;
  transition: all var(--t2) var(--ease);
}
#mob-menu.open { opacity: 1; visibility: visible; }
#mob-menu a { font-family: var(--serif); font-size: 32px; font-weight: 300; }
#mob-menu a:hover { color: var(--beige); }

/* ── Bento Grid Services ── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc { border-radius: var(--radius-card); padding: 48px 40px; display: flex; flex-direction: column; transition: all 0.4s var(--apple-glass-blur); }
.svc:hover { background-color: rgba(44, 44, 46, 0.65); transform: translateY(-6px) scale(1.01); }
.svc-n-big { display: block; font-size: 72px; font-weight: 700; color: rgba(255,255,255,0.03); line-height: 1; margin-bottom: 16px; }
.svc:hover .svc-n-big { color: rgba(255,255,255,0.06); }
.svc-name { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.svc-desc { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 24px; flex-grow: 1; }
.svc-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--beige); }

/* Layout Bento Mapping */
.svc:nth-child(1) { grid-column: span 2; }
.svc:nth-child(2) { grid-column: span 1; }
.svc:nth-child(3) { grid-column: span 1; }
.svc:nth-child(4) { grid-column: span 1; }
.svc:nth-child(5) { grid-column: span 1; }

/* ── Inner Page Hero ── */
.ph { padding: 160px 0 60px; background: linear-gradient(180deg, var(--noir-deep) 0%, var(--noir) 100%); border-bottom: 1px solid rgba(255,255,255,0.06); }
.ph-inner { max-width: 800px; }
.ph-bc { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.ph-bc a { color: var(--beige); }
.ph-title { font-family: var(--serif); font-size: clamp(40px, 6vw, 80px); font-weight: 300; line-height: 1.1; }
.ph-title em { font-style: normal; color: var(--beige); }
.ph-sub { font-size: 16px; color: rgba(255,255,255,0.6); margin-top: 14px; line-height: 1.6; }

/* ── Progress Loader (Patch Intégré) ── */
#loader { position: fixed; inset: 0; z-index: 9000; background: var(--noir-deep); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; transition: opacity 0.6s var(--ease), visibility 0.6s; }
#loader.out { opacity: 0; visibility: hidden; }
#loader-logo { width: 120px; opacity: 0; animation: fadeIn 0.8s ease forwards; }
.ld-track { width: 100px; height: 1px; background: rgba(255,255,255,0.1); overflow: hidden; }
.ld-fill { height: 100%; background: var(--beige); width: 0%; animation: ldFill 1s var(--ease) forwards; }
@keyframes ldFill { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Progress Bar Top ── */
#pbar { position: fixed; top: 0; left: 0; z-index: 999; height: 2px; background: var(--beige); width: 0; transition: width 0.1s linear; }

/* ── Footer ── */
footer { background: var(--noir-deep); border-top: 1px solid rgba(255,255,255,0.06); padding: 80px 0 40px; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.ft-name { font-family: var(--serif); font-size: 24px; color: var(--beige); margin-bottom: 12px; }
.ft-brand p { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.6; max-width: 260px; }
.ft-col h4 { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.ft-col li { margin-bottom: 10px; }
.ft-col a { font-size: 14px; color: rgba(255,255,255,0.6); }
.ft-col a:hover { color: var(--blanc); }
.ft-bot { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.3); }

/* ── Scroll Animations (Patch Rebond Intégré) ── */
[data-r] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-spring), transform .8s var(--ease-spring); }
[data-r].on { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: .1s; }
[data-d="2"] { transition-delay: .2s; }

/* ── Responsive Architecture ── */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc:nth-child(1) { grid-column: span 1; }
  .grid-2 { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section { padding: 56px 0; }
  #nav { top: 14px; width: calc(100% - 24px); padding: 10px 16px; }
  .nav-brand { font-size: 15px; }
  #mob-menu a { font-size: clamp(26px, 9vw, 32px); }
  .ph { padding: 128px 0 46px; }
  .ph-bc { display: flex; flex-wrap: wrap; gap: 6px 8px; line-height: 1.5; letter-spacing: .08em; }
  .ph-title { font-size: clamp(36px, 12vw, 52px); line-height: 1.05; overflow-wrap: anywhere; }
  .ph-sub { font-size: 15px; line-height: 1.55; }
  .sh { margin-bottom: 36px; }
  .sh-tag { flex-wrap: wrap; gap: 8px; line-height: 1.5; letter-spacing: .14em; }
  .sh-title { font-size: clamp(31px, 10vw, 42px); line-height: 1.08; overflow-wrap: anywhere; }
  .svc { padding: 30px 22px; border-radius: 22px; }
  .svc-n-big { font-size: 56px; }
  .svc-name { font-size: 21px; line-height: 1.2; }
  .btn { width: 100%; justify-content: center; padding: 12px 20px; text-align: center; }
  .contact-box { padding: 26px 20px !important; border-radius: 20px !important; }
  .form-input, .form-textarea { font-size: 16px; }
  .gal-filters { flex-wrap: wrap; gap: 10px; justify-content: flex-start !important; }
  .filter-btn { flex: 1 1 auto; min-width: max-content; text-align: center; }
  .faq-q { align-items: flex-start !important; gap: 16px; font-size: 16px !important; line-height: 1.35; }
  .faq-q span { flex: 0 0 auto; }
  .ft-grid { grid-template-columns: 1fr; }
  .ft-brand p { max-width: none; }
  .ft-bot { flex-direction: column; gap: 12px; text-align: center; }
}
