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

:root {
  --grad-start:  #0b2058;
  --grad-end:    #2563eb;
  --blanc:       #f8f6f2;
  --blanc-soft:  #eceae4;
  --accent:      #f0a500;
  --accent-soft: rgba(240,165,0,0.15);
  --text:        #1a1a2e;
  --text-muted:  #5a6080;
  --card-bg:     #ffffff;
  --card-border: rgba(37,99,235,0.12);
  --shadow:      0 4px 24px rgba(11,32,88,0.10);
}

html { scroll-behavior: smooth; }

body {
  background: var(--blanc);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────── */
.menu {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(11,32,88,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(248,246,242,0.6);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover { color: var(--blanc); }

.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── HERO ────────────────────────────────────── */
.hero {
  min-height: 52vh;
  background: linear-gradient(to bottom right, var(--grad-start), var(--grad-end));
  display: flex; align-items: flex-end;
  padding: 0 48px 72px;
  position: relative;
  overflow: hidden;
}

/* Cercles décoratifs */
.hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  top: -120px; right: -80px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  bottom: 40px; right: 120px;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 80% 50%, rgba(240,165,0,0.06) 0%, transparent 70%);
}

.hero-content { position: relative; max-width: 680px; }

.hero-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(240,165,0,0.8);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 600;
  line-height: 1;
  color: var(--blanc);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-size: 15px;
  color: rgba(248,246,242,0.65);
  max-width: 480px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-desc strong {
  color: rgba(248,246,242,0.9);
  font-weight: 500;
}

/* ── FORM SECTION ────────────────────────────── */
.form-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 32px 120px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* ── FORM BLOCK ──────────────────────────────── */
.form-block {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  padding: 40px 40px 44px;
}

.form-block-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(37,99,235,0.08);
}

.form-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;
  color: rgba(37,99,235,0.15);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-block-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--grad-start);
  margin-bottom: 4px;
}

.form-block-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── RADIO TAILLE ────────────────────────────── */
.radio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.radio-card {
  cursor: pointer;
  flex: 1 1 120px;
}

.radio-card input { display: none; }

.radio-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 16px;
  border: 2px solid var(--card-border);
  border-radius: 10px;
  background: var(--blanc);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  text-align: center;
}

.radio-card:hover .radio-card-inner {
  border-color: var(--grad-end);
  background: rgba(37,99,235,0.03);
  transform: translateY(-2px);
}

.radio-card.selected .radio-card-inner {
  border-color: var(--grad-end);
  background: rgba(37,99,235,0.07);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

.radio-format {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--grad-start);
}

.radio-card.selected .radio-format { color: var(--grad-end); }

.radio-dims {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ── RADIO PAPIER ────────────────────────────── */
.paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.paper-card { cursor: pointer; }
.paper-card input { display: none; }

.paper-card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  border: 2px solid var(--card-border);
  border-radius: 10px;
  background: var(--blanc);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.paper-card:hover .paper-card-inner {
  border-color: var(--grad-end);
  background: rgba(37,99,235,0.03);
  transform: translateY(-2px);
}

.paper-card.selected .paper-card-inner {
  border-color: var(--grad-end);
  background: rgba(37,99,235,0.07);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

.paper-swatch {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.06);
}

.swatch-mat      { background: #d8d6d0; }
.swatch-brillant { background: linear-gradient(135deg, #e8e4dc, #f8f6f2, #d0ccc4); }
.swatch-lustre   { background: linear-gradient(135deg, #dddad4, #eeebe5); }
.swatch-postcard { background: linear-gradient(135deg, #c8e8f8, #e8f4fd); }

.paper-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--grad-start);
}

.paper-card.selected .paper-name { color: var(--grad-end); }

.paper-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── BOUTON ──────────────────────────────────── */
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-submit {
  padding: 16px 56px;
  background: linear-gradient(to right, var(--grad-start), var(--grad-end));
  color: var(--blanc);
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}

.btn-submit:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.4);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-notice {
  font-size: 14px;
  font-weight: 400;
}

.form-notice.error   { color: #c0392b; }
.form-notice.success { color: #1a7a4a; }
.form-notice.loading { color: var(--text-muted); }

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: linear-gradient(to right, var(--grad-start), var(--grad-end));
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(248,246,242,0.5);
  letter-spacing: 1px;
}

/* ── ANIMATIONS ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 700px) {
  .menu { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  .hero { padding: 0 24px 56px; min-height: 44vh; }
  .form-section { padding: 48px 16px 80px; gap: 40px; }
  .form-block { padding: 28px 20px 32px; }
  .radio-grid { gap: 8px; }
  footer { padding: 24px 20px; flex-direction: column; gap: 10px; text-align: center; }
}
