/* ---- Style du blog yannickjouenne.blog ----
   Tout est ici : modifiez les couleurs et tailles à volonté.
   Les principales variables sont regroupées dans :root ci-dessous. */
:root{
  --accent:#1a6ce0;        /* bleu principal (logo, catégories, liens) */
  --ink:#0e1726;           /* texte / titres très foncés */
  --body:#2b3543;          /* texte courant */
  --muted:#6b7280;         /* texte secondaire (dates) */
  --bg:#ffffff;
  --card:#f3f5f8;
  --line:#e8ebef;
  --wide:1180px;           /* largeur du conteneur principal */
  --read:760px;            /* largeur de lecture (page article) */
  --radius:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;color:var(--body);background:var(--bg);
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}

/* Petite étiquette de catégorie en bleu */
.eyebrow{
  margin:0 0 10px;color:var(--accent);
  font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
}

/* ---------- En-tête (barre foncée bleu nuit, figée en haut) ---------- */
.site-header{background:var(--ink);position:sticky;top:0;z-index:50;
  box-shadow:0 2px 12px rgba(16,33,60,.12)}
.header-inner{
  max-width:var(--wide);margin:0 auto;padding:24px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.site-logo{
  font-size:22px;font-weight:800;color:#ffffff;letter-spacing:-.01em;
}
.site-logo:hover{text-decoration:none}
.site-logo .accent{color:#5b9dff}
.site-nav{display:flex;gap:28px}
.site-nav a{color:#c7d0de;font-weight:500;font-size:16px}
.site-nav a:hover{color:#ffffff;text-decoration:none}

/* ---------- Hero (article à la une) ---------- */
.hero{
  max-width:var(--wide);margin:0 auto;padding:56px 24px 8px;
  display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;
}
.hero-text{min-width:0}
.hero-title{margin:0 0 20px;font-size:52px;line-height:1.05;font-weight:800;letter-spacing:-.02em}
.hero-title a{color:var(--ink)}
.hero-title a:hover{color:var(--accent);text-decoration:none}
.hero-excerpt{margin:0 0 28px;color:#475064;font-size:18px;line-height:1.6}
.hero-date{color:var(--muted);font-size:15px}
.hero-cover{display:block;border-radius:var(--radius);overflow:hidden;background:var(--card);
  box-shadow:0 18px 40px -18px rgba(16,33,60,.35)}
.hero-cover img{width:100%;height:560px;object-fit:contain;display:block}

/* ---------- Section "Tous les articles" ---------- */
.articles{max-width:var(--wide);margin:0 auto;padding:64px 24px 24px}
.section-title{
  margin:0 0 36px;padding-bottom:14px;border-bottom:1px solid var(--line);
  color:var(--accent);font-size:14px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;
}

/* Grille de cartes (2 colonnes) */
.post-grid{list-style:none;padding:0;margin:0;
  display:grid;grid-template-columns:repeat(2,1fr);gap:56px 48px}
.post-card-cover{display:block;border-radius:var(--radius);overflow:hidden;background:var(--card)}
.post-card-cover img{width:100%;aspect-ratio:16/10;object-fit:contain;display:block;
  transition:transform .35s ease}
.post-card-cover:hover img{transform:scale(1.03)}
.post-card-body{padding-top:20px}
.post-card-body .eyebrow{margin-bottom:8px}
.post-card-body h3{margin:0 0 10px;font-size:24px;line-height:1.2;font-weight:700}
.post-card-body h3 a{color:var(--ink)}
.post-card-body h3 a:hover{color:var(--accent);text-decoration:none}
.post-card-body .excerpt{margin:0 0 14px;color:#5b6573;font-style:italic}
.post-card-body time{color:var(--muted);font-size:14px}

/* ---------- Section À propos ---------- */
.about{max-width:var(--wide);margin:0 auto;padding:48px 24px 24px}
.about p{color:#475064;font-size:18px;line-height:1.7;margin:0}

/* ---------- Étiquettes (tags) ---------- */
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.tags span{background:var(--card);color:var(--muted);font-size:13px;
  padding:4px 12px;border-radius:999px}

/* ---------- Page article ---------- */
.post{max-width:var(--read);margin:0 auto;padding:48px 24px 24px}
.post .back{font-size:15px;margin:0 0 24px}
.post .eyebrow{margin-bottom:12px}
.post h1{font-size:40px;line-height:1.12;font-weight:800;letter-spacing:-.02em;margin:.1em 0 .3em;color:var(--ink)}
.post-meta{color:var(--muted);font-size:15px;margin:0}
.post-cover{width:100%;aspect-ratio:16/9;object-fit:contain;background:var(--card);border-radius:var(--radius);margin:28px 0 32px}
.post-content{font-size:19px;color:var(--body)}
.post-content h2{margin-top:1.6em;font-size:28px;font-weight:700;color:var(--ink)}
.post-content h3,.post-content h4,.post-content h5,.post-content h6{margin-top:1.4em;font-size:21px;font-weight:600;color:var(--ink)}
.post-content img{display:block;margin:28px auto;border-radius:var(--radius)}
.post-content blockquote{border-left:4px solid var(--accent);margin:1.4em 0;padding:.4em 1.2em;
  color:#475064;background:var(--card);border-radius:0 8px 8px 0}
.post-content a{text-decoration:underline}

/* ---------- Pied de page ---------- */
.site-footer{margin-top:80px;border-top:1px solid var(--line)}
.footer-inner{max-width:var(--wide);margin:0 auto;padding:32px 24px 56px;
  color:var(--muted);font-size:14px}

/* ---------- Responsive ---------- */
@media (max-width:860px){
  .hero{grid-template-columns:1fr;gap:32px;padding-top:40px}
  .hero-title{font-size:38px}
  .hero-cover img{height:340px}
  .post-grid{grid-template-columns:1fr;gap:44px}
}
@media (max-width:560px){
  .header-inner{flex-direction:column;align-items:flex-start;gap:14px}
  .hero-title{font-size:32px}
  .post h1{font-size:30px}
}
