/* ElioBook — vitrine statique. Thème orange sobre, polices système (RGPD-clean : aucune ressource externe). */

:root {
  --orange: #EF6C00;
  --orange-dark: #E65100;
  --orange-soft: #FFF3E0;
  --orange-tint: #FDE4CF;
  --ink: #1a1a1a;
  --muted: #475569;
  --line: #e7e3dd;
  --bg: #ffffff;
  --bg-alt: #faf7f2;
  --radius: 14px;
  --maxw: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.lang-switch { font-size: 14px; color: var(--muted); }

/* Sélecteur de langue à drapeaux */
.lang-flags { display: inline-flex; gap: 2px; align-items: center; }
.lang-flags a {
  font-size: 20px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 8px;
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.lang-flags a:hover { opacity: 1; background: var(--orange-soft); text-decoration: none; }
.lang-flags a.active { opacity: 1; background: var(--orange-soft); }

.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--orange-dark); text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--orange-dark);
  border: 1.5px solid var(--orange);
}
.btn-ghost:hover { background: var(--orange-soft); color: var(--orange-dark); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* --- Hero --- */
.hero {
  background: linear-gradient(180deg, var(--orange-soft) 0%, #ffffff 100%);
  padding: 72px 0 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* --- Sections --- */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.section-intro { color: var(--muted); max-width: 720px; margin: 0 0 32px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* --- Feature grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card.alt-card { background: var(--bg-alt); }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .emoji { font-size: 1.6rem; display: block; margin-bottom: 10px; }

/* --- Steps --- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-left: 52px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* --- FAQ --- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* --- CTA band --- */
.cta-band {
  background: var(--orange);
  color: #fff;
  text-align: center;
  border-radius: 20px;
  padding: 48px 24px;
  margin: 8px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #fff; opacity: 0.92; max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn { background: #fff; color: var(--orange-dark); }
.cta-band .btn:hover { background: var(--orange-soft); }

/* --- Footer --- */
.site-footer {
  background: #1b150f;
  color: #cbb9a6;
  padding: 48px 0 32px;
  font-size: 15px;
}
.site-footer a { color: #f0d8bf; }
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #3a2e22; padding-top: 20px; color: #9b8a78; font-size: 13.5px; }

/* --- Article (blog) --- */
.article { max-width: 740px; margin: 0 auto; padding: 48px 0; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 20px; letter-spacing: -0.02em; }
.article h2 { margin-top: 36px; }
.article p, .article li { font-size: 18px; }
.article .lead { font-size: 20px; color: var(--muted); }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

.sources { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 8px; }
.sources h2 { font-size: 1.1rem; }
.sources li { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }

.post-list { display: grid; gap: 20px; max-width: 760px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.post-card h2 { font-size: 1.3rem; margin: 0 0 6px; }
.post-card h2 a { color: var(--ink); }
.post-card .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.post-card p { margin: 0; color: var(--muted); }

@media (max-width: 720px) {
  .nav .nav-links { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
}
