/* ===== ENCYCLIE — main.css ===== */

/* Palette */
:root {
  --color-primary:    #2B2D6E;
  --color-accent:     #E84855;
  --color-light:      #F7F5EF;
  --color-white:      #FFFFFF;
  --color-text:       #1A1A2E;
  --color-muted:      #6B6B8A;
  --color-border:     #E2DDD8;
  --font-heading:     'Cormorant Garamond', Georgia, serif;
  --font-body:        'Epilogue', system-ui, sans-serif;
  --container:        1180px;
  --radius:           8px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--color-primary);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 600; }
p { margin-bottom: 1rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: #c9333f;
  border-color: #c9333f;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.btn-white:hover {
  background: var(--color-light);
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.15s;
}
.nav-menu a:hover { color: var(--color-primary); }
.btn-contact {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.btn-contact:hover {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #2B2D6E 0%, #1a1c4e 60%, #E84855 160%);
  color: var(--color-white);
  padding: 96px 24px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: rgba(232,72,85,0.12);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 { color: var(--color-white); margin-bottom: 20px; }
.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  margin: 0 auto 36px;
  font-weight: 400;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-proof {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-proof-item { text-align: center; }
.hero-proof-item .number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}
.hero-proof-item .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* ===== SECTION LAYOUT ===== */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--color-muted); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 10px;
}

/* ===== SERVICES ===== */
.services { background: var(--color-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 36px 32px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(43,45,110,0.10);
  transform: translateY(-3px);
}
.service-card-image {
  margin: -36px -32px 20px;
  height: 200px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-image img {
  transform: scale(1.04);
}
.service-card-credit {
  font-size: 0.68rem;
  color: var(--color-muted);
  opacity: 0.5;
  margin-bottom: 16px;
  line-height: 1.3;
}
.service-card-credit a { color: inherit; }
.service-card h3 { margin-bottom: 10px; color: var(--color-primary); }
.service-card p { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 16px; }
.service-card ul { color: var(--color-muted); font-size: 0.88rem; display: flex; flex-direction: column; gap: 6px; }
.service-card ul li::before { content: '→ '; color: var(--color-accent); font-weight: 700; }

/* ===== DIFFERENTIATEUR ===== */
.diff { background: var(--color-white); }
.diff-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.diff-text h2 { margin-bottom: 16px; }
.diff-text p { color: var(--color-muted); margin-bottom: 20px; }
.diff-points { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.diff-point { display: flex; gap: 16px; align-items: flex-start; }
.diff-point-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--color-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.diff-point-text h4 { font-family: var(--font-body); font-weight: 600; margin-bottom: 4px; color: var(--color-primary); }
.diff-point-text p { color: var(--color-muted); font-size: 0.92rem; margin: 0; }
.diff-visual {
  background: linear-gradient(160deg, var(--color-light) 0%, #ede9e0 100%);
  border-radius: 16px;
  padding: 40px;
  position: relative;
}
.diff-compare { display: flex; flex-direction: column; gap: 16px; }
.diff-compare-row {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  gap: 12px;
}
.diff-compare-row .tag-bad  { color: #d44; font-weight: 700; font-size: 0.78rem; background: #fff0f0; padding: 2px 8px; border-radius: 4px; }
.diff-compare-row .tag-ok   { color: #a68800; font-weight: 700; font-size: 0.78rem; background: #fffbe6; padding: 2px 8px; border-radius: 4px; }
.diff-compare-row .tag-good { color: #1a7a4a; font-weight: 700; font-size: 0.78rem; background: #eafaf2; padding: 2px 8px; border-radius: 4px; }

/* ===== COLLECTIVE ===== */
.collective { background: var(--color-light); }
.collective-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.team-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--color-border);
}
.team-card .avatar {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}
.team-card .name { font-weight: 600; font-size: 0.95rem; color: var(--color-primary); margin-bottom: 2px; }
.team-card .role { font-size: 0.82rem; color: var(--color-muted); }
.team-card-wide {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  align-items: center;
  text-align: left;
  padding: 20px 24px;
}
.team-card-wide .avatar { margin: 0; flex-shrink: 0; }
.collective-text h2 { margin-bottom: 16px; }
.collective-text p { color: var(--color-muted); }
.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 24px;
}

/* ===== PROCESS ===== */
.process { background: var(--color-white); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}
.process-step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}
.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 28px;
  right: -12px;
  color: var(--color-border);
  font-size: 1.4rem;
}
.step-num {
  width: 56px; height: 56px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.process-step h3 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--color-muted); }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), #1a1c4e);
  color: var(--color-white);
  text-align: center;
  padding: 80px 24px;
}
.cta-section h2 { color: var(--color-white); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 36px; font-size: 1.05rem; }
.cta-section .btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  padding: 16px 40px;
  font-size: 1rem;
}
.cta-section .btn-accent:hover { background: #c9333f; }
.cta-meta { margin-top: 20px; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ===== FOOTER ===== */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
}
.footer-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.45); transition: color 0.15s; }
.footer-links a:hover { color: var(--color-white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .diff-inner, .collective-inner { grid-template-columns: 1fr; gap: 40px; }
  .diff-visual { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .process-step:not(:last-child)::after { display: none; }
  .process-steps { gap: 32px; }
  .hero-proof { gap: 24px; }
  .footer-content { flex-direction: column; text-align: center; }
}
