/* =========================================================
   Texture · Home éditoriale (3 zones)
   Charger via functions.php (wp_enqueue_style) ou CSS additionnel.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

.tx-home{
	max-width:1680px;
	margin:0 auto;
	padding:48px 32px 72px;
	box-sizing:border-box;
}

/* ---- Carte générique ---- */
.tx-story{ margin:0; }
.tx-thumb{ display:block; overflow:hidden; background:#f2efe9; }
.tx-img{
	display:block; width:100%; height:auto;
	aspect-ratio:3/2; object-fit:cover;
	transition:transform .6s ease;
}
.tx-thumb:hover .tx-img{ transform:scale(1.03); }

.tx-title{
	font-family:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	font-weight:500; line-height:1.12; letter-spacing:.15px;
	margin:16px 0 0; font-size:22px; color:#151515;
}
.tx-title a{ color:inherit; text-decoration:none; }
.tx-title a:hover{ color:#000; }

.tx-rule{ display:block; width:44px; height:1px; background:#1a1a1a; margin:13px 0; }

.tx-dek{
	font-family:-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
	font-size:14.5px; line-height:1.55; color:#5b5b5b; margin:0;
	display:-webkit-box; -webkit-box-orient:vertical;
	-webkit-line-clamp:4; overflow:hidden;
}

/* =========================================================
   ZONE 1 · Une  (2 | héro | 2)
   ========================================================= */
.tx-top{
	display:grid;
	grid-template-columns:1fr 1.72fr 1fr;
	margin-bottom:52px;
}
.tx-col{ padding:0 44px; }
.tx-col--left{ padding-left:0; }
.tx-col--right{ padding-right:0; }
/* align-self:start = la colonne centrale ne s'étire plus à la hauteur des
   colonnes latérales → les filets s'arrêtent au bas du héro, plus de vide */
.tx-col--center{
	align-self:start;
	border-left:1px solid #e6e2db; border-right:1px solid #e6e2db;
}

.tx-col--side .tx-story + .tx-story{
	margin-top:34px; padding-top:34px; border-top:1px solid #e6e2db;
}
/* chapôs latéraux plus courts → colonnes latérales moins hautes (mieux équilibré) */
.tx-col--side .tx-dek{ -webkit-line-clamp:3; }

/* héro : image plus haute + chapô plus long = colonne centrale mieux remplie.
   Pour des FILETS PLEINE HAUTEUR façon AD, passe l'image en 4/5 (plus grande,
   mais aussi plus exigeante en résolution source). */
.tx-hero .tx-img{ aspect-ratio:4/3; }
.tx-hero .tx-title{ font-size:40px; font-weight:600; margin-top:20px; }
.tx-hero .tx-rule{ margin:15px 0; }
.tx-hero .tx-dek{ -webkit-line-clamp:6; font-size:15px; }

/* =========================================================
   ZONE 2 · 6 articles (2 colonnes) + sidebar
   ========================================================= */
.tx-zone2{
	display:grid;
	grid-template-columns:minmax(0,1fr) 300px;
	gap:56px;
	border-top:1px solid #e6e2db;
	padding-top:52px;
	margin-bottom:64px;
}
.tx-zone2-main{ display:grid; grid-template-columns:1fr 1fr; gap:44px 40px; }
.tx-zone2-side .widget{ margin-bottom:32px; }
.tx-widget-title{
	font-family:'Cormorant Garamond',Georgia,serif; font-weight:600;
	font-size:20px; margin:0 0 14px; padding-bottom:8px; border-bottom:1px solid #e6e2db;
}
.tx-zone2-side-empty{
	font:13.5px/1.5 -apple-system,"Segoe UI",Roboto,sans-serif; color:#9a958c;
	border:1px dashed #e0dcd3; padding:24px; text-align:center; background:#faf9f7;
}

/* =========================================================
   ZONE 3 · Rubriques (maillage) — 3 colonnes
   ========================================================= */
.tx-rubriques{ margin-top:8px; }               /* plus de border-top redondant */
.tx-rubrique{ margin-top:44px; }
.tx-rubrique-head{
	display:flex; align-items:baseline; justify-content:space-between;
	margin-bottom:22px;                        /* plus de soulignement 2px (doublon menu) */
}
.tx-rubrique-head h2{
	font-family:"Open Sans", Lato, sans-serif; /* charte du site */
	font-weight:700; font-size:17px;
	text-transform:uppercase; letter-spacing:.06em;
	margin:0;
}
.tx-rubrique-head h2 a{ color:#1a1a1a; text-decoration:none; }
.tx-rubrique-all{
	font:11.5px/1 "Open Sans", sans-serif;
	text-transform:uppercase; letter-spacing:.09em; color:#8a857c; text-decoration:none;
	white-space:nowrap;
}
.tx-rubrique-all:hover{ color:#1a1a1a; }

.tx-rubrique-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:40px; }
/* desktop : une seule rangée de 3 (les articles 4-6 servent au swipe mobile) */
.tx-rubrique-row .tx-story:nth-child(n+4){ display:none; }

/* =========================================================
   MOBILE  (≤ 900px)
   ========================================================= */
@media (max-width:900px){
	.tx-home{ padding:28px 18px 48px; }

	/* --- Zone 1 : tout en colonne, héro en premier --- */
	.tx-top{ display:flex; flex-direction:column; margin-bottom:40px; }
	.tx-col{ padding:0; border:0; }
	.tx-col--center{ order:-1; }
	.tx-col--left{ order:0; }
	.tx-col--right{ order:1; }
	.tx-col--side .tx-story + .tx-story{ margin-top:0; padding-top:0; border-top:0; }
	.tx-story{ padding-bottom:30px; margin-bottom:30px; border-bottom:1px solid #e6e2db; }
	.tx-col--right .tx-story:last-child{ border-bottom:0; margin-bottom:0; padding-bottom:0; }
	.tx-hero .tx-title{ font-size:30px; }

	/* --- Zone 2 : 1 colonne, sidebar dessous --- */
	/* min-width:0 = autorise la grille à rétrécir sous la largeur de son contenu
	   (sinon elle reste bloquée ~527px et déborde sur les petits écrans iPhone) */
	.tx-zone2{ grid-template-columns:1fr; gap:36px; padding-top:40px; margin-bottom:48px; }
	.tx-zone2 > *{ min-width:0; }
	.tx-zone2-main{ grid-template-columns:1fr; gap:30px; min-width:0; }
	.tx-zone2-main .tx-story{ min-width:0; padding-bottom:30px; margin-bottom:0; border-bottom:1px solid #e6e2db; }
	.tx-zone2-main .tx-story:last-child{ border-bottom:0; padding-bottom:0; }

	/* --- Zone 3 : 1 article visible + swipe (carrousel natif, sans JS) --- */
	.tx-rubrique-row{
		display:flex;
		grid-template-columns:none;
		gap:16px;
		overflow-x:auto;
		scroll-snap-type:x mandatory;
		-webkit-overflow-scrolling:touch;
		scrollbar-width:none;
		margin:0 -18px;          /* déborde jusqu'aux bords de l'écran */
		padding:0 18px 8px;
	}
	.tx-rubrique-row::-webkit-scrollbar{ display:none; }
	.tx-rubrique-row .tx-story{
		flex:0 0 86%;
		scroll-snap-align:center;
		border:0; margin:0; padding:0;
	}
	.tx-rubrique-row .tx-story:nth-child(n+4){ display:block; } /* réaffichés pour le swipe */
}

/* Tablette : titres un cran plus petits */
@media (min-width:901px) and (max-width:1150px){
	.tx-col{ padding:0 28px; }
	.tx-title{ font-size:20px; }
	.tx-hero .tx-title{ font-size:34px; }
	.tx-zone2{ grid-template-columns:minmax(0,1fr) 260px; gap:40px; }
}

/* Filet de sécurité si le header Zeen contraint la largeur du contenu
   (décommenter seulement si la home s'affiche en ~2/3 de largeur) */
/*
#primary.content-area, #content .content-area{ width:100%!important; max-width:none!important; float:none!important; }
#contents-wrap.sidebar-right{ display:block!important; }
*/
