/* ============================================================
   blog.css — styles propres au blog keepOne
   Réutilise style.css (header, footer, .card, palette, .reveal…).
   Chargé EN PLUS de /style.css sur les pages /blog/.
   Palette : navy #1e3a5f · bleu #3f73b7 · cyan #44a3d0
   ============================================================ */

/* ---------- En-tête : liens de langue dans le menu burger ---------- */
.blog-langs { display: flex; gap: 8px; }
.blog-langs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease;
}
.blog-langs a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.blog-langs a.active { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* ---------- Conteneur général ---------- */
.blog-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Hero éditorial (page liste) ---------- */
.blog-hero { text-align: center; max-width: 760px; margin: 64px auto 36px; padding: 0 20px; }
.blog-hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #3f73b7; font-weight: 800; margin-bottom: 14px;
}
/* « LE BLOG » cliquable → racine du blog (sur la liste et les articles) */
a.eyebrow { text-decoration: none; transition: color 0.2s ease; }
a.eyebrow:hover { color: #1e3a5f; }

.blog-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 14px; line-height: 1.15; }
.blog-hero p { color: #4b5563; font-size: 1.1rem; line-height: 1.6; margin: 0; }

/* ---------- Grille d'articles ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 20px 0 80px;
}
/* Le 1er article passe en pleine largeur (vedette). La classe est sur le
   wrapper .reveal (= la cellule de grille), pas sur la carte. */
.blog-grid .reveal.featured { grid-column: 1 / -1; }
.blog-grid .reveal { display: flex; } /* le wrapper remplit la cellule */
.blog-grid .reveal > .post-card { width: 100%; }

/* ---------- Carte article ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  /* Ombre douce et diffuse (convention du site) */
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.05), 0 18px 40px -12px rgba(30, 58, 95, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.10), 0 26px 54px -14px rgba(30, 58, 95, 0.20);
}
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #eef3f8; }
.post-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02); /* couvre tout le cadre, pas de liseré */
  transition: transform 0.4s ease;
}
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.post-card .post-meta { font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; color: #8a94a3; font-weight: 700; }
.post-card h2 { font-size: 1.3rem; margin: 0; color: #1e3a5f; line-height: 1.3; }
.post-card p { margin: 0; color: #5b6573; line-height: 1.55; font-size: 0.98rem; }
.post-card .read-more { margin-top: 4px; color: #3f73b7; font-weight: 700; font-size: 0.95rem; }

/* Carte vedette : visuel plus large + titre plus grand */
.featured .post-card .thumb { aspect-ratio: 21 / 9; }
.featured .post-card h2 { font-size: 1.7rem; }
.featured .post-card p { font-size: 1.05rem; }

/* ============================================================
   PAGE ARTICLE
   ============================================================ */
.article-hero { max-width: 760px; margin: 56px auto 22px; padding: 0 20px; text-align: center; }
.article-hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #3f73b7; font-weight: 800; margin-bottom: 14px;
}
.article-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin: 0 0 16px; line-height: 1.2; }
.article-hero .dek { color: #4b5563; font-size: 1.15rem; line-height: 1.6; margin: 0; }
.article-meta { color: #8a94a3; font-size: 0.9rem; margin-top: 16px; }

.article-cover { max-width: 1000px; margin: 8px auto 40px; padding: 0 20px; }
.article-cover img {
  width: 100%; border-radius: 18px; display: block;
  max-height: 460px; object-fit: cover; /* garde une couverture élégante même si l'image est haute */
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.05), 0 22px 50px -14px rgba(30, 58, 95, 0.18);
}

/* Colonne de lecture confortable */
.article-body {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 20px;
  font-size: 1.075rem;
  line-height: 1.75;
  color: #374151;
}
.article-body h2 { font-size: 1.5rem; color: #1e3a5f; margin: 42px 0 14px; line-height: 1.3; }
.article-body h3 { font-size: 1.2rem; color: #1e3a5f; margin: 30px 0 10px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: #3f73b7; }
.article-body blockquote {
  margin: 28px 0; padding: 18px 24px;
  border-left: 4px solid #3f73b7;
  background: rgba(68, 163, 208, 0.07);
  border-radius: 0 10px 10px 0;
  font-style: italic; color: #1e3a5f; font-size: 1.1rem;
}
.article-body figure { margin: 26px 0; }
.article-body figure img { width: 100%; border-radius: 12px; display: block; }
.article-body figcaption { text-align: center; color: #8a94a3; font-size: 0.85rem; margin-top: 8px; }

/* Pied d'article : retour + suivant */
.article-foot {
  max-width: 720px; margin: 0 auto 80px; padding: 24px 20px 0;
  border-top: 1px solid #e8edf3;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.article-foot a { color: #3f73b7; font-weight: 700; text-decoration: none; }
.article-foot a:hover { text-decoration: underline; }

/* ============================================================
   CARROUSEL D'IMAGES DANS UN ARTICLE (.blog-carousel)
   Réutilise les @keyframes ko-slide-in-right/left de style.css.
   ============================================================ */
.blog-carousel { max-width: 720px; margin: 36px auto; padding: 0 20px; }
.bc-viewport {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0b0d;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.05), 0 18px 40px -12px rgba(30, 58, 95, 0.18);
}
.bc-slide { display: none; }
.bc-slide.active { display: block; }
.bc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Glissement directionnel à l'entrée (même mécanique que les carrousels du site) */
.bc-slide.active.bc-in-right { animation: ko-slide-in-right 0.3s ease-out both; }
.bc-slide.active.bc-in-left  { animation: ko-slide-in-left 0.3s ease-out both; }

.bc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); color: #fff; cursor: pointer;
  font-size: 24px; line-height: 1; display: grid; place-items: center;
  transition: background 0.2s ease; z-index: 2;
}
.bc-arrow:hover { background: rgba(0, 0, 0, 0.7); }
.bc-arrow.prev { left: 12px; }
.bc-arrow.next { right: 12px; }

.bc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.bc-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #d3dae3; border: none; padding: 0; cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.bc-dot.active { background: #3f73b7; transform: scale(1.25); }

.blog-carousel figcaption {
  text-align: center; color: #8a94a3; font-size: 0.9rem;
  line-height: 1.5; margin-top: 12px; font-style: italic;
}

/* ============================================================
   TÉMOIGNAGE DE LECTEUR (.testimonial) — citation épurée centrée
   Distinct des blockquotes d'article (pas de cadre, gros guillemet bleu).
   Structure : <figure class="testimonial"><p>…</p><cite>— Prénom, âge</cite></figure>
   ============================================================ */
.testimonial {
  max-width: 620px;
  margin: 44px auto;
  padding: 0 20px;
  text-align: center;
}
.testimonial::before {
  content: "\201C";                 /* gros guillemet décoratif */
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 0.7;
  color: #3f73b7;
  margin-bottom: 6px;
}
.testimonial p {
  font-size: 1.3rem;
  line-height: 1.55;
  color: #1e3a5f;
  font-style: italic;
  margin: 0 0 14px;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: #3f73b7;
  font-size: 0.98rem;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; gap: 22px; margin-bottom: 60px; }
  .featured .post-card .thumb { aspect-ratio: 16 / 9; }
  .featured .post-card h2 { font-size: 1.4rem; }
  .blog-hero { margin-top: 44px; }
}
