/* aiillusionist.fr — Tech editorial blog style
 * Inspired by The Verge / Quartz / Wired (clean modern editorial)
 * Light bg, sans-serif tight headlines, editorial red accent
 */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --bg-tint: #fff5f3;
  --text: #0d0d0d;
  --text-soft: #2e2e2e;
  --text-dim: #686868;
  --text-mute: #a0a0a0;
  --accent: #e63946;
  --accent-deep: #ba2532;
  --accent-soft: #fadbdc;
  --line: rgba(0,0,0,0.10);
  --line-soft: rgba(0,0,0,0.05);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* NAV */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.nav-brand {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* nav-brand::before removed: logo PNG now includes the red accent square */
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color .15s;
  letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  font-size: 13px;
  font-weight: 700;
  color: white !important;
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 4px;
  letter-spacing: 0.01em;
  transition: background .15s;
}
.nav-cta:hover { background: var(--accent-deep) !important; }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ARTICLE */
article {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
@media (max-width: 640px) {
  article { padding: 32px 20px 60px; }
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .15s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-mute); }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 10px;
  background: var(--bg-tint);
  border-radius: 3px;
  margin-bottom: 22px;
}

h1.article-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--text);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}
.byline .author { font-weight: 600; color: var(--text); }
.byline .sep { color: var(--text-mute); }

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 12px;
}
.hero-caption {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  margin: 0 0 36px;
}

.lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-soft);
  font-weight: 500;
  margin: 0 0 36px;
}

article p {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 24px;
  color: var(--text-soft);
}
article p strong { color: var(--text); font-weight: 700; }
article p em { color: var(--text); font-style: italic; }
article p a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color .15s;
}
article p a:hover { text-decoration-color: var(--accent); }

article h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 52px 0 18px;
  color: var(--text);
}

article h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 36px 0 14px;
  color: var(--text);
}

article ul, article ol {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-soft);
  padding-left: 24px;
  margin: 0 0 24px;
}
article ul li, article ol li { margin-bottom: 8px; }
article li strong { color: var(--text); font-weight: 700; }

.pullquote {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 24px 0;
  margin: 40px 0;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
}
.pullquote cite {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-top: 16px;
  text-transform: uppercase;
}

.callout {
  padding: 22px 26px;
  background: var(--bg-tint);
  border-left: 3px solid var(--accent);
  margin: 32px 0;
}
.callout .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}
.callout p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
}

.figure {
  margin: 36px 0;
}
.figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.figure figcaption {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 10px;
}

.ranking-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
}
.ranking-item:last-of-type { border-bottom: none; }
.ranking-item .rank {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ranking-item h3 {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  letter-spacing: -0.015em;
}
.ranking-item p { font-size: 17px; line-height: 1.65; }

.cta-box {
  padding: 36px 32px;
  background: var(--text);
  color: white;
  margin: 56px 0;
  border-radius: 4px;
}
.cta-box .cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.cta-box h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: white;
  margin: 0 0 12px;
  line-height: 1.15;
}
.cta-box p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 22px;
  line-height: 1.6;
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 3px;
  text-decoration: none;
  transition: background .15s;
}
.cta-btn:hover { background: var(--accent-deep); }
.cta-btn-secondary {
  display: inline-block;
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 22px;
  text-decoration: none;
  margin-left: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.faq-list {
  margin: 32px 0;
}
.faq-q {
  border-bottom: 1px solid var(--line-soft);
}
.faq-q:last-child { border-bottom: none; }
.faq-q summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after {
  content: '+';
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--accent);
  margin-left: 16px;
}
.faq-q[open] summary::after { content: '−'; }
.faq-q .answer {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-soft);
  padding: 0 0 20px;
}
.faq-q .answer strong { color: var(--text); }

.related {
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 2px solid var(--text);
}
.related-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.related-grid a {
  padding: 14px 16px;
  background: var(--bg-soft);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  transition: all .15s;
  border-radius: 3px;
}
.related-grid a:hover {
  background: var(--text);
  color: white;
}

footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 30px;
  margin-top: 80px;
}
.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.foot-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-brand::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}
.foot-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}
.foot-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 14px;
}
.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.foot-col li { margin-bottom: 9px; }
.foot-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color .15s;
}
.foot-col a:hover { color: var(--accent); }
.foot-legal {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
