/*
Theme Name: Astra Child — Industrial Gazette
Template: astra
Version: 0.1.0
Description: Habillage presse/dépêche d'industrialgazette.com (charte : SITES/industrialgazette/editorial/branding/style-charter.md)
*/

@font-face{font-family:'Archivo Narrow';font-weight:400;font-display:swap;src:url(assets/fonts/archivo-narrow-400.ttf) format('truetype');}
@font-face{font-family:'Archivo Narrow';font-weight:600;font-display:swap;src:url(assets/fonts/archivo-narrow-600.ttf) format('truetype');}
@font-face{font-family:'Archivo Narrow';font-weight:700;font-display:swap;src:url(assets/fonts/archivo-narrow-700.ttf) format('truetype');}

:root{
	--ig-red:#D7261E; --ig-red-dark:#A81A14; --ig-ink:#111114; --ig-graphite:#40424A; --ig-yellow:#FFD60A;
	--ig-news:#FFFFFF; --ig-paper:#fff; --ig-news-dark:#E1E3E8; --ig-paper-soft:#F2F3F6;
	--ig-head:'Old Standard TT',Georgia,serif; --ig-body:'PT Serif',Georgia,serif; --ig-kick:'Archivo Narrow','Arial Narrow',sans-serif;
}
body{background:var(--ig-news);color:var(--ig-graphite);font-family:var(--ig-body);}
h1,h2,h3,h4,h5,h6,.entry-title{font-family:var(--ig-head);color:var(--ig-ink);}
a{color:var(--ig-red);} a:hover{color:var(--ig-red-dark);}

/* Header : nameplate centré, filets */
.main-header-bar{background:var(--ig-news);border-bottom:3px double var(--ig-ink);}
.ast-site-identity{text-align:center;}
.site-header .custom-logo{max-height:70px;width:auto;}
.main-header-menu a{font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.08em;font-size:14px;color:var(--ig-ink);}
.main-header-menu a:hover{color:var(--ig-red);}
.site-footer,.site-below-footer-wrap,.ast-small-footer{background:var(--ig-ink);color:#cfcfca;}
.site-footer a{color:#fff;}

/* Kicker / méta */
.ig-kicker{font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.1em;font-size:12px;color:var(--ig-red);font-weight:600;}
.ig-kicker time,.ig-meta{color:var(--ig-graphite);font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.08em;font-size:12px;}
.single .entry-header .ast-single-post-order,.entry-meta{font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.08em;font-size:12px;}
.single .entry-content{font-size:19px;line-height:1.7;}
.single .entry-content blockquote{border-left:2px solid var(--ig-red);background:var(--ig-paper-soft);padding:.8em 1.2em;font-style:italic;}
.single .entry-content img,.ig-thumb img{border:1px solid var(--ig-ink);padding:0;}
.wp-caption-text,figcaption{font-family:var(--ig-kick);font-size:13px;}

/* ===== HOME ===== */
.ig-home{max-width:1240px;margin:0 auto;padding:0 20px 40px;}
.site-content .ig-home{margin-top:-40px;}
.ig-dateline{display:flex;justify-content:space-between;font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.1em;font-size:12px;color:var(--ig-ink);border-bottom:1px solid var(--ig-ink);padding:10px 0;}
.ig-card a{color:inherit;text-decoration:none;}
.ig-card h2,.ig-card h3,.ig-card h4{margin:.25em 0 .35em;line-height:1.15;}
.ig-card h2 a:hover,.ig-card h3 a:hover,.ig-card h4 a:hover,.ig-list a:hover{color:var(--ig-red);}
.ig-card p{margin:0 0 .5em;font-size:16px;line-height:1.5;}
.ig-thumb{display:block;margin-bottom:10px;}
.ig-thumb img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block;filter:saturate(.75) contrast(1.05);}

/* Une : 3 colonnes façon time.com (lead | secondaires | dernières) */
.ig-top{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,3fr) minmax(0,3fr);gap:0;border-bottom:1px solid var(--ig-ink);}
.ig-top>*{padding:22px 22px;border-left:1px solid var(--ig-ink);}
.ig-top>*:first-child{border-left:0;padding-left:0;}
.ig-top>*:last-child{padding-right:0;}
.ig-lead h2{font-size:clamp(30px,3.6vw,46px);}
.ig-lead p{font-size:19px;}
.ig-stack .ig-card{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--ig-news-dark);}
.ig-stack .ig-card:last-child{border-bottom:0;margin-bottom:0;}
.ig-stack h3{font-size:22px;}
.ig-latest h3.ig-h{margin-top:0;}

.ig-h{font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.14em;font-size:13px;color:var(--ig-ink);border-top:3px solid var(--ig-red);padding-top:8px;margin:0 0 14px;font-weight:700;}
.ig-list{list-style:none;margin:0;padding:0;}
.ig-list li{padding:10px 0;border-bottom:1px solid var(--ig-news-dark);margin:0;}
.ig-list li:last-child{border-bottom:0;}
.ig-list a{font-family:var(--ig-head);font-size:18px;line-height:1.2;color:var(--ig-ink);text-decoration:none;font-weight:700;display:block;}
.ig-list .ig-meta{display:block;margin-top:3px;}

/* Sections rubriques */
.ig-section{padding:26px 0;border-bottom:1px solid var(--ig-ink);}
.ig-section-head{display:flex;justify-content:space-between;align-items:baseline;border-top:3px double var(--ig-ink);padding-top:8px;margin-bottom:18px;}
.ig-section-head h2{font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.14em;font-size:20px;margin:0;color:var(--ig-ink);}
.ig-section-head a{font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.1em;font-size:12px;}
.ig-cols{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,3fr) minmax(0,3fr);gap:0;}
.ig-cols>*{padding:0 22px;border-left:1px solid var(--ig-news-dark);}
.ig-cols>*:first-child{border-left:0;padding-left:0;}
.ig-cols>*:last-child{padding-right:0;}
.ig-cols .ig-main h3{font-size:30px;}
.ig-cols--four{grid-template-columns:repeat(4,minmax(0,1fr));}
.ig-cols--four .ig-card h4{font-size:19px;}

/* Grille dense « More stories » */
.ig-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 0;}
.ig-grid .ig-card{padding:0 20px;border-left:1px solid var(--ig-news-dark);}
.ig-grid .ig-card:nth-child(4n+1){border-left:0;padding-left:0;}
.ig-grid .ig-card h4{font-size:19px;}
.ig-pager{text-align:center;margin-top:28px;font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.1em;}
.ig-pager .page-numbers{padding:6px 12px;border:1px solid var(--ig-ink);margin:0 3px;color:var(--ig-ink);text-decoration:none;}
.ig-pager .current{background:var(--ig-ink);color:#fff;}

@media(max-width:921px){
	.ig-top,.ig-cols,.ig-cols--four{grid-template-columns:1fr 1fr;}
	.ig-top>*,.ig-cols>*{border-left:0;padding:16px 0;}
	.ig-top>.ig-lead{grid-column:1/-1;border-bottom:1px solid var(--ig-ink);}
	.ig-cols>.ig-main{grid-column:1/-1;}
	.ig-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px;}
	.ig-grid .ig-card{border:0;padding:0;}
}
@media(max-width:600px){
	.ig-top,.ig-cols,.ig-cols--four,.ig-grid{grid-template-columns:1fr;}
	.ig-dateline{flex-direction:column;gap:2px;}
}

/* Correctifs rendu (fonds, header, footer) */
body,#page,.site-content,.ast-separate-container,.ast-separate-container .site-content,.ast-page-builder-template .site-content{background:var(--ig-news);}
.ast-separate-container .ast-article-single,.ast-separate-container .ast-article-post{background:var(--ig-paper);}
.site-title,.site-description{display:none;}
.site-header .ast-site-identity,.site-header .site-branding{justify-content:center;}
.main-header-bar .main-header-bar-navigation{text-align:center;}
.site-header .custom-logo{max-height:64px;}
.ast-primary-header-bar .site-primary-header-wrap{justify-content:center;}
.site-footer,.site-footer .site-below-footer-wrap,.site-footer .ast-small-footer,.site-below-footer-wrap[data-section]{background:var(--ig-ink)!important;color:#cfcfca!important;}
.site-footer a{color:#fff!important;}

/* Punch : blanc froid + rouge vif + surligneur jaune */
.ig-section-head{border-top:0;border-bottom:3px solid var(--ig-ink);padding-top:0;}
.ig-section-head h2{background:var(--ig-red);color:#fff;padding:6px 14px;font-size:17px;}
.ig-section-head a{color:var(--ig-ink);font-weight:700;}
.ig-section-head a:hover{background:var(--ig-yellow);color:var(--ig-ink);}
.ig-h{border-top:0;background:var(--ig-yellow);color:var(--ig-ink);display:inline-block;padding:4px 10px;}
.ig-kicker{font-weight:700;}
.ig-card h2 a,.ig-card h3 a,.ig-card h4 a,.ig-list a{background-image:linear-gradient(var(--ig-yellow),var(--ig-yellow));background-size:0 .45em;background-repeat:no-repeat;background-position:0 92%;transition:background-size .2s;}
.ig-card h2 a:hover,.ig-card h3 a:hover,.ig-card h4 a:hover,.ig-list a:hover{background-size:100% .45em;color:var(--ig-ink);}
.ig-dateline{border-bottom:3px solid var(--ig-ink);}
.ig-dateline span:first-child{background:var(--ig-ink);color:#fff;padding:3px 10px;margin-bottom:-1px;}
.ig-top{border-bottom:3px solid var(--ig-ink);}
.ig-lead .ig-kicker{display:inline-block;background:var(--ig-red);color:#fff;padding:2px 8px;}
.ig-lead .ig-kicker time{color:#fff;}
.main-header-bar{background:#fff;border-bottom:3px solid var(--ig-ink);}
.site-footer,.site-footer .site-below-footer-wrap,.site-footer .ast-small-footer,.site-below-footer-wrap[data-section]{border-top:4px solid var(--ig-yellow);}
.ig-pager .current{background:var(--ig-red);border-color:var(--ig-red);}

.ig-dateline{align-items:center;gap:20px;}
.ig-dateline .ig-date{white-space:nowrap;}
.ig-flash{color:var(--ig-ink);text-decoration:none;text-transform:none;letter-spacing:0;font-family:var(--ig-head);font-size:16px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
.ig-flash b{background:var(--ig-red);color:#fff;font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.1em;font-size:12px;padding:3px 8px;margin-right:8px;}
.ig-flash:hover{color:var(--ig-red);}
.ig-rubrics{display:flex;flex-wrap:wrap;gap:6px 22px;padding:12px 0;border-bottom:1px solid var(--ig-news-dark);font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.1em;font-size:14px;font-weight:700;}
.ig-rubrics a{color:var(--ig-ink);text-decoration:none;}
.ig-rubrics a:hover{color:var(--ig-red);box-shadow:0 3px 0 var(--ig-yellow);}

/* Images : grande à la une (lg), petite vignette flottante ailleurs (sm) */
.ig-card--sm .ig-thumb{float:left;width:104px;margin:2px 14px 6px 0;}
.ig-card--sm .ig-thumb img{border:0;}
.ig-card--sm::after{content:'';display:block;clear:both;}
.ig-card--lg .ig-thumb{margin-bottom:14px;}
.ig-card--lg .ig-thumb img{aspect-ratio:3/2;}
.ig-grid .ig-card--sm .ig-thumb{float:none;width:100%;margin:0 0 10px;}
.ig-thumb+.ig-kicker{clear:none;}

.ig-rubrics{position:relative;align-items:center;}
.ig-more-cats summary{cursor:pointer;list-style:none;background:var(--ig-ink);color:#fff;padding:3px 10px;}
.ig-more-cats summary::-webkit-details-marker{display:none;}
.ig-more-cats[open] summary{background:var(--ig-red);}
.ig-more-cats div{position:absolute;right:0;z-index:20;background:#fff;border:1px solid var(--ig-ink);border-top:3px solid var(--ig-red);padding:12px 18px;display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:8px 24px;box-shadow:0 8px 20px rgba(0,0,0,.12);}

/* Article : image à la une pleine colonne, méta sobre */
.single .post-thumb-img-content img,.single .ast-single-post-order img.wp-post-image{border:0;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;filter:saturate(.8) contrast(1.05);}
.single .entry-meta,.archive .entry-meta{font-family:var(--ig-kick);}
.single .entry-meta .cat-links a{background:var(--ig-red);color:#fff;padding:2px 8px;text-decoration:none;}
.single .entry-title{font-size:clamp(30px,3.4vw,44px);line-height:1.12;}
.archive .page-title{font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.14em;background:var(--ig-red);color:#fff;display:inline-block;padding:6px 14px;font-size:20px;}
.archive .ast-archive-description{border-bottom:3px solid var(--ig-ink);padding-bottom:12px;}
.archive .entry-title a,.blog .entry-title a{color:var(--ig-ink);}
.archive .entry-title a:hover{color:var(--ig-red);}
.single .entry-meta .posted-by,.single .entry-meta .posted-by + .ast-meta-sep{display:none;}
.single .entry-meta{font-size:0;}
.single .entry-meta .posted-on,.single .entry-meta .cat-links{font-size:12px;}
.ig-single-hero{margin:0 0 26px;}
.ig-single-hero img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block;filter:saturate(.8) contrast(1.05);}

.single .entry-header .entry-meta{display:none;}
.ig-byline{display:flex;gap:12px;align-items:center;margin:0 0 16px;font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.1em;font-size:12px;color:var(--ig-graphite);}
.ig-catchip{background:var(--ig-red);color:#fff!important;padding:2px 8px;text-decoration:none;font-weight:700;}
.ig-catchip{text-decoration:none!important;}

.ig-top:not(:has(.ig-latest)){grid-template-columns:minmax(0,5fr) minmax(0,3fr);}
@media(max-width:921px){.ig-top:not(:has(.ig-latest)){grid-template-columns:1fr;}}
@media(max-width:600px){
	.ig-dateline{align-items:flex-start;}
	.ig-flash{white-space:normal;overflow:visible;font-size:15px;line-height:1.25;}
}

.ig-cols--solo{grid-template-columns:1fr;}
.ig-cols--solo .ig-main{padding:0;}
.ig-cols--solo .ig-card--lg{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:0 28px;align-items:start;}
.ig-cols--solo .ig-card--lg .ig-thumb{grid-row:1 / span 3;margin:0;}
.ig-cols--solo .ig-card--lg h3{font-size:32px;}
@media(max-width:700px){.ig-cols--solo .ig-card--lg{display:block;}}
.ig-cols--solo .ig-card--lg{align-content:center;}

/* Sélecteur de langue */
.ig-langbar{background:var(--ig-ink);}
.ig-langbar-in{max-width:1240px;margin:0 auto;padding:0 20px;display:flex;justify-content:flex-end;gap:2px;}
.ig-lang{color:#fff;font-family:var(--ig-kick);font-size:12px;letter-spacing:.12em;padding:5px 12px;text-decoration:none;}
.ig-lang:hover{background:#2a2a30;color:#fff;}
.ig-lang.is-current{background:var(--ig-yellow);color:var(--ig-ink);font-weight:700;}

/* En-tête : logo seul, centré (pas de menu de pages en secours) ; pied de page : liens + copyright */
.ast-builder-menu-1,#ast-hf-menu-1,.main-header-menu-toggle{display:none!important;}
.ast-primary-header-bar .site-primary-header-wrap .ast-builder-layout-element.site-header-focus-item{margin:0 auto;}
.ig-footline{text-align:center;}
.ig-footmenu{list-style:none;margin:0 0 10px;padding:0;display:flex;justify-content:center;gap:22px;flex-wrap:wrap;}
.ig-footmenu a{font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.1em;font-size:13px;color:#fff!important;text-decoration:none;}
.ig-footmenu a:hover{color:var(--ig-yellow)!important;}
.ig-footline p{margin:0;color:#9a9aa3;font-size:13px;}

/* ===== Sections multicolonnes supplémentaires ===== */
.ig-band{padding:26px 0;border-bottom:1px solid var(--ig-ink);}
.ig-band--dark{background:var(--ig-ink);margin:0 -20px;padding:26px 20px;border-bottom:0;}
.ig-band-h{font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.16em;font-size:14px;color:var(--ig-yellow);margin:0 0 16px;}
.ig-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;}
.ig-num{display:block;color:#fff;text-decoration:none;padding:0 22px;border-left:1px solid #3a3a42;}
.ig-num:first-child{border-left:0;padding-left:0;}
.ig-num b{display:block;font-family:var(--ig-head);font-size:clamp(34px,4vw,56px);line-height:1;color:var(--ig-yellow);font-weight:700;}
.ig-num span{display:block;margin-top:10px;font-size:16px;line-height:1.3;color:#e8e8ea;}
.ig-num:hover span{text-decoration:underline;}
.ig-country-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;}
.ig-country{padding:0 20px;border-left:1px solid var(--ig-news-dark);}
.ig-country:first-child{border-left:0;padding-left:0;}
.ig-country .ig-card{margin-bottom:16px;}
.ig-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;}
.ig-split>.ig-card{padding:0 26px;border-left:1px solid var(--ig-news-dark);}
.ig-split>.ig-card:first-child{border-left:0;padding-left:0;}
.ig-split h3{font-size:30px;}
.ig-cols--four{grid-template-columns:repeat(4,minmax(0,1fr));}
.ig-cols--four>.ig-card{padding:0 20px;border-left:1px solid var(--ig-news-dark);}
.ig-cols--four>.ig-card:first-child{border-left:0;padding-left:0;}
.ig-cols--four .ig-card--lg .ig-thumb{margin-bottom:10px;}
.ig-strip{margin-top:18px;border-top:1px solid var(--ig-news-dark);padding-top:8px;}
.ig-strip .ig-list{columns:2;column-gap:40px;}
.ig-strip .ig-list li{break-inside:avoid;}
.ig-cols--duo{grid-template-columns:minmax(0,7fr) minmax(0,5fr);}
.ig-cols--duo .ig-main h3{font-size:34px;}
.ig-cols--duo .ig-more>.ig-card{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--ig-news-dark);}
.ig-cols--duo .ig-more>.ig-card:last-child{border-bottom:0;}
@media(max-width:921px){
	.ig-numbers,.ig-country-grid,.ig-cols--four{grid-template-columns:1fr 1fr;gap:22px 18px;}
	.ig-num,.ig-country,.ig-cols--four>.ig-card{border:0;padding:0;}
	.ig-split,.ig-cols--duo{grid-template-columns:1fr;}
	.ig-split>.ig-card{border:0;padding:0 0 18px;}
	.ig-strip .ig-list{columns:1;}
}
@media(max-width:600px){.ig-numbers,.ig-country-grid,.ig-cols--four{grid-template-columns:1fr;}}

/* Encadré Sources */
.ig-sources{margin:36px 0 18px;padding:18px 22px 6px;background:var(--ig-paper-soft);border-top:3px solid var(--ig-red);}
.single .entry-content .ig-sources-h{font-family:var(--ig-kick);text-transform:uppercase;letter-spacing:.14em;font-size:13px;margin:0 0 10px;color:var(--ig-ink);}
.ig-sources ul{list-style:none;margin:0;padding:0;}
.ig-sources li{font-size:15px;line-height:1.4;padding:8px 0;border-top:1px solid var(--ig-news-dark);margin:0;color:var(--ig-graphite);}
.ig-sources li:first-child{border-top:0;}
.ig-sources li a{font-weight:700;color:var(--ig-ink);text-decoration:none;border-bottom:2px solid var(--ig-yellow);}
.ig-sources li a:hover{background:var(--ig-yellow);}
.single .entry-content .ig-credit,.single .entry-content p:last-child{font-family:var(--ig-kick);font-size:13px;color:var(--ig-graphite);}
