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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

section {
  padding: 80px 0;
  position: relative;
}

/* Base Typo */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-main);
  letter-spacing: -1px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  text-align: center;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-color);
  border-bottom: 2px solid var(--surface-border);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  text-decoration: none;
  display: block;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.logo-ay {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -1px;
}

/* Specific color for the Y like in the logo */
.logo-ay { color: var(--primary-color); }
.logo-ay::first-letter { color: var(--text-main); }

.logo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 2px 0;
  position: relative;
}

.logo-divider::before, .logo-divider::after {
  content: '';
  height: 1px;
  background: var(--primary-color);
  flex-grow: 1;
}

.diamond {
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  transform: rotate(45deg);
  margin: 0 8px;
}

.logo-conseil {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--text-main);
  text-transform: uppercase;
  margin-left: 6px; /* Offset to center optically due to spacing */
}

.logo-tagline {
  font-family: var(--font-sans);
  font-size: 0.45rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 2001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-main);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.menu-toggle.active span { background: var(--primary-color); }
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 991px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
  }
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a {
    font-size: 1.8rem;
    font-weight: 700;
  }
}

.footer {
  background-color: var(--surface-color);
  border-top: 4px solid var(--primary-color);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; line-height: 1.2; }
  h2 { font-size: 1.6rem; }
  section { padding: 50px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .container { padding: 0 20px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .subtitle { font-size: 1rem; }
  .btn { padding: 12px 24px; font-size: 0.95rem; }
  .btn-primary { padding: 14px 28px; }
}
