/* ============================================
   ACE NUMEN — Feuille de style globale
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

/* --- Variables --- */
:root {
  --noir:        #1a1a1a;
  --blanc:       #faf9f7;
  --creme:       #f2efe9;
  --or:          #8b7355;
  --or-clair:    #c4a882;
  --texte:       #3a3530;
  --texte-light: #7a746e;
  --trait:       #ddd8d0;

  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Inter', system-ui, sans-serif;

  --max-width:   860px;
  --gutter:      clamp(1.5rem, 5vw, 4rem);
}

/* --- Reset de base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typographie --- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--noir);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 500; }

p  { font-size: clamp(0.95rem, 1.5vw, 1.05rem); }

.serif   { font-family: var(--serif); }
.muted   { color: var(--texte-light); }
.upper   { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 500; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trait);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--noir);
}

.nav-logo span {
  color: var(--or);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--texte-light);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--noir);
}

.nav-cta {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--or);
  border: 1px solid var(--or-clair);
  padding: 0.5rem 1.2rem;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--or);
  color: var(--blanc);
  border-color: var(--or);
}

/* Burger mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--texte);
  transition: all 0.3s;
}

/* --- Contenu principal --- */
main { padding-top: 64px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Sections --- */
.section {
  padding: clamp(4rem, 8vw, 8rem) var(--gutter);
}

.section--creme {
  background: var(--creme);
}

.section--noir {
  background: var(--noir);
  color: var(--blanc);
}

.section--noir h1,
.section--noir h2,
.section--noir h3 {
  color: var(--blanc);
}

/* --- Trait décoratif --- */
.divider {
  width: 40px;
  height: 1px;
  background: var(--or);
  margin: 1.5rem 0;
}

.divider--center { margin: 1.5rem auto; }

/* --- Boutons --- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.85rem 2rem;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--noir);
  color: var(--blanc);
}

.btn--primary:hover {
  background: var(--or);
}

.btn--outline {
  border: 1px solid var(--noir);
  color: var(--noir);
  background: transparent;
}

.btn--outline:hover {
  background: var(--noir);
  color: var(--blanc);
}

.btn--outline-or {
  border: 1px solid var(--or-clair);
  color: var(--or);
  background: transparent;
}

.btn--outline-or:hover {
  background: var(--or);
  color: var(--blanc);
  border-color: var(--or);
}

.btn--blanc {
  background: var(--blanc);
  color: var(--noir);
}

.btn--blanc:hover {
  background: var(--or);
  color: var(--blanc);
}

/* --- Lien flèche --- */
.link-arrow {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--or);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.link-arrow::after { content: '→'; }
.link-arrow:hover  { gap: 0.9rem; }

/* --- Grilles --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: start;
}

/* --- Carte bloc --- */
.bloc {
  padding: 2.5rem;
  border-top: 1px solid var(--trait);
}

.bloc-num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--or-clair);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1rem;
}

/* --- Citation isolée --- */
.citation {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--noir);
  text-align: center;
  padding: clamp(3rem, 6vw, 6rem) var(--gutter);
  max-width: 720px;
  margin: 0 auto;
}

.citation::before { content: '\201C'; }
.citation::after  { content: '\201D'; }

/* --- Section hero --- */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 10vw, 10rem) var(--gutter) clamp(4rem, 8vw, 8rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-label {
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-style: italic;
  color: var(--texte-light);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* --- Formulaire --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--texte-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--trait);
  padding: 0.6rem 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--texte);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--or);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Footer --- */
.footer {
  background: var(--noir);
  color: var(--blanc);
  padding: 3rem var(--gutter);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.footer-logo span { color: var(--or-clair); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--or-clair); }

.footer-copy {
  width: 100%;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 0.5rem;
}

/* --- Utilitaires --- */
.text-center { text-align: center; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mt-6  { margin-top: 3rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.mb-6  { margin-bottom: 3rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--blanc);
    border-bottom: 1px solid var(--trait);
    padding: 1.5rem var(--gutter) 2rem;
    gap: 1.5rem;
  }

  .nav-links.open + .nav-cta {
    display: block;
    margin: 0 var(--gutter) 1.5rem;
  }

  .grid-3 { grid-template-columns: 1fr; gap: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .bloc { padding: 2rem 0; }
}
