:root {
  --cream: #f5f0e8;
  --warm-black: #0a0806;
  --gold: #c9a84c;
  --gold-dim: #8a6d32;
  --text-dark: #2a2520;
  --border-light: rgba(10, 8, 6, 0.1);
  --transition-duration: 0.4s;
}

/* Réinitialisation et base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: 'Cormorant Garamond', serif;
  cursor: none; /* Masque le curseur natif pour utiliser le personnalisé */
  overflow-x: hidden;
  line-height: 1.6;
}

/* Personnalisation de la barre de défilement (crucial pour l'iframe) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Curseur personnalisé */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(201, 168, 76, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
}

.cursor.hovering {
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--gold);
}
.cursor-ring.hovering {
  opacity: 0;
}

/* Mise en page globale */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: linear-gradient(to bottom, var(--cream) 60%, transparent);
  z-index: 100;
}

nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

nav a {
  text-decoration: none;
  color: var(--warm-black);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  transition: color var(--transition-duration) ease;
}

nav a:hover {
  color: var(--gold);
}

/* Typographie */
h1 {
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--warm-black);
}

h1 span {
  font-style: italic;
  color: var(--gold-dim);
}

h2 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Boutons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--cream);
  background: var(--warm-black);
  padding: 12px 24px;
  border: 1px solid var(--warm-black);
  transition: all var(--transition-duration) ease;
  text-transform: lowercase;
}

.btn:hover {
  background: transparent;
  color: var(--warm-black);
}

/* Grille de projets */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  border: 1px solid var(--border-light);
  padding: 2rem;
  background: transparent;
  transition: transform var(--transition-duration) ease, border-color var(--transition-duration) ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.card h3 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.card .tech {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold-dim);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.card p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  nav { gap: 1.5rem; }
  section { padding: 4rem 0; }
}