/* ============================================================
   DJOLIE-PHOTO — Design system cinématique (public + admin)
   Remplace cette feuille par ton CSS réel si tu veux le match pixel-perfect.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Sora:wght@300;400;500;600&display=swap');

:root {
  --bg:        #0a0a0b;
  --bg-soft:   #121214;
  --panel:     #161618;
  --line:      rgba(255,255,255,.08);
  --text:      #f3f1ec;
  --muted:     #9a978f;
  --gold:      #d4af6e;
  --gold-soft: rgba(212,175,110,.14);
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Sora', system-ui, sans-serif;
  --radius: 14px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* --- Grain cinématique --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
}

.italic { font-style: italic; color: var(--gold); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #1a1407;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold-soft); }
.btn--danger { border-color: #c45b5b; background: transparent; color: #e08a8a; }
.btn--danger:hover { background: rgba(196,91,91,.12); }

/* --- Formulaires --- */
label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .4rem; letter-spacing: .04em; }
input[type=text], input[type=email], input[type=password], input[type=url], textarea, select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: .95rem;
  padding: .8rem 1rem;
  transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 120px; }
.field { margin-bottom: 1.4rem; }

.note { font-size: .8rem; color: var(--muted); }
.flash { padding: .9rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem; font-size: .9rem; }
.flash--err { background: rgba(196,91,91,.12); border: 1px solid rgba(196,91,91,.4); color: #e8a3a3; }
.flash--ok  { background: var(--gold-soft); border: 1px solid rgba(212,175,110,.4); color: var(--gold); }

.badge {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge--gold { border-color: var(--gold); color: var(--gold); }
