/**
 * TOCI Graphic Map — styles
 * Migré depuis le wp_add_inline_style du child theme (2026-05-19).
 * Les anciens sélecteurs .page-id-1700 sont remplacés par body.tgm-corps-map-active,
 * classe posée dynamiquement par tgm_has_shortcode_on_page() dans helpers.php.
 */

/* === Page-level overrides (limités aux pages contenant le shortcode) === */
body.tgm-corps-map-active { background: #fff !important; background-image: none !important; }
body.tgm-corps-map-active .entry-hero { display: none !important; }

/* === Map container === */
#toci-wrap { width: 100%; max-width: 900px; margin: 0 auto; }

/* Responsive : aspect-ratio = ratio natif de l'image (1024:977 par défaut, surchargeable
   via JS si l'admin a configuré d'autres dimensions). Permet à la carte de garder
   ses proportions sur tablette/mobile sans bande grise. */
#leaflet-corps {
	width: 100%;
	aspect-ratio: 1024 / 977;
	height: auto;
	max-height: 80vh;
	border-radius: 10px;
	overflow: hidden;
	background: #f0f0f0;
}

/* === Modal === */
#toci-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0,0,0,.78);
	backdrop-filter: blur(7px);
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
#toci-modal.open { display: flex; }
#toci-modal-inner {
	background: linear-gradient(135deg, #0d0b2e, #1a1050);
	border: 1px solid rgba(0,188,212,.3);
	border-radius: 14px;
	width: 100%;
	max-width: 800px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 0 80px rgba(0,188,212,.1), 0 24px 64px rgba(0,0,0,.85);
}
#toci-modal-close {
	position: sticky;
	top: .75rem;
	float: right;
	margin: 0 .75rem 0 0;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 50%;
	width: 34px;
	height: 34px;
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
	z-index: 10;
}
#toci-modal-body { padding: 1.75rem 1.75rem 2rem; clear: both; }

/* === Modal — header === */
.tm-h { display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.4rem; }
.tm-dot {
	width: 54px; height: 54px;
	border-radius: 50%;
	flex-shrink: 0;
	border: 3px solid rgba(255,255,255,.15);
}
.tm-h-name {
	font-size: 1.45rem;
	font-weight: 800;
	color: #fff;
	margin: 0 0 .12rem;
	display: flex;
	align-items: baseline;
	gap: .55rem;
	flex-wrap: wrap;
}
.tm-h-sanskrit { font-size: .9rem; font-weight: 400; color: rgba(255,255,255,.42); font-style: italic; }
.tm-h-signif { font-size: .82rem; line-height: 1.55; color: rgba(255,255,255,.48); margin: .3rem 0; }
.tm-h-loc { font-size: .78rem; color: rgba(255,255,255,.35); }

/* === Modal — body === */
.tm-desc {
	font-size: .9rem;
	line-height: 1.85;
	color: rgba(255,255,255,.75);
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(255,255,255,.07);
}
.tm-st {
	font-size: .62rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #00bcd4;
	font-weight: 700;
	margin-bottom: .75rem;
	margin-top: 1.3rem;
}
.tm-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
@media (max-width: 560px) { .tm-two-cols { grid-template-columns: 1fr; } }
.tm-col-title {
	font-size: .62rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #00bcd4;
	font-weight: 700;
	margin-bottom: .55rem;
}
.tm-notions ul { margin: 0; padding-left: 1.1rem; }
.tm-notions li { font-size: .82rem; line-height: 1.8; color: rgba(255,255,255,.6); }

/* Tags / pierres / correspondances */
.tm-tags { display: flex; flex-wrap: wrap; gap: .33rem; }
.tm-tag {
	padding: .22rem .6rem;
	border-radius: 20px;
	font-size: .69rem;
	font-weight: 600;
	background: rgba(0,188,212,.1);
	border: 1px solid rgba(0,188,212,.22);
	color: #00bcd4;
}
.tm-pierres-section { margin-bottom: 1.5rem; }
.tm-pierres-title { font-size: .78rem; line-height: 1.55; color: rgba(255,255,255,.5); margin-bottom: .8rem; font-style: italic; }
.tm-pierre-dots { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .55rem; }
.tm-pierre-dot { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.07); }
.tm-pierre-names { font-size: .78rem; color: rgba(255,255,255,.42); line-height: 1.7; }

.tm-corr-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; margin: .75rem 0 1.4rem; }
@media (max-width: 500px) { .tm-corr-grid { grid-template-columns: 1fr 1fr; } }
.tm-cell { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 8px; padding: .7rem .85rem; }
.tm-cl { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: #00bcd4; font-weight: 700; margin-bottom: .28rem; }
.tm-cv { font-size: .83rem; color: rgba(255,255,255,.82); line-height: 1.4; }

/* === Modal — diagnostic / Comment vibrez-vous === */
.tm-diag-sep { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 1.6rem 0 1.2rem; }
.tm-diag-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.tm-diag-sub { font-size: .82rem; color: rgba(255,255,255,.48); margin-bottom: 1.3rem; }
.tm-plan-row { margin-bottom: 1.4rem; }
.tm-plan-lbl { font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.78); margin-bottom: .6rem; }
.tm-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
@media (max-width: 560px) { .tm-cols { grid-template-columns: 1fr; } }
.tm-card {
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 9px;
	padding: .8rem .9rem;
	cursor: pointer;
	transition: all .2s;
	background: rgba(255,255,255,.03);
	display: flex;
	flex-direction: column;
	gap: .5rem;
}
.tm-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); }
.tm-card-text { font-size: .79rem; line-height: 1.65; color: rgba(255,255,255,.62); margin: 0; flex: 1; }
.tm-card-badge {
	display: none;
	font-size: .58rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 700;
	padding: .16rem .5rem;
	border-radius: 4px;
	align-self: flex-start;
	margin-top: .35rem;
}
.tm-card.sel-neg { background: rgba(220,38,38,.13); border-color: #dc2626; }
.tm-card.sel-neg .tm-card-text,
.tm-card.sel-zero .tm-card-text,
.tm-card.sel-pos .tm-card-text { color: rgba(255,255,255,.9); }
.tm-card.sel-neg .tm-card-badge { display: inline-block; background: rgba(220,38,38,.22); color: #fca5a5; }
.tm-card.sel-zero { background: rgba(0,188,212,.13); border-color: #00bcd4; }
.tm-card.sel-zero .tm-card-badge { display: inline-block; background: rgba(0,188,212,.22); color: #67e8f9; }
.tm-card.sel-pos { background: rgba(234,88,12,.13); border-color: #ea580c; }
.tm-card.sel-pos .tm-card-badge { display: inline-block; background: rgba(234,88,12,.22); color: #fdba74; }
.tm-plan-lecture {
	font-size: .82rem;
	line-height: 1.7;
	color: rgba(255,255,255,.78);
	margin-top: .6rem;
	padding: .7rem .9rem;
	background: rgba(0,188,212,.05);
	border-left: 2px solid rgba(0,188,212,.35);
	border-radius: 0 6px 6px 0;
	display: none;
}
.tm-plan-lecture.visible { display: block; }

/* === Suggestions de pistes/outils === */
.tm-sugs { display: flex; flex-direction: column; gap: .7rem; margin-top: .9rem; }
.tm-sug {
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 9px;
	padding: .85rem 1rem;
	display: flex;
	gap: .75rem;
}
.tm-sug-lbl {
	font-size: .6rem;
	letter-spacing: .15em;
	text-transform: uppercase;
	font-weight: 700;
	padding: .2rem .5rem;
	border-radius: 4px;
	flex-shrink: 0;
	margin-top: .1rem;
}
.tm-sug-lbl.p { background: rgba(99,102,241,.2); color: #a5b4fc; }
.tm-sug-lbl.o { background: rgba(0,188,212,.15); color: #00bcd4; }
.tm-sug h4 { font-size: .88rem; color: #fff; font-weight: 700; margin: 0 0 .2rem; }
.tm-sug p { font-size: .8rem; color: rgba(255,255,255,.55); margin: 0; line-height: 1.5; }

/* === CTA === */
.tm-cta-section {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: .8rem;
	margin-top: 1.8rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 560px) { .tm-cta-section { grid-template-columns: 1fr; } }
.tm-cta {
	display: inline-block;
	padding: .85rem 1.1rem;
	border-radius: 8px;
	border: 1px solid rgba(0,188,212,.35);
	background: rgba(0,188,212,.08);
	color: #00bcd4;
	text-decoration: none;
	font-size: .82rem;
	font-weight: 600;
	text-align: center;
	transition: all .2s;
	cursor: pointer;
	width: 100%;
}
.tm-cta:hover { background: rgba(0,188,212,.15); border-color: #00bcd4; }
