/* ============================================================
   AiterEgo — ALT (magazine / Bebas Neue, pastel brutalism)
   inspired by the Variant "card-grid editorial" template
   ============================================================ */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #555555;
  --line: #dddddd;
  --border: 2px solid #000000;
  --peach: #FFE0B2;
  --mint: #C8E6C9;
  --pink: #F8BBD0;
  --purple: #D1C4E9;
  --mono: 'JetBrains Mono', monospace;
  --display: 'Bebas Neue', sans-serif;
  --body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: #111111;
  color: var(--fg);
  font-family: var(--body);
  line-height: 1.45;
  padding: 20px;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--pink); }
a { color: inherit; }
a, button, input, select, label { cursor: crosshair; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

.canvas {
  background-color: var(--bg);
  width: 100%;
  max-width: 1200px;
  border: var(--border);
  position: relative;
  overflow: hidden;
}

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(72px, 13vw, 170px); line-height: 0.82; letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 0.95; }
h3 { font-size: 26px; line-height: 1; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
p { font-size: 15px; line-height: 1.55; }
mark { background: var(--pink); color: inherit; padding: 0 0.12em; }
mark.mk-blue { background: var(--purple); }
mark.mk-orange { background: var(--peach); }

/* ---------- header ---------- */
header {
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  border-bottom: var(--border);
  align-items: start;
}
.brand-mark { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.brand-mark h1 { display: inline-block; }
.brand-ai {
  font-family: var(--mono);
  font-size: 12px;
  border: var(--border);
  padding: 3px 7px;
  margin-bottom: 14px;
}
.header-right { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.header-subline {
  font-family: var(--display);
  font-size: 26px;
  line-height: 0.95;
  text-transform: uppercase;
  text-align: right;
}
.lang { display: flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 12px; }
.lang button {
  font-family: var(--mono);
  font-size: 12px;
  background: none;
  border: none;
  text-transform: uppercase;
  padding: 2px 5px;
}
.lang button.active { background: var(--fg); color: var(--bg); }
.lang button:not(.active):hover { background: var(--peach); }

/* ---------- nav ---------- */
nav { border-bottom: var(--border); }
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 24px;
  border-bottom: var(--border);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.nav-row:last-child { border-bottom: none; }
.nav-row > span { font-family: var(--mono); font-size: 11px; }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { background: var(--peach); }

/* ---------- category bar ---------- */
.category-bar {
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 24px;
  display: flex;
  gap: 10px;
  border-bottom: var(--border);
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-tag {
  border: var(--border);
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  background: var(--bg);
  flex: 0 0 auto;
}
.category-tag:hover { background: var(--fg); color: var(--bg); }

/* ---------- main intro grid (problème) ---------- */
.main-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: var(--border);
}
.grid-col {
  border-right: var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.grid-col:last-child { border-right: none; }
.grid-col.peach { background: var(--peach); }

.card { display: flex; flex-direction: column; gap: 12px; }
.card-img {
  width: 100%;
  height: 230px;
  background-size: cover;
  background-position: center;
  border: var(--border);
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s ease;
}
.card:hover .card-img { filter: grayscale(0); }
.shape-pill { border-radius: 120px; }
.shape-asym { border-radius: 40px 0 40px 0; }

.tag-group { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  border: 1px solid var(--fg);
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.accent-frame { padding: 22px; border: var(--border); }
.accent-frame.pink { background: var(--pink); }
.accent-frame.mint { background: var(--mint); }
.accent-frame h3 { font-size: 26px; margin-top: 8px; }
.accent-frame p { font-size: 13.5px; margin-top: 10px; }
.mt-auto { margin-top: auto; }

/* ---------- generic section blocks ---------- */
.block-sec { padding: 40px 24px; border-bottom: var(--border); }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.sec-head h2 { max-width: 18ch; }
.sec-head .mono { color: var(--muted); }

/* ---------- metrics ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--fg);
  gap: 2px;
  border-bottom: var(--border);
}
.metric-box { background: var(--bg); padding: 36px 20px; text-align: center; }
.metric-box.alt1 { background: var(--purple); }
.metric-box.alt2 { background: var(--mint); }
.metric-value { font-family: var(--display); font-size: clamp(48px, 6vw, 80px); line-height: 1; }
.metric-label { font-family: var(--mono); font-size: 11px; margin-top: 10px; text-transform: uppercase; }

/* ---------- offres ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { border: var(--border); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.svc-card.peach { background: var(--peach); }
.svc-card.mint { background: var(--mint); }
.svc-card.purple { background: var(--purple); }
.svc-card .svc-no { font-family: var(--mono); font-size: 11px; }
.svc-card p { font-size: 14px; }

/* ---------- méthode (feature rows) ---------- */
.feature-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--fg);
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: baseline;
}
.feature-row:first-of-type { border-top: 1px solid var(--fg); }
.feature-row:hover { background: #faf7f2; }
.feature-row .fr-no { font-family: var(--display); font-size: 36px; line-height: 0.8; }
.feature-row .fr-body h3 { font-size: 22px; margin-bottom: 6px; }
.feature-row .fr-body p { font-size: 14px; max-width: 70ch; }
.feature-row .fr-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  border: var(--border);
  padding: 4px 8px;
  white-space: nowrap;
}

/* ---------- cas d'usage ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.uc-card { border: var(--border); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.uc-card .uc-dom {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  width: fit-content; border: 1px solid var(--fg); padding: 3px 8px;
}
.uc-card h3 { font-size: 24px; }
.uc-card p { font-size: 14px; }
.uc-metric { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 8px; }
.uc-metric b { font-family: var(--display); font-size: 40px; line-height: 0.8; }
.uc-metric span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; }

/* ---------- témoignages ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote { border: var(--border); padding: 26px; display: flex; flex-direction: column; gap: 18px; background: var(--mint); }
.quote:nth-child(2) { background: var(--peach); }
.quote .q-mark { font-family: var(--display); font-size: 64px; line-height: 0.5; height: 30px; }
.quote blockquote { font-size: 17px; line-height: 1.4; font-weight: 500; }
.quote figcaption { font-family: var(--mono); font-size: 11px; text-transform: uppercase; margin-top: auto; }
.quote figcaption b { display: block; font-weight: 700; }
.quote figcaption a { text-decoration: underline; }

/* ---------- fondateur ---------- */
.founder { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.founder-photo { border: var(--border); aspect-ratio: 4/5; overflow: hidden; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; filter: grayscale(1); transition: filter 0.4s ease; }
.founder:hover .founder-photo img { filter: grayscale(0); }
.founder h3 { font-size: 34px; }
.founder-role { font-family: var(--mono); font-size: 11px; text-transform: uppercase; background: var(--mint); width: fit-content; padding: 2px 8px; margin: 8px 0 14px; }
.founder-body p { font-size: 15px; max-width: 62ch; }
.founder-links { display: flex; gap: 16px; margin-top: 16px; }
.founder-links a { font-family: var(--mono); font-size: 11px; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--fg); }
.founder-links a:hover { background: var(--peach); }

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--fg); }
.faq-item:first-child { border-top: 1px solid var(--fg); }
.faq-q {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  text-align: left; background: none; border: none; padding: 20px 0;
  font-family: var(--display); font-size: 24px; text-transform: uppercase; line-height: 1;
}
.faq-q:hover { background: #faf7f2; }
.faq-ic { font-family: var(--mono); font-size: 20px; width: 28px; height: 28px; border: var(--border); display: flex; align-items: center; justify-content: center; transition: transform 0.25s ease; flex: 0 0 auto; }
.faq-item.open .faq-ic { transform: rotate(45deg); background: var(--peach); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { font-size: 14px; line-height: 1.6; max-width: 75ch; padding-bottom: 22px; }

/* ---------- contact / footer ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: var(--border); }
.contact-left { padding: 40px 24px; border-right: var(--border); }
.contact-left h2 { font-size: clamp(40px, 6vw, 72px); }
.contact-left p { margin-top: 18px; max-width: 42ch; }
.channels { margin-top: 28px; display: flex; flex-direction: column; gap: 0; }
.channel { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--fg); font-family: var(--mono); font-size: 12px; text-transform: uppercase; align-items: baseline; }
.channel:last-child { border-bottom: 1px solid var(--fg); }
.channel .cl { color: var(--muted); }
.channel a { text-decoration: none; }
.channel a:hover { background: var(--peach); }

.cta-box { background: var(--fg); color: var(--bg); padding: 40px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cta-box .mono { color: var(--bg); opacity: 0.8; }
.cta-box h2 { font-size: clamp(44px, 6vw, 64px); }
.cta-box p { font-size: 14px; opacity: 0.85; max-width: 40ch; }
.btn-large {
  display: inline-block; background: var(--bg); color: var(--fg);
  padding: 16px 30px; font-family: var(--display); font-size: 24px; text-transform: uppercase;
  border: none; text-decoration: none; transition: transform 0.1s, background 0.1s;
}
.btn-large:hover { background: var(--peach); }
.btn-large:active { transform: scale(0.98); }
.cta-note { font-family: var(--mono); font-size: 10px; opacity: 0.7; }

/* form */
.contact-form { padding: 40px 24px; border-right: var(--border); display: flex; flex-direction: column; gap: 18px; }
.contact-form h2 { font-size: 40px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.field input, .field select {
  font-family: var(--mono); font-size: 13px; background: transparent;
  border: none; border-bottom: 2px solid var(--fg); padding: 8px 2px; border-radius: 0;
  appearance: none; -webkit-appearance: none;
}
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--purple); }
.btn-submit { background: var(--fg); color: var(--bg); border: none; padding: 16px 24px; font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.btn-submit:hover { background: var(--purple); color: var(--fg); }
.btn-submit.sent { background: var(--mint); color: var(--fg); }

/* ---------- footer bottom ---------- */
.footer-bottom { padding: 18px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  body { padding: 10px; }
  header { grid-template-columns: 1fr; }
  .header-right { align-items: flex-start; }
  .header-subline { text-align: left; }
  .main-grid { grid-template-columns: 1fr; }
  .grid-col { border-right: none; border-bottom: var(--border); }
  .grid-col:last-child { border-bottom: none; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .uc-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 260px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-left, .contact-form { border-right: none; border-bottom: var(--border); }
  .feature-row { grid-template-columns: 40px 1fr; }
  .feature-row .fr-tag { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
