/* ============================================================
   warfog.gg — Daniel Neveux
   Charte alignée sur transformation-ia.warfog.gg
   ============================================================ */

:root {
  --bg-dark: #222d22;
  --bg-dark-2: #1d271d;
  --cream: #efeade;
  --cream-2: #e5e0d2;
  --ink: #2b2b24;
  --ink-soft: #4a4a40;
  --gold: #b3854d;
  --gold-light: #c9a36a;
  --line-dark: rgba(239, 234, 222, 0.14);
  --line-light: rgba(43, 43, 36, 0.14);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "EB Garamond", Georgia, serif;
  --font-mono: "Space Mono", "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.55;
  background: var(--bg-dark);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header {
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line-dark);
}

header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}

nav { display: flex; gap: 28px; align-items: baseline; }

nav a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
  text-decoration: none;
}

nav a:hover, nav a.active { opacity: 1; color: var(--gold-light); }

.lang {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.lang a { color: var(--cream); opacity: 0.6; text-decoration: none; }
.lang a.on { opacity: 1; color: var(--gold-light); }
.lang span { opacity: 0.4; padding: 0 4px; }

/* ---------- Sections ---------- */

section { padding: 96px 0; }

section.light { background: var(--cream); color: var(--ink); }
section.light2 { background: var(--cream-2); color: var(--ink); }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 15ch; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 24ch; margin-bottom: 28px; }

h1 em, h2 em, .accent {
  font-style: italic;
  color: var(--gold);
}

section.light h2 em, section.light2 h2 em { color: var(--gold); }

.lead {
  font-size: 1.25rem;
  max-width: 58ch;
  margin-top: 28px;
  opacity: 0.92;
}

/* ---------- Hero ---------- */

.hero { padding: 110px 0 90px; }

.hero .cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: #1d271d;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 30px;
}

.btn:hover { background: var(--gold-light); }

.btn-ghost {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.8;
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 4px;
}

.btn-ghost:hover { opacity: 1; color: var(--gold-light); }

section.light .btn-ghost, section.light2 .btn-ghost {
  color: var(--ink);
  border-bottom-color: var(--line-light);
}

/* ---------- Stat band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-top: 80px;
}

.stats > div {
  padding: 28px 20px;
  border-left: 1px solid var(--line-dark);
}

.stats > div:first-child { border-left: none; }

.stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.stats small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---------- Two-column intro layout ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

/* ---------- Cards grid ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  margin-top: 48px;
}

section.dark-section .grid,
body > section:not(.light):not(.light2) .grid {
  background: var(--line-dark);
  border-color: var(--line-dark);
}

.card { background: var(--cream); padding: 40px 36px; }

section:not(.light):not(.light2) .card { background: var(--bg-dark); }

.card .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.card p { font-size: 1.05rem; opacity: 0.85; }

.card .tags { margin-top: 18px; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-light);
  padding: 5px 10px;
  margin: 0 6px 6px 0;
  opacity: 0.75;
}

section:not(.light):not(.light2) .tag { border-color: var(--line-dark); }

/* ---------- Offer rows ---------- */

.rows { margin-top: 40px; border-top: 1px solid var(--line-light); }

section:not(.light):not(.light2) .rows { border-top-color: var(--line-dark); }

.row {
  display: grid;
  grid-template-columns: 60px 1fr 1.4fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-light);
}

section:not(.light):not(.light2) .row { border-bottom-color: var(--line-dark); }

.row .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  padding-top: 8px;
}

.row h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
}

.row h3 a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--gold); }
.row h3 a:hover { color: var(--gold); }

.row .meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 10px;
}

.row p { font-size: 1.08rem; opacity: 0.88; }

.row p + p { margin-top: 12px; }

/* ---------- Table ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-size: 1rem;
}

th {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  opacity: 0.65;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-light);
}

td { padding: 12px 14px; border-bottom: 1px solid var(--line-light); }

section:not(.light):not(.light2) th,
section:not(.light):not(.light2) td { border-bottom-color: var(--line-dark); }

td.hl { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold); white-space: nowrap; }

/* ---------- Quote / method ---------- */

.principle {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  max-width: 30ch;
}

/* ---------- Logo strip (références) ---------- */

.logos { padding: 56px 0; }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 28px 32px;
  margin-top: 16px;
}

.logo-grid img {
  max-height: 30px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
}

section:not(.light):not(.light2) .logo-grid img {
  filter: grayscale(1) invert(0.9);
  opacity: 0.55;
}

/* ---------- Testimonials ---------- */

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.quotes blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
}

.quotes blockquote p::before { content: "\00AB\00A0"; color: var(--gold); }
.quotes blockquote p::after { content: "\00A0\00BB"; color: var(--gold); }

.quotes .src {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  font-style: normal;
}

.malt-line { margin-top: 40px; font-size: 1.1rem; }
.malt-line a { color: inherit; border-bottom: 1px solid var(--gold); text-decoration: none; }
.malt-line a:hover { color: var(--gold); }

/* ---------- Portrait ---------- */

.hero-top {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-top > div:first-child { flex: 1; min-width: 280px; }

.portrait-round {
  width: 240px;
  object-fit: cover;
  filter: saturate(0.85);
  border: 1px solid var(--line-dark);
  margin-top: 48px;
}

@media (max-width: 860px) {
  .portrait-round { width: 120px; height: 120px; margin-top: 0; }
}

/* ---------- Footer ---------- */

footer {
  padding: 40px 0;
  border-top: 1px solid var(--line-dark);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}

footer a { color: var(--cream); text-decoration: none; }
footer a:hover { color: var(--gold-light); }

/* ---------- Contact ---------- */

.contact-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.15rem;
}

.contact-list a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.contact-list a:hover { color: var(--gold-light); }

.contact-list .label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  display: inline-block;
  width: 110px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  section { padding: 68px 0; }
  .hero { padding: 72px 0 60px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(odd) { border-left: none; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .row { grid-template-columns: 40px 1fr; }
  .row p:not(.meta) { grid-column: 2; }
  .row > div:last-child { grid-column: 2; }
}
