/*
Theme Name: Salesmachine
Theme URI: https://salesmachine.fr
Author: Fabien Lucron
Description: Thème sur-mesure pour Salesmachine, conseil en efficacité commerciale. Palette bleu nuit et or.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: salesmachine
*/

:root {
  --navy: #101826;
  --navy-soft: rgba(255, 255, 255, 0.03);
  --gold: #D4AF37;
  --gold-border: rgba(212, 175, 55, 0.25);
  --gold-border-soft: rgba(212, 175, 55, 0.15);
  --text-light: #F2F0EA;
  --text-muted: #9BA3B4;
  --text-dim: #8A93A6;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  color: var(--text-light);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  border-bottom: 0.5px solid var(--gold-border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 22px;
  height: 22px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
}
.logo-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--text-light);
}
.site-nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.site-nav a { color: var(--text-muted); }
.site-nav a:hover,
.site-nav a.active { color: var(--gold); }

/* Eyebrow / page heads */
.eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.page-head {
  padding: 56px 0 8px;
  text-align: center;
}
.page-head h1 {
  color: var(--text-light);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 16px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.page-head p.lead {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 28px;
}

/* Hero (home) */
.hero { padding: 56px 0 48px; text-align: center; }
.hero .btn { margin-top: 4px; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 11px 26px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn:hover { opacity: 0.92; }

/* Pillars grid (home + expertise) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--gold-border-soft);
  border-top: 0.5px solid var(--gold-border);
  border-bottom: 0.5px solid var(--gold-border);
}
.pillar { background: var(--navy); padding: 26px 20px; }
.pillar i { color: var(--gold); font-size: 22px; }
.pillar h3 {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  margin: 12px 0 6px;
}
.pillar p {
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0;
}

/* Detailed pillars (expertise page) */
.pillars-detailed {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--gold-border-soft);
  margin: 20px 0 40px;
}
.pillar-row {
  background: var(--navy);
  padding: 22px 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.pillar-row i { color: var(--gold); font-size: 22px; margin-top: 2px; }
.pillar-row h3 { color: var(--text-light); font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.pillar-row p { color: var(--text-dim); font-size: 12.5px; line-height: 1.7; margin: 0; }

/* Timeline (méthodologie) */
.timeline {
  padding: 40px 0 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: var(--gold-border);
}
.step { position: relative; text-align: center; }
.step-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
}
.step-icon i { color: var(--gold); font-size: 16px; }
.step .step-when { color: var(--gold); font-size: 11px; margin: 0 0 6px; }
.step h3 { color: var(--text-light); font-size: 13px; font-weight: 500; margin: 0 0 6px; }
.step p { color: var(--text-dim); font-size: 11.5px; line-height: 1.6; margin: 0; }

/* Cas client */
.case-head { padding: 40px 0 8px; }
.case-head h1 { color: var(--text-light); font-size: 24px; font-weight: 500; margin: 0 0 6px; }
.case-head p.sub { color: var(--text-dim); font-size: 12.5px; margin: 0 0 30px; }

.case-sections { display: flex; flex-direction: column; gap: 22px; padding-bottom: 48px; }
.case-block { display: flex; gap: 16px; align-items: flex-start; }
.case-block i { color: var(--gold); font-size: 18px; margin-top: 2px; }
.case-block h3 { color: var(--text-light); font-size: 13px; font-weight: 500; margin: 0 0 8px; }
.case-block p { color: var(--text-muted); font-size: 12.5px; line-height: 1.7; margin: 0; }
.case-block ul { color: var(--text-muted); font-size: 12.5px; line-height: 1.9; margin: 0; padding-left: 18px; }

/* À propos */
.about-head {
  padding: 56px 0 8px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold-border-soft);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 20px;
  font-weight: 500;
}
.about-head h1 { color: var(--text-light); font-size: 22px; font-weight: 500; margin: 0 0 4px; }
.about-head p.role { color: var(--text-muted); font-size: 13px; margin: 0; }

.bio { padding: 22px 0 8px; }
.bio p { color: var(--text-muted); font-size: 12.5px; line-height: 1.75; margin: 0; max-width: 640px; }

.stat-grid {
  padding: 26px 0 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat-card {
  background: var(--navy-soft);
  border: 0.5px solid var(--gold-border-soft);
  border-radius: 8px;
  padding: 16px;
}
.stat-card .num { color: var(--gold); font-size: 18px; font-weight: 500; margin: 0 0 4px; }
.stat-card p { color: var(--text-dim); font-size: 11.5px; line-height: 1.5; margin: 0; }

.media-row { padding: 24px 0 10px; }
.media-row .label { color: var(--text-dim); font-size: 11px; letter-spacing: 1.5px; margin: 0 0 12px; }
.media-row .items { display: flex; gap: 22px; flex-wrap: wrap; }
.media-row .items span { color: #B8B6AE; font-size: 13px; }

.badges { padding: 14px 0 56px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  background: var(--gold-border-soft);
  color: var(--gold);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 20px;
}

/* Contact */
.contact-grid {
  padding: 0 0 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid var(--gold-border);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--text-light);
  font-size: 13px;
  font-family: var(--font-sans);
  width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form button { align-self: flex-start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }
.contact-info .item { display: flex; gap: 12px; align-items: flex-start; }
.contact-info i { color: var(--gold); font-size: 17px; margin-top: 1px; }
.contact-info p { color: var(--text-muted); font-size: 12.5px; margin: 0; }
.form-notice {
  background: var(--gold-border-soft);
  color: var(--gold);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 12.5px;
  margin-bottom: 4px;
}

/* Footer */
.site-footer { border-top: 0.5px solid var(--gold-border); }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-inner p { color: var(--text-dim); font-size: 12px; margin: 0; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-dim); font-size: 12px; }
.footer-links a:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 720px) {
  .pillars,
  .pillars-detailed,
  .timeline,
  .stat-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .site-nav { gap: 14px; }
  .about-head { flex-direction: column; text-align: center; }
}
