/* ============================================================
   PPC VITRINE — Global CSS
   Variables, reset, typographie, utilitaires, composants communs
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  /* Couleurs */
  --noir:        #070709;
  --nuit:        #0C0C12;
  --encre:       #12121C;
  --surface:     #18182A;
  --surface2:    #20203A;
  --surface3:    #28284A;
  --bordure:     rgba(255,255,255,0.07);
  --bordure2:    rgba(255,255,255,0.12);
  --texte:       #F0EEF8;
  --texte-dim:   #8A88A8;
  --texte-mute:  #4A4860;
  --or:          #C9965A;
  --or-light:    #E8B87A;
  --or-dark:     #A87840;
  --or-glow:     rgba(201,150,90,0.25);
  --rose:        #E8527A;
  --rose-light:  #F07898;
  --rose-glow:   rgba(232,82,122,0.2);
  --lavande:     #9B7FD4;
  --vert:        #10B981;
  --rouge:       #EF4444;
  --blanc:       #FFFFFF;

  /* Gradients */
  --grad-or:    linear-gradient(135deg, #C9965A 0%, #E8B87A 50%, #C9965A 100%);
  --grad-rose:  linear-gradient(135deg, #E8527A 0%, #F07898 100%);
  --grad-hero:  linear-gradient(160deg, #C9965A 0%, #E8527A 60%, #9B7FD4 100%);
  --grad-text:  linear-gradient(135deg, #E8B87A 0%, #C9965A 100%);

  /* Typographie */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', 'Segoe UI', system-ui, sans-serif;

  /* Espacements */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:  0 24px 80px rgba(0,0,0,0.5);
  --shadow-or:  0 0 40px var(--or-glow);
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--noir);
  color: var(--texte);
  line-height: 1.6;
  overflow-x: hidden;
  /* cursor: none; — supprimé, curseur natif conservé */
}

/* Scrollbar */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--noir); }
::-webkit-scrollbar-thumb { background: var(--or); border-radius: 2px; }

/* ── GRAIN ─────────────────────────────────────────────────── */
.grain-overlay {
  position: fixed; inset: 0; z-index: 900;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
}

/* ── CURSEUR CUSTOM ────────────────────────────────────────── */
.cursor, .cursor-ring { display: none !important; }

/* ── TYPOGRAPHIE ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); }

p  { line-height: 1.75; }
em { font-style: italic; }
strong { font-weight: 600; }

a {
  color: var(--or-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--or); }

/* ── CONTENEURS ────────────────────────────────────────────── */
.container        { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container--md    { max-width: 900px;  margin: 0 auto; padding: 0 32px; }
.container--sm    { max-width: 720px;  margin: 0 auto; padding: 0 32px; }
.container--xs    { max-width: 580px;  margin: 0 auto; padding: 0 32px; }

/* ── BOUTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; cursor: pointer; border: none; letter-spacing: 0.02em;
  position: relative; overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s;
}
.btn:hover::after { background: rgba(255,255,255,0.07); }

.btn--or {
  background: var(--grad-or); background-size: 200% auto;
  color: var(--noir);
  box-shadow: 0 0 28px var(--or-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: shimmer 4s linear infinite;
}
.btn--or:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(201,150,90,0.5); color: var(--noir); }

.btn--ghost {
  background: transparent; color: var(--texte);
  border: 1px solid var(--bordure); backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(201,150,90,0.35); color: var(--or-light); }

.btn--rose {
  background: var(--grad-rose); color: #fff;
  box-shadow: 0 0 28px var(--rose-glow);
}
.btn--rose:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(232,82,122,0.45); color: #fff; }

.btn--outline-or {
  background: transparent; color: var(--or-light);
  border: 1.5px solid rgba(201,150,90,0.4);
}
.btn--outline-or:hover { background: rgba(201,150,90,0.08); border-color: var(--or); }

.btn--lg { padding: 16px 36px; font-size: 1rem; }
.btn--sm { padding: 9px 20px; font-size: 0.82rem; }
.btn--full { width: 100%; }

/* ── TAG ───────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(201,150,90,0.25);
  color: var(--or-light); background: rgba(201,150,90,0.07);
}
.tag::before { content: '◆'; font-size: 0.45rem; }
.tag--rose {
  border-color: rgba(232,82,122,0.25); color: var(--rose-light);
  background: rgba(232,82,122,0.07);
}
.tag--rose::before { color: var(--rose); }

/* ── DIVIDER ───────────────────────────────────────────────── */
.divider {
  height: 1px; background: var(--bordure);
  margin: 48px 0;
}

/* ── ALERT / MESSAGES ──────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 0.875rem; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert--success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); color: #6EE7B7; }
.alert--error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.25);  color: #FCA5A5; }
.alert--info    { background: rgba(201,150,90,0.08); border: 1px solid rgba(201,150,90,0.2);  color: var(--or-light); }
.alert__icon    { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ── GRADIENT TEXT ─────────────────────────────────────────── */
.gradient-text {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── REVEAL AU SCROLL ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── PAGE HERO (en-têtes pages intérieures) ────────────────── */
.page-hero {
  padding: 140px 0 70px;
  position: relative; overflow: hidden;
  background: var(--nuit);
  border-bottom: 1px solid var(--bordure);
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
}
.page-hero__orb--1 {
  width: 500px; height: 500px; top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(201,150,90,0.12), transparent);
  animation: orbFloat 12s ease-in-out infinite;
}
.page-hero__orb--2 {
  width: 400px; height: 400px; bottom: -100px; left: -80px;
  background: radial-gradient(circle, rgba(232,82,122,0.09), transparent);
  animation: orbFloat 9s ease-in-out infinite reverse;
}
.page-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.page-hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start;
}
.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--blanc); font-weight: 600;
}
.page-hero__sub {
  font-size: 1.05rem; color: var(--texte-dim);
  max-width: 560px; font-weight: 300; line-height: 1.75;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(20px,-25px) scale(1.05); }
  66%      { transform: translate(-12px,18px) scale(0.95); }
}

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb { margin-top: 8px; }
.breadcrumb ol {
  display: flex; align-items: center; gap: 8px;
  list-style: none; flex-wrap: wrap;
}
.breadcrumb li { font-size: 0.8rem; color: var(--texte-mute); }
.breadcrumb li a { color: var(--texte-dim); transition: color 0.2s; }
.breadcrumb li a:hover { color: var(--or-light); }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; }
.breadcrumb li[aria-current="page"] { color: var(--or-light); }

/* ── LAYOUT PAGE INTÉRIEURE ────────────────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 64px 0 80px;
  align-items: start;
}
.page-layout--full { display: block; padding: 64px 0 80px; }

/* Sidebar sommaire */
.page-sidebar {
  position: sticky; top: 100px;
}
.page-toc {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 24px;
}
.page-toc__title {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--texte-mute); margin-bottom: 16px;
}
.page-toc ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.page-toc ul li a {
  display: block; padding: 7px 10px; border-radius: var(--radius-xs);
  font-size: 0.82rem; color: var(--texte-dim);
  transition: all 0.2s; border-left: 2px solid transparent;
}
.page-toc ul li a:hover {
  background: rgba(201,150,90,0.06); color: var(--or-light);
  border-left-color: var(--or);
}
.page-toc ul li a.active {
  background: rgba(201,150,90,0.08); color: var(--or-light);
  border-left-color: var(--or);
}

/* Contenu légal */
.legal-content { min-width: 0; }
.legal-content section { margin-bottom: 52px; scroll-margin-top: 100px; }
.legal-content h2 {
  font-size: 1.6rem; color: var(--blanc); margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--bordure);
  display: flex; align-items: center; gap: 10px;
}
.legal-content h2 .section-num {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--or); background: rgba(201,150,90,0.12);
  padding: 3px 10px; border-radius: 20px;
  font-family: var(--font-body); flex-shrink: 0;
}
.legal-content h3 {
  font-size: 1.15rem; color: var(--texte); margin: 24px 0 12px;
}
.legal-content p {
  font-size: 0.9rem; color: var(--texte-dim); line-height: 1.8;
  margin-bottom: 14px;
}
.legal-content ul, .legal-content ol {
  margin: 12px 0 14px 20px; display: flex; flex-direction: column; gap: 8px;
}
.legal-content li { font-size: 0.9rem; color: var(--texte-dim); line-height: 1.7; }
.legal-content strong { color: var(--texte); font-weight: 600; }
.legal-content a { color: var(--or-light); }

/* Info box */
.info-box {
  background: rgba(201,150,90,0.06); border: 1px solid rgba(201,150,90,0.2);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 20px 0;
}
.info-box p { font-size: 0.875rem; color: var(--or-light); margin: 0; }
.info-box--blue {
  background: rgba(59,130,246,0.06); border-color: rgba(59,130,246,0.2);
}
.info-box--blue p { color: #93C5FD; }

/* Date de mise à jour */
.legal-update {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 50px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--bordure);
  font-size: 0.78rem; color: var(--texte-mute);
  margin-bottom: 40px;
}
.legal-update::before { content: '🗓'; font-size: 0.85rem; }

/* ── FORMULAIRES ────────────────────────────────────────────── */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--texte); margin-bottom: 8px;
}
.form-label span { color: var(--rose); margin-left: 3px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 13px 16px;
  background: var(--surface); border: 1px solid var(--bordure2);
  border-radius: var(--radius-sm); color: var(--texte);
  font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(201,150,90,0.5);
  box-shadow: 0 0 0 3px rgba(201,150,90,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--texte-mute); }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-select option { background: var(--surface2); }
.form-hint { font-size: 0.78rem; color: var(--texte-mute); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Checkbox custom */
.form-check {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: 0.875rem; color: var(--texte-dim); line-height: 1.6;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--or); cursor: pointer;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; gap: 32px; }
  .page-sidebar { position: static; }
}
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  .container, .container--md, .container--sm { padding: 0 20px; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero { padding: 110px 0 50px; }
}
@media (max-width: 480px) {
  .btn { padding: 12px 22px; }
}