/* ═══════════════════════════════════════════════════
   MON EXPERT DEVIS — Design System Global
   ═══════════════════════════════════════════════════ */

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

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

:root {
  --ink: #1a1614;
  --ink-soft: #4a3f3a;
  --cream: #faf7f2;
  --warm-white: #fff9f4;
  --gold: #c8923c;
  --gold-light: #e8b96a;
  --gold-pale: #f5e8d0;
  --slate: #2c3e50;
  --slate-light: #e8ecf0;
  --green: #2d7a4f;
  --green-pale: #e8f4ee;
  --red-pale: #fdecea;
  --red: #c0392b;
  --border: rgba(26,22,20,0.10);
  --shadow-sm: 0 2px 8px rgba(26,22,20,0.08);
  --shadow-md: 0 8px 32px rgba(26,22,20,0.12);
  --shadow-lg: 0 24px 64px rgba(26,22,20,0.16);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--ink); line-height: 1.65; overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,247,242,0.93); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-md); }

.nav-logo {
  font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo-badge {
  width: 32px; height: 32px; background: var(--gold); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.9rem;
}

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active-nav { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important; color: white !important;
  padding: 10px 20px; border-radius: 50px;
  font-weight: 600 !important; font-size: 0.875rem !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: #b07830 !important; transform: translateY(-1px); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-menu {
  position: fixed; top: 68px; left: 0; right: 0;
  background: white; padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: none; flex-direction: column; gap: 4px; z-index: 99;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: 12px 16px; color: var(--ink-soft); text-decoration: none; font-weight: 500; border-radius: 8px; }
.mobile-menu a:hover { background: var(--gold-pale); color: var(--gold); }
.mobile-menu .nav-cta { background: var(--gold) !important; color: white !important; text-align: center; margin-top: 8px; border-radius: 50px; }

/* ── PAGE HERO (pour pages intérieures) ── */
.page-hero {
  background: var(--slate); color: white;
  padding: 120px 32px 72px; text-align: center;
}
.page-hero-label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 14px; }
.page-hero h1 { font-family: 'Fraunces', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 16px; }
.page-hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 300; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'Fraunces', serif; line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; color: var(--ink); margin-bottom: 16px; }
h2 em { font-style: italic; color: var(--gold); font-weight: 300; }
h3 { font-size: 1.2rem; font-weight: 600; color: var(--ink); }

.section-label {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 10px;
}
.section-desc { font-size: 1.05rem; color: var(--ink-soft); max-width: 560px; line-height: 1.7; }

/* ── SECTIONS ── */
section { padding: 88px 32px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: white; padding: 15px 28px;
  border-radius: 50px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(200,146,60,0.35);
}
.btn-primary:hover { background: #b07830; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(200,146,60,0.45); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  padding: 14px 26px; border-radius: 50px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid var(--border); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-soft); font-weight: 500; text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
}
.btn-ghost:hover { color: var(--gold); }

/* ── CARDS ── */
.card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* ── FOOTER ── */
footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 64px 32px 32px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { font-family: 'Fraunces', serif; font-size: 1.15rem; color: white; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer-tagline { font-size: 0.875rem; line-height: 1.6; margin-bottom: 18px; }
.footer-email { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-size: 0.875rem; text-decoration: none; }
.footer-col-title { color: white; font-weight: 600; margin-bottom: 14px; font-size: 0.875rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { max-width: 1100px; margin: 28px auto 0; display: flex; justify-content: space-between; font-size: 0.78rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.form-input, .form-select, .form-textarea {
  padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif;
  font-size: 0.925rem; color: var(--ink); background: white;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,146,60,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-hint { font-size: 0.78rem; color: var(--ink-soft); }

/* ── UTILITIES ── */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 64px 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-hero { padding: 100px 20px 56px; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
}
