/* LORE OF THE EMBER — Clean, Light, Modern */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;450;500;600;700;800&display=swap');

:root {
  --bg: #fafafa;
  --bg-warm: #f4f1ed;
  --bg-card: #ffffff;
  --bg-dark: #1a1a1a;
  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --text-muted: #8a8a8a;
  --accent: #2d6a4f;
  --accent-light: #b7e4c7;
  --accent-bg: #edf7f0;
  --gold: #b8860b;
  --gold-bg: #fdf6e3;
  --red: #8b2c2c;
  --red-bg: #fdf0f0;
  --border: #e8e5e1;
  --border-light: #f0ede9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1100px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

::selection { background: var(--accent-light); color: var(--text); }

/* ── Nav ── */

.nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  height: 56px; display: flex; justify-content: space-between; align-items: center;
}

.nav-logo {
  font-size: 0.82rem; font-weight: 800;
  color: rgba(255,255,255,0.9); text-decoration: none;
  letter-spacing: 3px;
}

.nav-links { display: flex; gap: 0.25rem; }

.nav-links a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  padding: 0.35rem 0.8rem; border-radius: 6px;
  transition: all 0.15s;
}
.nav-links a:hover { color: rgba(255,255,255,0.95); background: rgba(255,255,255,0.08); }

.nav-solid {
  background: rgba(250,250,250,0.88);
  border-bottom: 1px solid var(--border);
}
.nav-solid .nav-logo { color: var(--text); }
.nav-solid .nav-links a { color: var(--text-muted); }
.nav-solid .nav-links a:hover { color: var(--text); background: rgba(0,0,0,0.04); }

/* Burger — hidden on desktop */
.nav-toggle-input { display: none; }
.nav-burger { display: none; }

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center;
  text-align: center;
  padding: 56px 2rem 3rem;
  background-color: #0a0a0f;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(0,0,0,0.55) 70%,
    rgba(26,26,26,0.95) 100%
  );
}

.hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}

.hero-platform {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  background: var(--accent);
  color: white;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 3px;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.hero-pitch {
  max-width: 540px;
  font-size: 1rem; font-weight: 400;
  color: rgba(255,255,255,0.85); line-height: 1.9;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.hero-tech {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 3px; color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* ── Sections ── */

.section { max-width: var(--max-w); margin: 0 auto; padding: 5rem 2rem; }

.section + .section { border-top: 1px solid var(--border-light); }

.section-title {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 4px; color: var(--accent);
  text-transform: uppercase; margin-bottom: 2.5rem;
}

/* ── Progress ── */

.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem 1.8rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.progress-card:hover { box-shadow: var(--shadow); border-color: var(--border); }

.progress-card h3 {
  font-size: 0.92rem; font-weight: 600; margin-bottom: 1rem;
}

.progress-bar {
  height: 4px; background: var(--border-light);
  border-radius: 4px; overflow: hidden; margin-bottom: 0.6rem;
}

.progress-fill { height: 100%; border-radius: 4px; }
.progress-fill.done { background: var(--accent); }
.progress-fill.wip { background: var(--gold); }
.progress-fill.todo { background: var(--border-light); }

.progress-label {
  font-size: 0.78rem; color: var(--text-muted); font-weight: 400;
}

/* ── Story ── */

.story-acts { display: grid; gap: 0.8rem; }

.act {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.4rem 1.8rem;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 1.5rem; align-items: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.act:hover { box-shadow: var(--shadow); }

.act-num {
  font-size: 1.3rem; font-weight: 800; color: var(--accent);
}

.act h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.15rem; }
.act p { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

.act-boss {
  font-size: 0.72rem; font-weight: 600;
  color: var(--red); background: var(--red-bg);
  padding: 0.3rem 0.9rem; border-radius: 100px;
  white-space: nowrap;
}

/* ── Tech ── */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem 1.8rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.tech-item:hover { box-shadow: var(--shadow); }

.tech-item h3 {
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent); margin-bottom: 0.5rem;
}

.tech-item p {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.7;
}

/* ── Blog ── */

.blog-list { list-style: none; }

.blog-item { padding: 2rem 0; }
.blog-item + .blog-item { border-top: 1px solid var(--border-light); }

.blog-item a { text-decoration: none; color: var(--text); display: block; }
.blog-item a:hover h2 { color: var(--accent); }

.blog-item time {
  font-size: 0.8rem; color: var(--text-muted); font-weight: 500;
}

.blog-item h2 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.3rem; font-weight: 600;
  margin: 0.4rem 0 0.5rem; line-height: 1.4;
  transition: color 0.15s;
}

.blog-item p {
  font-size: 0.9rem; color: var(--text-soft); line-height: 1.7;
}

.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  padding: 0.2rem 0.65rem;
  background: var(--accent-bg); color: var(--accent);
  border-radius: 100px; margin-right: 0.3rem;
}

/* ── Post ── */

.post {
  max-width: 700px; margin: 0 auto; padding: 7rem 2rem 5rem;
}

.post-header {
  margin-bottom: 3rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-date {
  font-size: 0.82rem; color: var(--text-muted); font-weight: 500;
}

.post-header h1 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 2rem; font-weight: 700;
  margin: 0.5rem 0 0.8rem; line-height: 1.35;
}

.post-tags { margin-top: 1rem; }

.post-content {
  font-size: 1rem; line-height: 1.9; color: var(--text-soft);
}

.post-content h2 {
  font-family: Helvetica, Arial, sans-serif;
  margin: 3rem 0 1.2rem; font-size: 1.35rem;
  font-weight: 700; color: var(--text);
}

.post-content h3 {
  margin: 2.5rem 0 0.8rem; font-size: 1.05rem;
  font-weight: 600; color: var(--text);
}

.post-content p { margin-bottom: 1.4rem; }

.post-content a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-light);
  transition: text-decoration-color 0.15s;
}
.post-content a:hover { text-decoration-color: var(--accent); }

.post-content strong { font-weight: 600; color: var(--text); }

.post-content code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  background: var(--bg-warm);
  padding: 0.15rem 0.45rem; border-radius: 4px;
  font-size: 0.88rem; color: var(--red);
}

.post-content pre {
  background: var(--bg-dark);
  padding: 1.5rem 1.8rem; border-radius: 10px;
  overflow-x: auto; margin: 1.8rem 0;
  box-shadow: var(--shadow);
}

.post-content pre code {
  background: none; padding: 0;
  color: #e0e0e0; font-size: 0.85rem; line-height: 1.7;
}

.post-content img {
  max-width: 100%; border-radius: 10px;
  margin: 2rem 0; box-shadow: var(--shadow-md);
}

.post-video {
  margin: 2.4rem 0;
}
.post-content video,
.post-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  background: #000;
}
.post-video figcaption,
.post-shot figcaption,
.post-embed figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* Capture du jeu : pixels nets a l'agrandissement, pas de lissage. */
.post-shot {
  margin: 2.4rem 0;
}
.post-shot img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  image-rendering: pixelated;
}
/* Capture deja agrandie avec lissage : la rendre pixelisee ajouterait de
 * l'escalier par-dessus le flou au lieu de retrouver des pixels carres. */
.post-shot.smooth img {
  image-rendering: auto;
}

/* Video externe (YouTube) : cadre 16:9 fluide, l'iframe suit la largeur. */
.post-embed {
  margin: 2.4rem 0;
}
.post-embed-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}
.post-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-content ul, .post-content ol {
  margin-bottom: 1.4rem; padding-left: 1.5rem;
}
.post-content li { margin-bottom: 0.5rem; }

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.post-content th,
.post-content td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
.post-content thead th {
  background: var(--accent-bg);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-light);
}
.post-content tbody tr:nth-child(even) { background: var(--bg-warm); }

.post-nav {
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-nav a {
  color: var(--accent); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
}
.post-nav a:hover { text-decoration: underline; }

/* ── Comments ── */

.comments-section {
  margin-top: 4rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 1.5rem; color: var(--text);
}

.comment-form .honey { display: none; }

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-soft); margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%; padding: 0.7rem 1rem;
  font-family: var(--font); font-size: 0.9rem;
  color: var(--text); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.comment-submit {
  display: inline-block; padding: 0.65rem 1.8rem;
  font-family: var(--font); font-size: 0.85rem; font-weight: 600;
  color: #fff; background: var(--accent);
  border: none; border-radius: 8px; cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.comment-submit:hover {
  background: #245a42;
  box-shadow: var(--shadow);
}

/* ── Footer ── */

footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem; text-align: center;
  background: var(--bg-warm);
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; }

footer p { color: var(--text-soft); font-size: 0.85rem; font-weight: 500; }

.footer-sub {
  font-size: 0.8rem; margin-top: 0.3rem;
  color: var(--text-muted);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .act { grid-template-columns: 1fr; gap: 0.5rem; }
  .act-boss { margin-top: 0.3rem; display: inline-block; }
  .section { padding: 3.5rem 1.2rem; }
  .post { padding: 5rem 1.2rem 3rem; }
  .progress-grid, .tech-grid { grid-template-columns: 1fr; }

  /* Nav mobile */
  .nav-inner { padding: 0 1rem; height: 48px; }

  /* Burger button */
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; cursor: pointer;
    width: 28px; height: 28px;
    z-index: 110;
  }
  .nav-burger span {
    display: block; height: 2px; width: 100%;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-solid .nav-burger span { background: var(--text); }

  /* Burger animation on open */
  .nav-toggle-input:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle-input:checked ~ .nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-input:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile menu panel */
  .nav-links {
    position: fixed; top: 0; right: 0;
    width: 240px; height: 100vh;
    flex-direction: column; gap: 0;
    background: rgba(15,15,20,0.95);
    backdrop-filter: blur(20px);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links a {
    color: rgba(255,255,255,0.7);
    font-size: 1rem; padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links a:hover { color: #fff; background: none; }
  .nav-solid .nav-links { background: rgba(250,250,250,0.98); }
  .nav-solid .nav-links a { color: var(--text-muted); border-color: var(--border-light); }
  .nav-solid .nav-links a:hover { color: var(--text); background: none; }

  /* Open state */
  .nav-toggle-input:checked ~ .nav-links {
    transform: translateX(0);
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    background-size: cover;
    background-position: center top;
    padding: 0 1.5rem 2rem;
    padding-top: calc(48px + 56vw);
  }
}

/* ===== SEO / IA additions : hero title, FAQ, pages statiques, breadcrumbs ===== */
.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0.3em 0 0.4em;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero-subtitle {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  margin: 0 0 1rem;
  font-style: italic;
}

.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--card, #fff);
  border: 1px solid var(--border-light, #eaeaea);
  border-radius: 8px;
  margin: 0.6rem 0;
  padding: 0.9rem 1.2rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  outline: none;
  padding: 0.2rem 0;
}
.faq-item[open] summary { margin-bottom: 0.6rem; }
.faq-item p { margin: 0; color: var(--text-muted, #444); line-height: 1.55; }

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.page-header {
  border-bottom: 1px solid var(--border-light, #eaeaea);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.4rem;
}
.page-subtitle { color: var(--text-muted, #666); font-size: 1.05rem; margin: 0; }
.page-section { margin: 2rem 0; }
.page-section h2 {
  font-size: 1.4rem;
  margin: 0 0 0.8rem;
  border-left: 4px solid var(--accent, #b22);
  padding-left: 0.6rem;
}
.page-section p { line-height: 1.65; }

.tech-list { padding-left: 1.2rem; line-height: 1.7; }
.tech-list li { margin: 0.25rem 0; }

.fact-sheet {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.2rem;
  margin: 0;
}
.fact-sheet dt { font-weight: 600; color: var(--text-muted, #555); }
.fact-sheet dd { margin: 0; }

.download-link {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  background: var(--accent, #b22);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.download-link:hover { filter: brightness(1.1); }

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--text-muted, #666);
  margin-bottom: 0.8rem;
}
.breadcrumbs a { color: var(--text-muted, #666); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent, #b22); text-decoration: underline; }

.post-excerpt {
  font-style: italic;
  color: var(--text-muted, #666);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0.4rem 0 0.8rem;
}

/* ===== About : bio du dev ===== */
.dev-bio { display: flex; gap: 1.8rem; align-items: flex-start; flex-wrap: wrap; }
.dev-photo {
  width: 220px;
  height: auto;
  aspect-ratio: 300 / 486;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-light, #eaeaea);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.dev-bio-text { flex: 1 1 320px; }
.dev-bio-text p { line-height: 1.7; margin: 0.5rem 0 1rem; }
.bio-lede {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text, #222);
  border-left: 3px solid var(--accent, #b22);
  padding-left: 0.8rem;
  margin-bottom: 1rem !important;
}

/* ===== Foyer anime (pixel art sprite sheet 4 frames 128x128) ===== */
.hero-foyer {
  margin: 0.8rem 0 1.2rem;
  display: flex;
  justify-content: center;
}
.hero-foyer-sprite {
  width: 128px;
  height: 128px;
  background-image: url('/assets/img/foyer_sheet.png');
  background-repeat: no-repeat;
  background-size: 512px 128px;
  background-position: 0 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  animation: foyer-burn 0.48s steps(1) infinite;
  filter: drop-shadow(0 0 24px rgba(45, 106, 79, 0.55));
}
@keyframes foyer-burn {
  0%   { background-position:    0px 0; }
  25%  { background-position: -128px 0; }
  50%  { background-position: -256px 0; }
  75%  { background-position: -384px 0; }
  100% { background-position:    0px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-foyer-sprite { animation: none; background-position: -128px 0; }
}

/* ===== Hero newsletter et CTA ===== */
.hero-newsletter {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 460px;
  margin: 0.6rem auto 0.3rem;
}
.hero-newsletter input[type="email"] {
  flex: 1 1 auto;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.hero-newsletter input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.hero-newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-light);
  background: rgba(255,255,255,0.14);
}
.hero-newsletter button {
  padding: 0.75rem 1.4rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.08s;
}
.hero-newsletter button:hover { background: #245a42; }
.hero-newsletter button:active { transform: translateY(1px); }
.hero-newsletter-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin: 0.2rem 0 1.4rem;
  font-style: italic;
}
.hero-cta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.hero-cta {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hero-cta-ghost {
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
}
.hero-cta-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}

/* Honeypot et accessibilite */
.honey { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===== Section "Pourquoi STe" ===== */
.why-ste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.why-ste-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.6rem 1.8rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.why-ste-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.why-ste-num {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.8rem;
}
.why-ste-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.why-ste-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ===== Section "Solo dev" sur la home ===== */
.solo-dev {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.solo-dev-photo {
  width: 180px;
  height: auto;
  aspect-ratio: 300 / 486;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.solo-dev-text { flex: 1 1 320px; }
.solo-dev-text p { font-size: 0.95rem; color: var(--text-soft); line-height: 1.75; margin-bottom: 0.9rem; }
.solo-dev-text p:last-child { margin-bottom: 0; }
.solo-dev-lede {
  font-size: 1.1rem !important;
  font-style: italic;
  color: var(--text) !important;
}
.solo-dev-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}
.solo-dev-link:hover { text-decoration: underline; }

/* ===== Section newsletter complete ===== */
.newsletter-section { background: var(--bg-warm); border-radius: 12px; }
.newsletter-block {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-block h3 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.newsletter-block p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1 1 auto;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.newsletter-form button {
  padding: 0.75rem 1.6rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.08s;
}
.newsletter-form button:hover { background: #245a42; }
.newsletter-form button:active { transform: translateY(1px); }

/* ===== Responsive : hero newsletter et grids ===== */
@media (max-width: 600px) {
  .hero-newsletter { flex-direction: column; max-width: 320px; }
  .hero-newsletter button { width: 100%; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
  .hero-foyer { transform: scale(0.75); transform-origin: center; margin: 0.4rem 0 0.8rem; }
  .solo-dev { padding: 1.4rem 1.2rem; }
}
