/*
Theme Name: Architect Cocoons
Theme URI: https://architecture-semantique.app
Author: Architecture Sémantique
Author URI: https://architecture-semantique.app
Description: Thème Block (FSE) optimisé pour la navigation dans une architecture sémantique. Mode multi-cocons : empile plusieurs cocons sur un même site.
Version: 1.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: architect-cocoons
Tags: full-site-editing, block-styles, blog
*/

/* Cluster nav (categories block in header) — className lands on the <ul> directly */
ul.theme-cluster-nav, .theme-cluster-nav { display:flex !important; flex-wrap:wrap; gap:22px; list-style:none !important; padding:0 !important; margin:0 !important; }
.theme-cluster-nav li { list-style:none !important; padding:0; margin:0; }
.theme-cluster-nav li a { color:inherit; text-decoration:none; font-size:0.85em; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; }
.theme-cluster-nav li a:hover { opacity:0.7; }
.theme-cluster-nav .post-count, .theme-cluster-nav .children { display:none; }

/* Cluster grid on front page */
ul.theme-cluster-grid, .theme-cluster-grid { list-style:none !important; padding:0 !important; margin:0 auto !important; display:grid !important; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:16px; justify-items:stretch; max-width:100%; }
.theme-cluster-grid li { background:var(--wp--preset--color--surface); border-left:4px solid var(--wp--preset--color--primary); padding:20px 22px; list-style:none; }
.theme-cluster-grid li a { color:var(--wp--preset--color--text); font-size:1.1em; font-weight:700; text-decoration:none; display:block; margin-bottom:4px; }
.theme-cluster-grid li a:hover { color:var(--wp--preset--color--primary); }
.theme-cluster-grid .post-count { color:var(--wp--preset--color--muted); font-size:0.8em; font-weight:400; margin-left:6px; }

/* Article cards on archive */
.theme-article-list .wp-block-post { background:var(--wp--preset--color--surface); border-left:4px solid var(--wp--preset--color--primary); padding:22px 26px; margin-bottom:14px; }
.theme-article-list .wp-block-post-title { margin:0 0 6px; }
.theme-article-list .wp-block-post-title a { color:var(--wp--preset--color--text); text-decoration:none; }
.theme-article-list .wp-block-post-title a:hover { color:var(--wp--preset--color--primary); }
.theme-article-list .wp-block-post-excerpt p { margin:0; color:var(--wp--preset--color--muted); }

/* Sidebar related articles */
.theme-related-list .wp-block-post { background:transparent; border-left:3px solid var(--wp--preset--color--primary); padding:8px 14px; margin-bottom:8px; }
.theme-related-list .wp-block-post-title { font-size:0.95em; margin:0; }
.theme-related-list .wp-block-post-title a { color:var(--wp--preset--color--text); text-decoration:none; font-weight:500; }
.theme-related-list .wp-block-post-title a:hover { color:var(--wp--preset--color--primary); }
