/* ===== Phantom Art — Régie de Prestige ===== */
:root {
  --bg: #0d0d0d;
  --bg-soft: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --accent: #c9a962;
  --border: rgba(255,255,255,0.12);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, sans-serif;
  --header-height: 80px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-serif);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ----- Top anchor (invisible) ----- */
.top-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  pointer-events: none;
}

/* ----- Header ----- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 24px;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s, padding 0.3s;
}
.header.scrolled {
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.nav ul {
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.3s var(--ease-out);
}
.nav a:hover::after { width: 100%; }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg picture,
.service-gallery picture,
.valeurs-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--header-height) 24px 80px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.2;
  margin: 0 0 12px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroTitleIn 1s var(--ease-out) 0.2s forwards;
}
.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin: 0 0 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTitleIn 1s var(--ease-out) 0.35s forwards;
}
.hero-quote {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transform: translateY(20px);
  animation: heroTitleIn 1s var(--ease-out) 0.45s forwards;
}
@keyframes heroTitleIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero-cta {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--text);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTitleIn 0.8s var(--ease-out) 0.7s forwards;
  transition: background 0.3s, color 0.3s;
}
.hero-cta:hover {
  background: var(--text);
  color: var(--bg);
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  opacity: 0;
  animation: heroTitleIn 0.8s var(--ease-out) 1s forwards;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ----- Sections ----- */
.section {
  padding: 168px 24px;
  position: relative;
}
.container { max-width: 900px; margin: 0 auto; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 48px;
}
.section-title-center { text-align: center; margin-bottom: 60px; }

/* Animate-in (scroll) */
.animate-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal (fade-up on scroll) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Sur-mesure ----- */
.section-sur-mesure { background: var(--bg); }
.sur-mesure-grid {
  display: grid;
  gap: 48px;
}
.sur-mesure-text p {
  margin: 0 0 1em;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}
.sur-mesure-text p:last-of-type { margin-bottom: 32px; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.btn-outline {
  border: 1px solid var(--text);
}
.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}
.sur-mesure-anchor a {
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
.sur-mesure-anchor a:hover { color: var(--text); }

/* ----- Services ----- */
.section-services { padding-top: 144px; padding-bottom: 72px; }
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto 168px;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.service-block.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-block:last-of-type { margin-bottom: 60px; }
.service-block-reverse .service-gallery { order: 2; }
.service-block-reverse .service-content { order: 1; }

.service-gallery {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-soft);
}
.service-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.service-gallery:hover img {
  transform: scale(1.05);
}

.service-content { padding: 0 20px 0 0; }
.service-block-reverse .service-content { padding: 0 0 0 20px; }
.service-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
}
.service-subtitle {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.service-content p {
  margin: 0 0 1em;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.service-details {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.service-details li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5em;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}
.service-details li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-serif);
}
.service-content .btn { margin-top: 0; }

/* ----- Partenariats ----- */
.section-partenariats {
  padding: 168px 24px;
  background: var(--bg);
}
.partenariats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
}
.partenariat-logo {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 220px;
  height: 120px;
  padding: 0;
  box-sizing: border-box;
  background-color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
}
.partenariat-logo img {
  display: block;
  max-width: 80%;
  max-height: 70%;
  width: auto;
  height: auto;
  margin: 0;
  object-fit: contain;
  filter: grayscale(0.2);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.partenariat-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ----- Engagement / Valeurs ----- */
.section-valeurs {
  padding: 192px 24px;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.valeurs-bg {
  position: absolute;
  inset: 0;
}
.valeurs-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.valeurs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.valeurs-content {
  position: relative;
  z-index: 2;
}
.valeurs-text p {
  margin: 0 0 1.2em;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 700px;
}
.valeurs-text p strong {
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ----- Le Cercle Privé ----- */
.section-newsletter {
  padding: 168px 24px;
  text-align: center;
}
.newsletter-desc {
  margin: 0 auto 32px;
  max-width: 500px;
  color: var(--text-muted);
  font-size: 14px;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: var(--text-muted); }
.newsletter-form button {
  padding: 14px 32px;
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.newsletter-form button:hover { opacity: 0.9; }
.newsletter-form button.sent {
  background: rgba(201, 169, 98, 0.3);
  color: var(--accent);
  transition: all 0.4s var(--ease-out);
}
.newsletter-thanks {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0;
}
.newsletter-thanks.hidden { display: none; }
.newsletter-form.hidden { display: none; }

/* ----- Footer ----- */
.footer {
  padding: 60px 24px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  margin: 0 0 20px;
}
.footer-contact-line {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.45);
  margin: 24px auto 36px;
  padding: 0 16px;
  text-align: center;
}
.footer-contact-line em {
  font-style: italic;
}
.footer-contact-line a {
  color: inherit;
  text-decoration: none;
}
.footer-contact-line a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 0.5px;
}
.footer-locations {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #666;
  margin: 0 0 15px;
}
.footer-copyright, .footer-siege {
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0;
}
.footer-legal {
  display: inline-block;
  margin: 0 12px 16px 0;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.footer-legal:hover {
  color: var(--text-muted);
}
.footer-cgv {
  display: inline-block;
  margin: 16px 0;
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.footer-cgv:hover {
  color: var(--text-muted);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    border-left: 1px solid var(--border);
  }
  .nav.open { transform: translateX(0); }
  .nav ul { flex-direction: column; gap: 24px; }
  .nav a { font-size: 14px; }

  .service-block, .service-block-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 80px;
  }
  .service-block-reverse .service-gallery { order: 1; }
  .service-block-reverse .service-content { order: 2; }
  .service-content { padding: 0 !important; }
}

/* ----- Cookie banner ----- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-close {
  padding: 10px 24px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.cookie-close:hover {
  background: var(--text);
  color: var(--bg);
}

/* ----- Modal ----- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  cursor: pointer;
}
.modal-content {
  position: relative;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 48px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  transition: color 0.3s;
}
.modal-close:hover { color: var(--text); }
.modal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 24px;
}
.modal-content p {
  margin: 0 0 1em;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.modal-content a { color: var(--accent); }

/* ----- Responsive ----- */
@media (max-width: 600px) {
  .section { padding: 96px 20px; }
  .section-partenariats { padding: 96px 24px; }
  .partenariats-grid { gap: 20px; }
  .partenariat-logo { width: 220px; height: 120px; }
  .hero-title { font-size: 1.75rem; }
  .cookie-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 500px) {
  .partenariat-logo { width: 160px; height: 90px; }
}
