/* Blog (archive + article + carte partagée) — inspiré de la mise en page
   sparknex, adapté aux couleurs/typos du site (voir site-chrome.css pour les
   variables --cc-*). Chargé uniquement sur les vues blog (voir functions.php). */

/* GRILLE / LISTE */
.cc-blog{ max-width:1200px; margin:0 auto; padding:56px 24px 96px; }
.cc-blog__head{ text-align:center; max-width:720px; margin:0 auto 56px; }
.cc-blog__head h1{ font-size:38px; margin:0 0 12px; color:var(--cc-navy); }
.cc-blog__description{ color:var(--cc-muted); font-size:16px; line-height:1.7; }
.cc-blog__empty{ text-align:center; color:var(--cc-muted); }

.cc-blog__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
@media(max-width:980px){ .cc-blog__grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:640px){ .cc-blog__grid{ grid-template-columns:1fr; } }

/* CARTE */
.cc-blog-card{ display:flex; flex-direction:column; background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 2px 8px rgba(20,26,38,.08); transition:transform .25s, box-shadow .25s; }
.cc-blog-card:hover{ transform:translateY(-4px); box-shadow:0 12px 28px rgba(20,26,38,.12); }
.cc-blog-card__media{ position:relative; display:block; aspect-ratio:16/10; background:var(--cc-line); overflow:hidden; }
.cc-blog-card__media img{ width:100%; height:100%; object-fit:cover; }
.cc-blog-card__notch{ position:absolute; right:-14px; bottom:-14px; width:28px; height:28px; border-radius:50%; background:#fff; }
.cc-blog-card__body{ display:flex; flex-direction:column; flex:1; padding:24px; }
.cc-blog-card__category{ display:inline-block; color:var(--cc-green); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; text-decoration:none; margin-bottom:10px; }
.cc-blog-card__category:hover{ color:var(--cc-green-d); }
.cc-blog-card__title{ font-size:20px; line-height:1.3; margin:0 0 14px; }
.cc-blog-card__title a{ color:var(--cc-ink); text-decoration:none; }
.cc-blog-card__title a:hover{ color:var(--cc-green); }
.cc-blog-card__meta{ display:flex; align-items:center; gap:16px; font-size:13px; color:var(--cc-muted); margin-bottom:16px; }
.cc-blog-card__meta-item{ display:flex; align-items:center; gap:6px; }
.cc-blog-card__icon{ width:15px; height:15px; flex-shrink:0; color:var(--cc-green); }
.cc-blog-card__excerpt{ color:var(--cc-muted); font-size:14.5px; line-height:1.7; margin:0 0 20px; flex:1; }
.cc-blog-card__link{ color:var(--cc-green); font-weight:700; font-size:13.5px; text-decoration:none; letter-spacing:.02em; }
.cc-blog-card__link:hover{ color:var(--cc-green-d); }

/* PAGINATION (classes par défaut de WordPress) */
.pagination{ display:flex; justify-content:center; gap:8px; margin-top:56px; list-style:none; padding:0; }
.pagination .page-numbers{ display:flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 12px; border-radius:999px; background:#fff; color:var(--cc-ink); text-decoration:none; font-size:14px; font-weight:600; box-shadow:0 1px 4px rgba(20,26,38,.06); }
.pagination .page-numbers.current{ background:var(--cc-green); color:#fff; box-shadow:none; }
.pagination .page-numbers.dots{ box-shadow:none; background:none; }
.pagination .page-numbers:hover:not(.current):not(.dots){ background:var(--cc-line); }

/* ARTICLE (single) */
.cc-post{ max-width:760px; margin:0 auto; padding:56px 24px 0; }
.cc-post__head{ text-align:center; margin-bottom:32px; }
.cc-post__category{ display:inline-block; background:var(--cc-green); color:#fff; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; padding:6px 14px; border-radius:999px; text-decoration:none; margin-bottom:16px; }
.cc-post__title{ font-size:40px; line-height:1.2; margin:0 0 16px; color:var(--cc-navy); }
.cc-post__meta{ display:flex; align-items:center; justify-content:center; gap:8px; font-size:13.5px; color:var(--cc-muted); text-transform:uppercase; letter-spacing:.04em; }
.cc-post__thumb{ max-width:960px; margin:0 auto 40px; border-radius:16px; overflow:hidden; }
.cc-post__thumb img{ width:100%; height:auto; display:block; }

.cc-post__content{ max-width:760px; margin:0 auto; padding:0 24px; font-size:17px; line-height:1.8; color:var(--cc-ink); }
.cc-post__content > *{ margin-bottom:24px; }
.cc-post__content h2{ font-size:28px; margin-top:48px; color:var(--cc-navy); }
.cc-post__content h3{ font-size:22px; margin-top:36px; color:var(--cc-navy); }
.cc-post__content a{ color:var(--cc-green); }
.cc-post__content a:hover{ color:var(--cc-green-d); }
.cc-post__content blockquote{ margin:32px 0; padding:8px 28px; border-left:3px solid var(--cc-green); font-style:italic; color:var(--cc-muted); }
.cc-post__content img{ border-radius:12px; }
.cc-post__content ul, .cc-post__content ol{ padding-left:24px; }
.cc-post__content li{ margin-bottom:8px; }

.cc-post__pages{ max-width:760px; margin:0 auto 24px; padding:0 24px; font-size:14px; color:var(--cc-muted); }

@media(max-width:640px){
  .cc-post{ padding:56px 10px 0; }
  .cc-post__title{ font-size:35px; }
  .cc-post__content{ padding:0px 10px; }
  .cc-post__content blockquote{ padding:8px 8px 8px 15px; }
}

/* ENCADRÉ AUTEUR */
.cc-author-box{ max-width:760px; margin:40px auto 0; padding:32px 24px; display:flex; gap:24px; align-items:flex-start; background:#fff; border-radius:14px; box-shadow:0 2px 8px rgba(20,26,38,.08); }
.cc-author-box__photo{ width:72px; height:72px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.cc-author-box__name{ margin:0 0 2px; font-size:15px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; color:var(--cc-ink); }
.cc-author-box__label{ margin:0 0 12px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--cc-muted); }
.cc-author-box__bio{ margin:0 0 16px; font-size:14.5px; line-height:1.7; color:var(--cc-muted); }
.cc-author-box__socials{ display:flex; gap:10px; }
.cc-author-box__social{ display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background:var(--cc-line); color:var(--cc-ink); transition:background .2s, color .2s; }
.cc-author-box__social:hover{ background:var(--cc-green); color:#fff; }
@media(max-width:520px){ .cc-author-box{ flex-direction:column; align-items:center; text-align:center; } .cc-author-box__socials{ justify-content:center; } }

/* COMMENTAIRES (structure WordPress par défaut ; habillage du style global) */
.cc-comments-wrap{ max-width:760px; margin:56px auto 0; padding:40px 24px 0; border-top:1px solid var(--cc-line); }
.cc-comments-wrap .comment-reply-title,
.cc-comments-wrap .comments-title{ font-size:26px; color:var(--cc-navy); margin:0 0 20px; }
.cc-comments-wrap .comment-notes{ color:var(--cc-muted); font-size:14px; margin-bottom:20px; }
.cc-comments-wrap label{ display:block; font-size:14px; font-weight:600; color:var(--cc-ink); margin-bottom:6px; }
.cc-comments-wrap input[type="text"],
.cc-comments-wrap input[type="email"],
.cc-comments-wrap input[type="url"],
.cc-comments-wrap textarea{ width:100%; padding:12px 14px; border:1px solid var(--cc-line); border-radius:10px; background:#fff; font-size:14.5px; color:var(--cc-ink); }
.cc-comments-wrap .comment-form-comment,
.cc-comments-wrap .comment-form-author,
.cc-comments-wrap .comment-form-email,
.cc-comments-wrap .comment-form-url{ margin-bottom:18px; }
.cc-comments-wrap .form-submit{ margin:0; }
.cc-comments-wrap .form-submit input[type="submit"]{ background:var(--cc-green); color:#fff; font-weight:700; font-size:12.5px; text-transform:uppercase; letter-spacing:.08em; padding:13px 26px; border:none; border-radius:8px; cursor:pointer; transition:background .15s; }
.cc-comments-wrap .form-submit input[type="submit"]:hover{ background:var(--cc-green-d); }
.cc-comments-wrap ol.comment-list{ list-style:none; margin:0 0 32px; padding:0; }
.cc-comments-wrap .comment-list .comment-body{ padding:20px 0; border-bottom:1px solid var(--cc-line); }
.cc-comments-wrap .comment-list .children{ list-style:none; margin:0 0 0 32px; padding:0; }

/* NAVIGATION ENTRE ARTICLES */
.cc-post-nav{ max-width:960px; margin:56px auto 0; padding:32px 24px; border-top:1px solid var(--cc-line); display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.cc-post-nav__link{ text-decoration:none; display:flex; flex-direction:column; gap:6px; }
.cc-post-nav__link--next{ text-align:right; grid-column:2; }
.cc-post-nav__label{ font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--cc-green); font-weight:700; }
.cc-post-nav__title{ font-size:15px; color:var(--cc-ink); font-weight:600; }
.cc-post-nav__link:hover .cc-post-nav__title{ color:var(--cc-green); }
@media(max-width:640px){
  .cc-post-nav{ grid-template-columns:1fr; }
  .cc-post-nav__link--next{ grid-column:1; text-align:left; }
}

/* ARTICLES LIÉS */
.cc-related{ max-width:1200px; margin:80px auto 0; padding:56px 24px 96px; border-top:1px solid var(--cc-line); }
.cc-related__title{ text-align:center; font-size:28px; margin:0 0 40px; color:var(--cc-navy); }

/* BARRE LATÉRALE (activable/désactivable dans Paramètres du site → Blog) */
.cc-blog.cc-has-sidebar{ display:grid; grid-template-columns:1fr 320px; gap:56px; align-items:start; }
.cc-blog.cc-has-sidebar .cc-blog__grid{ grid-template-columns:repeat(2,1fr); }
@media(max-width:900px){ .cc-blog.cc-has-sidebar{ grid-template-columns:1fr; } }
@media(max-width:640px){ .cc-blog.cc-has-sidebar .cc-blog__grid{ grid-template-columns:1fr; } }

.cc-post-shell.cc-has-sidebar{
  max-width:1200px; margin:0 auto; padding:0 24px 96px;
  display:grid; grid-template-columns:1fr 320px; gap:56px; align-items:start;
}
.cc-post-shell.cc-has-sidebar .cc-post,
.cc-post-shell.cc-has-sidebar .cc-post__content,
.cc-post-shell.cc-has-sidebar .cc-post__thumb,
.cc-post-shell.cc-has-sidebar .cc-post__pages,
.cc-post-shell.cc-has-sidebar .cc-author-box,
.cc-post-shell.cc-has-sidebar .cc-comments-wrap,
.cc-post-shell.cc-has-sidebar .cc-post-nav,
.cc-post-shell.cc-has-sidebar .cc-related{
  max-width:none; margin-left:0; margin-right:0; padding-left:0; padding-right:0;
}
.cc-post-shell.cc-has-sidebar .cc-post{ padding-top:56px; }
.cc-post-shell.cc-has-sidebar .cc-related{ margin-top:56px; padding-top:56px; padding-bottom:0; }
.cc-post-shell.cc-has-sidebar .cc-related .cc-blog__grid{ grid-template-columns:repeat(2,1fr); }
@media(max-width:900px){ .cc-post-shell.cc-has-sidebar{ grid-template-columns:1fr; } }
@media(max-width:640px){ .cc-post-shell.cc-has-sidebar .cc-related .cc-blog__grid{ grid-template-columns:1fr; } }

.cc-sidebar{ display:flex; flex-direction:column; gap:24px; }
.cc-sidebar__widget{ background:#fff; border-radius:14px; padding:24px; box-shadow:0 2px 8px rgba(20,26,38,.08); }
.cc-sidebar__title{ font-size:16px; margin:0 0 16px; color:var(--cc-navy); }
.cc-sidebar__widget ul{ list-style:none; margin:0; padding:0; }
.cc-sidebar__widget li{ padding:8px 0; border-bottom:1px solid var(--cc-line); font-size:14.5px; }
.cc-sidebar__widget li:last-child{ border-bottom:none; }
.cc-sidebar__widget a{ color:var(--cc-ink); text-decoration:none; }
.cc-sidebar__widget a:hover{ color:var(--cc-green); }
