/*
Theme Name: GeneratePress Child - Green Lab Center
Template: generatepress
Version: 2.0
*/
:root{ --dark:#1b250f; --green:#81b444; --green-dark:#5f8c2d; --green-light:#9bce55; --ink:#242a1b; --muted:#717a64; --paper:#fff; --bg:#f5f7f0; --line:#e2e7d7; }
body{ background:var(--bg); color:var(--ink); font-family:'Inter',-apple-system,Segoe UI,Roboto,Arial,sans-serif; font-size:16px; line-height:1.7; }
.grid-container{ max-width:1200px; }
a{ color:var(--green-dark); } a:hover{ color:var(--dark); }
h1,h2,h3,h4,h5{ font-family:'Poppins',sans-serif; color:var(--dark); font-weight:600; letter-spacing:-.2px; }

/* En-tête sombre */
.site-header{ background:var(--dark); border-bottom:3px solid var(--green); }
.site-branding{ text-align:center; padding:14px 0 10px; }
.site-logo{ margin:0 auto; } .site-logo img{ max-height:46px; width:auto; }
.site-branding .main-title,.site-branding .site-description{ display:none; }
.main-navigation,.main-navigation .menu,.inside-navigation{ background:var(--dark); justify-content:center; }
.main-navigation a{ color:#e7ecdd; text-transform:uppercase; letter-spacing:.8px; font-size:13px; font-weight:500; }
.main-navigation a:hover,.main-navigation .current-menu-item>a,.main-navigation li[class*="current-menu-"]>a{ color:var(--green-light); }

/* Fil d'Ariane */
.leb-breadcrumb{ font-size:13px; color:var(--muted); margin:0 0 14px; }
.leb-breadcrumb a{ color:var(--green-dark); text-decoration:none; } .leb-breadcrumb a:hover{ text-decoration:underline; }
.leb-breadcrumb .breadcrumb_last{ color:var(--ink); }

/* Titres de section */
.glc-sec-title{ font-size:21px; margin:30px 0 16px; padding-bottom:8px; border-bottom:2px solid var(--dark); position:relative; }
.glc-sec-title:after{ content:""; position:absolute; left:0; bottom:-2px; width:70px; height:2px; background:var(--green); }
.glc-sec-title a{ color:var(--dark); text-decoration:none; }

/* Zone à la une (home) */
.glc-feat{ display:grid; grid-template-columns:2fr 1fr; gap:14px; margin:4px 0 10px; }
.glc-feat-big{ position:relative; min-height:360px; border-radius:8px; overflow:hidden; background:var(--dark) center/cover no-repeat; display:block; }
.glc-feat-side{ display:grid; grid-template-rows:repeat(4,1fr); gap:14px; }
.glc-feat-small{ position:relative; min-height:80px; border-radius:8px; overflow:hidden; background:var(--dark) center/cover no-repeat; display:block; }
.glc-feat .glc-ov{ position:absolute; inset:0; background:linear-gradient(to top,rgba(20,28,10,.92),rgba(20,28,10,.15) 70%,transparent); }
.glc-feat .glc-cap{ position:absolute; left:0; right:0; bottom:0; padding:18px; color:#fff; }
.glc-feat-big .glc-cap h2{ color:#fff; font-size:25px; line-height:1.2; margin:6px 0 0; text-shadow:0 1px 10px rgba(0,0,0,.5); }
.glc-feat-small .glc-cap{ padding:12px; } .glc-feat-small .glc-cap h3{ color:#fff; font-size:14px; line-height:1.25; margin:0; text-shadow:0 1px 8px rgba(0,0,0,.6); }
.glc-cat{ display:inline-block; background:var(--green); color:#13200a; font-weight:600; font-size:11px; text-transform:uppercase; letter-spacing:.6px; padding:3px 9px; border-radius:3px; }

/* Grille de cartes */
.glc-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:20px; }
.glc-card{ background:var(--paper); border:1px solid var(--line); border-radius:8px; overflow:hidden; display:flex; flex-direction:column; text-decoration:none; transition:box-shadow .2s,transform .2s; }
.glc-card:hover{ box-shadow:0 8px 22px rgba(27,37,15,.13); transform:translateY(-2px); }
.glc-card-thumb{ position:relative; display:block; height:150px; background:var(--dark) center/cover no-repeat; }
.glc-card-thumb .glc-cat{ position:absolute; left:10px; bottom:10px; }
.glc-card-body{ padding:13px 15px 16px; display:flex; flex-direction:column; gap:6px; }
.glc-card-title{ font-family:'Poppins',sans-serif; font-weight:600; color:var(--dark); font-size:15px; line-height:1.3; }
.glc-card:hover .glc-card-title{ color:var(--green-dark); }
.glc-card-date{ color:var(--muted); font-size:12px; }

/* Archives : liste façon magazine (vignette gauche) */
body.archive .site-main, body.search .site-main{ display:flex; flex-direction:column; gap:20px; }
body.archive article.post, body.search article{ background:var(--paper); border:1px solid var(--line); border-radius:8px; overflow:hidden; margin:0; padding:0; }
body.archive .inside-article, body.search .inside-article{ display:grid; grid-template-columns:240px 1fr; column-gap:20px; padding:0; }
body.archive .post-image, body.search .post-image{ grid-column:1; grid-row:1/99; margin:0; }
body.archive .post-image img, body.search .post-image img{ width:100%; height:100%; min-height:150px; object-fit:cover; display:block; }
body.archive .entry-header, body.archive .entry-summary, body.archive .entry-content, body.archive .entry-meta, body.archive .read-more-container,
body.search .entry-header, body.search .entry-summary, body.search .entry-content, body.search .entry-meta{ grid-column:2; padding-right:18px; }
body.archive .entry-header{ padding-top:16px; } body.archive .entry-title{ font-size:20px; margin:0; }
body.archive .entry-meta, body.search .entry-meta{ color:var(--muted); font-size:13px; padding-bottom:16px; }
@media(max-width:600px){ body.archive .inside-article, body.search .inside-article{ grid-template-columns:1fr; } body.archive .post-image{ grid-row:auto; } body.archive .post-image img{ min-height:180px; } body.archive .entry-header,body.archive .entry-summary,body.archive .entry-meta{ padding:0 16px; } body.archive .entry-header{ padding-top:14px; } }

/* Single confortable + liés */
.single .entry-title{ font-size:31px; line-height:1.2; }
.single .entry-content{ font-size:17px; }
.entry-content h2{ font-size:25px; margin:1.6em 0 .5em; padding-left:.5em; border-left:4px solid var(--green); }
.entry-content h3{ font-size:20px; margin:1.3em 0 .4em; color:var(--green-dark); }
.entry-content blockquote{ border-left:4px solid var(--green); background:#eef3e4; margin:1.3em 0; padding:.8em 1.2em; }
.entry-content img{ border-radius:6px; } .entry-content ul li::marker{ color:var(--green); }
.glc-related{ margin-top:34px; padding-top:6px; }

/* Sidebar façon SmartMag */
.widget-area .widget, .widget-area .glc-widget{ background:var(--paper); border:1px solid var(--line); border-radius:8px; padding:16px 18px; margin-bottom:24px; }
.widget-area .widget-title{ font-size:16px; margin:0 0 14px; padding-bottom:10px; border-bottom:2px solid var(--dark); position:relative; }
.widget-area .widget-title:after{ content:""; position:absolute; left:0; bottom:-2px; width:50px; height:2px; background:var(--green); }
.glc-mini{ list-style:none; margin:0; padding:0; }
.glc-mini li{ margin:0 0 12px; } .glc-mini li:last-child{ margin-bottom:0; }
.glc-mini a{ display:flex; gap:11px; align-items:center; text-decoration:none; color:var(--ink); }
.glc-mini-thumb img{ width:64px; height:64px; object-fit:cover; border-radius:5px; display:block; }
.glc-mini-t{ font-family:'Poppins',sans-serif; font-weight:500; font-size:13.5px; line-height:1.3; color:var(--dark); }
.glc-mini a:hover .glc-mini-t{ color:var(--green-dark); }
.wpp-list{ list-style:none; margin:0; padding:0; } .wpp-list>li{ margin:0 0 12px; display:flex; gap:11px; align-items:center; }
.wpp-list .wpp-thumbnail{ border-radius:5px; flex:0 0 auto; } .wpp-list .wpp-post-title{ font-family:'Poppins',sans-serif; font-weight:500; font-size:13.5px; color:var(--dark); }
.wpp-list a{ text-decoration:none; }

/* Boutons / footer */
.wp-block-button__link,button,.button,input[type="submit"]{ background:var(--green-dark); border-radius:4px; }
.wp-block-button__link:hover,button:hover{ background:var(--dark); }
.site-footer,.footer-widgets,.site-info{ background:var(--dark); color:#dfe7d2; }
.site-info{ text-align:center; } .site-info a,.footer-widgets a{ color:var(--green-light); text-decoration:none; } .site-info a:hover{ text-decoration:underline; }
.inside-site-info{ border-top:none; }

@media(max-width:768px){ .glc-feat{ grid-template-columns:1fr; } .glc-feat-side{ grid-template-columns:1fr 1fr; grid-template-rows:none; } .glc-feat-big{ min-height:240px; } .single .entry-title{ font-size:25px; } }