/* ─── T.O.C.I. Homepage — Structure générique v2.0 ───
   Zéro couleur, zéro image de fond.
   Toutes les personnalisations visuelles vont dans skins/{nom}/{nom}-homepage.css
─────────────────────────────────────────────────────── */

/* HERO */
.toci-hero {
	text-align: center;
	padding: 3rem 1.5rem 2rem;
	border-radius: 12px;
	margin-bottom: 2rem;
}
.toci-hero-title {
	font-size: clamp(1.4rem, 4vw, 2.4rem);
	font-weight: 700;
	margin: 0 0 .5rem;
}
.toci-hero-sub {
	font-size: .85rem;
	margin: 0 0 1.75rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .75;
}

/* SEARCH */
.toci-search-wrap { max-width: 580px; margin: 0 auto; }
.toci-search-row  { display: flex; gap: 8px; margin-bottom: 10px; }

.toci-search-input {
	flex: 1;
	height: 48px;
	padding: 0 18px;
	border-radius: 8px;
	border: 1px solid rgba(128,128,128,.3);
	background: rgba(255,255,255,.95);
	font-size: 1rem;
	color: #111;
}
.toci-search-input:focus { outline: 2px solid rgba(128,128,128,.5); outline-offset: 1px; }

.toci-btn-diag {
	height: 48px;
	padding: 0 20px;
	border-radius: 8px;
	border: 1px solid rgba(128,128,128,.3);
	background: rgba(255,255,255,.15);
	font-size: .875rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s;
}
.toci-btn-diag:hover { background: rgba(255,255,255,.25); }

/* UPLOAD */
.toci-upload-row { text-align: center; margin-bottom: 1rem; }
.toci-btn-upload {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .8rem;
	opacity: .7;
	cursor: pointer;
	padding: 6px 14px;
	border-radius: 6px;
	border: 1px dashed rgba(128,128,128,.4);
	transition: opacity .15s;
}
.toci-btn-upload:hover { opacity: 1; }

/* RESULTS */
.toci-results { margin-top: 12px; }
.toci-result-item {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(255,255,255,.95);
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 6px;
	color: #111;
	text-align: left;
}
.toci-result-dot    { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.toci-result-title  { font-size: .875rem; font-weight: 600; margin: 0 0 2px; }
.toci-result-sub    { font-size: .75rem; color: #555; margin: 0; }
.toci-result-empty  { font-size: .85rem; opacity: .75; padding: 8px 0; margin: 0; }

/* FILTRES */
.toci-filters-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
	gap: 8px;
	margin-top: 1.5rem;
}
.toci-filter-card {
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 10px;
	padding: 10px 6px 8px;
	text-align: center;
	cursor: pointer;
	color: inherit;
	transition: background .15s, transform .15s;
}
.toci-filter-card:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.toci-filter-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,.2);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 6px;
}
.toci-filter-icon img  { width: 22px; height: 22px; object-fit: contain; }
.toci-filter-dot       { width: 16px; height: 16px; border-radius: 50%; display: block; background: currentColor; }
.toci-filter-name      { font-size: .7rem; font-weight: 700; margin: 0 0 2px; }
.toci-filter-kw        { font-size: .65rem; opacity: .75; margin: 0 0 6px; }
.toci-filter-cta       { font-size: .6rem; display: block; padding: 3px 6px; border-radius: 4px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); }

/* SECTION HEADER */
.toci-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 2rem 0 1rem;
}
.toci-section-header h2  { font-size: 1.25rem; font-weight: 600; margin: 0; }
.toci-section-header a   { font-size: .85rem; opacity: .6; text-decoration: none; }
.toci-section-header a:hover { opacity: 1; }

/* BLOG */
.toci-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.toci-blog-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	color: #111;
}
.toci-blog-img          { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #f5f5f5; }
.toci-blog-img img      { width: 100%; height: 100%; object-fit: cover; display: block; }
.toci-blog-img-ph       { width: 100%; height: 100%; background: #eee; }
.toci-blog-body         { padding: 12px 14px; flex: 1; }
.toci-blog-cat          { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: #777; margin: 0 0 5px; }
.toci-blog-title        { font-size: .9rem; font-weight: 600; margin: 0 0 7px; line-height: 1.4; }
.toci-blog-title a      { color: inherit; text-decoration: none; }
.toci-blog-title a:hover{ text-decoration: underline; }
.toci-blog-excerpt      { font-size: .8rem; color: #555; line-height: 1.6; margin: 0; }
.toci-blog-footer       { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-top: 1px solid #eee; }

.toci-btn-like,
.toci-btn-comments,
.toci-btn-share {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: .75rem;
	color: #666;
	background: none;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 4px 10px;
	cursor: pointer;
	transition: all .15s;
}
.toci-btn-like:hover,
.toci-btn-comments:hover,
.toci-btn-share:hover    { border-color: #999; color: #111; }
.toci-btn-like.liked     { color: #d4537e; border-color: #ED93B1; background: #FBEAF0; }
.toci-btn-share          { margin-left: auto; }

/* BOUTIQUE */
.toci-shop-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}
.toci-prod-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	color: #111;
}
.toci-prod-img           { width: 100%; aspect-ratio: 1/1; position: relative; overflow: hidden; background: #f5f5f5; }
.toci-prod-img img       { width: 100%; height: 100%; object-fit: cover; display: block; }
.toci-btn-wish {
	position: absolute;
	top: 6px; right: 6px;
	width: 28px; height: 28px;
	border-radius: 50%;
	background: rgba(255,255,255,.9);
	border: 1px solid #e0e0e0;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; color: #999;
	transition: all .15s;
}
.toci-btn-wish:hover { color: #d4537e; border-color: #ED93B1; }
.toci-btn-wish.wished{ color: #d4537e; border-color: #ED93B1; background: #FBEAF0; }
.toci-prod-body  { padding: 10px 10px 4px; flex: 1; }
.toci-prod-name  { font-size: .8rem; font-weight: 600; margin: 0 0 5px; line-height: 1.3; }
.toci-prod-name a{ color: inherit; text-decoration: none; }
.toci-prod-name a:hover { text-decoration: underline; }
.toci-prod-price { font-size: .85rem; font-weight: 700; margin: 0; }
.toci-prod-price del { font-size: .75rem; color: #999; font-weight: 400; margin-left: 4px; }
.toci-prod-footer{ display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid #eee; }

.toci-btn-cart {
	flex: 1;
	display: flex; align-items: center; justify-content: center; gap: 4px;
	font-size: .75rem; padding: 5px 8px;
	border-radius: 6px; border: 1px solid #e0e0e0;
	background: #f9f9f9; color: #333; cursor: pointer;
	transition: all .15s;
}
.toci-btn-cart:hover { border-color: #999; background: #f0f0f0; }
.toci-btn-cart.added{ color: #0F6E56; border-color: #5DCAA5; background: #E1F5EE; }

.toci-btn-share-sm {
	width: 30px; height: 30px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 6px; border: 1px solid #e0e0e0;
	background: none; cursor: pointer; color: #777; flex-shrink: 0;
}
.toci-btn-share-sm:hover { border-color: #999; color: #111; }

/* SHARE TRAY */
.toci-share-tray {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 12px 16px;
	margin-top: 10px;
}
.toci-share-tray > p  { font-size: .8rem; color: #666; margin: 0 0 8px; }
.toci-share-btns      { display: flex; gap: 8px; flex-wrap: wrap; }
.toci-share-btn {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: .8rem; padding: 5px 12px;
	border-radius: 6px; border: 1px solid #e0e0e0;
	background: #f7f7f7; color: #333;
	cursor: pointer; text-decoration: none;
	transition: border-color .15s;
}
.toci-share-btn:hover { border-color: #999; }
.toci-copy-ok {
	font-size: .8rem; color: #0F6E56; margin: 8px 0 0;
	display: flex; align-items: center; gap: 4px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
	.toci-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.toci-filters-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.toci-blog-grid    { grid-template-columns: 1fr; }
	.toci-shop-grid    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.toci-search-row   { flex-direction: column; }
	.toci-search-input, .toci-btn-diag { width: 100%; }
}
