/* GbeCosmoLingua — Phase 4 front-end */

/* Carte interactive */
.gbe-map-wrapper {
	margin: 2rem 0;
}

.gbe-map {
	height: 520px;
	width: 100%;
	border-radius: 0.75rem;
	border: 2px solid #1f5b2a;
	box-shadow: 0 4px 20px rgba(26, 60, 52, 0.15);
	z-index: 1;
}

.gbe-map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1rem;
}

.gbe-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	color: #23150c;
}

.gbe-legend-item::before {
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.gbe-legend-item--langue::before { background: #1f5b2a; }
.gbe-legend-item--patrimoine::before { background: #8a4a12; }
.gbe-legend-item--migration::before { background: #b87913; }

.gbe-map-marker span {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.gbe-map-note {
	margin-top: 0.75rem;
	font-size: 0.9rem;
	color: #666;
	font-style: italic;
}

/* Filtres */
.gbe-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
	margin-bottom: 2rem;
	padding: 1.25rem;
	background: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 2px 8px rgba(26, 60, 52, 0.06);
}

.gbe-filters label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1f5b2a;
	margin-bottom: 0.25rem;
}

.gbe-filters input,
.gbe-filters select {
	padding: 0.5rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 0.35rem;
	min-width: 160px;
}

.gbe-btn {
	display: inline-block;
	padding: 0.55rem 1.25rem;
	background: #1f5b2a;
	color: #fff !important;
	border: none;
	border-radius: 0.35rem;
	cursor: pointer;
	text-decoration: none !important;
	font-size: 0.95rem;
	transition: background 0.2s;
}

.gbe-btn:hover {
	background: #8a4a12;
	color: #fff !important;
}

.gbe-btn--small {
	padding: 0.35rem 0.85rem;
	font-size: 0.85rem;
}

/* Grille de cartes */
.gbe-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.gbe-card {
	background: #fff;
	border-radius: 0.75rem;
	padding: 1.5rem;
	border-left: 4px solid #b87913;
	box-shadow: 0 2px 10px rgba(26, 60, 52, 0.08);
}

.gbe-card--proverbe {
	border-left-color: #1f5b2a;
}

.gbe-card--xotutu {
	border-left-color: #8a4a12;
}

.gbe-card__quote {
	font-size: 1.15rem;
	font-style: italic;
	color: #1f5b2a;
	margin: 0.75rem 0;
	border: none;
	padding: 0;
}

.gbe-card__excerpt {
	color: #555;
	font-size: 0.95rem;
}

.gbe-card__link {
	display: inline-block;
	margin-top: 0.75rem;
	font-weight: 600;
	color: #8a4a12 !important;
	text-decoration: none !important;
}

.gbe-card__title {
	margin: 0.5rem 0;
	font-size: 1.1rem;
}

.gbe-card__title a {
	color: #1f5b2a;
	text-decoration: none;
}

.gbe-card__title a:hover {
	color: #8a4a12;
}

.gbe-tag {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	background: #f7f1df;
	color: #1f5b2a;
	border-radius: 1rem;
	font-size: 0.8rem;
	margin-right: 0.35rem;
	margin-bottom: 0.35rem;
}

.gbe-badge {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.25rem 0.6rem;
	background: #1f5b2a;
	color: #fff;
	border-radius: 0.25rem;
	font-size: 0.8rem;
}

.gbe-empty {
	padding: 2rem;
	text-align: center;
	color: #888;
	background: #fff;
	border-radius: 0.5rem;
}

/* Détail proverbe */
.gbe-proverbe-detail,
.gbe-xotutu-detail {
	margin-top: 2rem;
	padding: 2rem;
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 2px 12px rgba(26, 60, 52, 0.08);
}

.gbe-proverbe-detail--appended,
.gbe-xotutu-detail--appended {
	border-top: 3px solid #b87913;
}

.gbe-field-block {
	margin-bottom: 1.5rem;
}

.gbe-field-block h3,
.gbe-field-block h4 {
	color: #1f5b2a;
	margin-bottom: 0.5rem;
	font-size: 1rem;
}

.gbe-analyses {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #eee;
}

.gbe-media-block {
	margin-bottom: 1.5rem;
}

.gbe-media-block audio,
.gbe-media-block video {
	width: 100%;
	max-width: 100%;
}

/* Bibliothèque */
.gbe-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 2px solid #e0e0e0;
}

.gbe-tab {
	padding: 0.75rem 1.25rem;
	text-decoration: none !important;
	color: #555 !important;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	font-weight: 500;
}

.gbe-tab.is-active,
.gbe-tab:hover {
	color: #1f5b2a !important;
	border-bottom-color: #8a4a12;
}

.gbe-ressources-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gbe-ressource-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: #fff;
	border-radius: 0.5rem;
	margin-bottom: 0.75rem;
	box-shadow: 0 1px 6px rgba(26, 60, 52, 0.06);
}

.gbe-ressource-auteur {
	display: block;
	font-size: 0.85rem;
	color: #888;
	margin-top: 0.25rem;
}

/* Archives CPT */
.gbe-archive-header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid #b87913;
}

.gbe-archive-header h1 {
	color: #1f5b2a;
}

/* Formulaires */
.gbe-form-wrapper {
	max-width: 640px;
	margin: 2rem 0;
}

.gbe-form-intro {
	font-size: 1.05rem;
	color: #444;
	margin-bottom: 1.5rem;
}

.gbe-form {
	background: #fff;
	padding: 2rem;
	border-radius: 0.75rem;
	box-shadow: 0 2px 12px rgba(26, 60, 52, 0.08);
}

.gbe-form-field {
	margin-bottom: 1.25rem;
}

.gbe-form-field label {
	display: block;
	font-weight: 600;
	color: #1f5b2a;
	margin-bottom: 0.35rem;
}

.gbe-form-field input,
.gbe-form-field select,
.gbe-form-field textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 0.35rem;
	font-size: 1rem;
}

.gbe-form-field textarea {
	resize: vertical;
}

.gbe-required {
	color: #8a4a12;
}

.gbe-form-consent {
	font-size: 0.9rem;
	color: #555;
}

.gbe-form-consent input {
	width: auto;
	margin-right: 0.35rem;
}

.gbe-btn--submit,
.gbe-btn--donate {
	width: 100%;
	text-align: center;
	margin-top: 0.5rem;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}

.gbe-form-notice {
	padding: 1.5rem 2rem;
	border-radius: 0.5rem;
	margin: 2rem 0;
}

.gbe-form-notice--success {
	background: #e8f5f0;
	border-left: 4px solid #1f5b2a;
	color: #1f5b2a;
}

.gbe-donation-success .gbe-btn--donate {
	width: auto;
	margin-top: 1rem;
}

.gbe-honeypot {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.gbe-field--montant-libre {
	display: none;
}

.gbe-field--montant-libre.is-visible {
	display: block;
}

/* Sélecteur de langue */
.gbe-header-nav-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.gbe-lang-switcher {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.gbe-lang-switcher--dropdown {
	display: inline-block;
	position: relative;
	vertical-align: middle;
}

.gbe-lang-switcher__wrap {
	position: relative;
}

.gbe-lang-switcher__menu {
	margin: 0;
	padding: 0;
	list-style: none;
	display: none !important;
}

.gbe-lang-switcher.is-open .gbe-lang-switcher__menu {
	display: block !important;
}

.gbe-lang-switcher:not(.gbe-lang-switcher--dropdown) > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.gbe-lang-switcher li {
	margin: 0;
}

.gbe-lang-switcher a {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: 0.25rem;
	text-decoration: none !important;
	font-size: 0.9rem;
	font-weight: 500;
	color: #1f5b2a !important;
	background: #f7f1df;
	transition: background 0.2s;
}

.gbe-lang-switcher a:hover,
.gbe-lang-switcher .current-lang a {
	background: #1f5b2a;
	color: #fff !important;
}

@media (max-width: 600px) {
	.gbe-map {
		height: 360px;
	}

	.gbe-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.gbe-ressource-item {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Accueil dynamique */
.gbe-home-block {
	margin-bottom: 3rem;
}

.gbe-home-block__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #b87913;
}

.gbe-home-block__title {
	margin: 0;
	color: #1f5b2a;
	font-size: 1.5rem;
}

.gbe-home-block__more {
	font-weight: 600;
	color: #8a4a12 !important;
	text-decoration: none !important;
	font-size: 0.95rem;
}

.gbe-home-block__more:hover {
	color: #1f5b2a !important;
}

.gbe-actualites-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.gbe-card--actualite {
	border-left-color: #b87913;
	padding: 0;
	overflow: hidden;
}

.gbe-card--actualite .gbe-card__thumb {
	display: block;
	line-height: 0;
}

.gbe-card--actualite .gbe-card__thumb img {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.gbe-card--actualite .gbe-card__date,
.gbe-card--actualite .gbe-card__title,
.gbe-card--actualite .gbe-card__excerpt,
.gbe-card--actualite .gbe-card__link {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.gbe-card--actualite .gbe-card__date {
	display: block;
	padding-top: 1.25rem;
	font-size: 0.85rem;
	color: #888;
}

.gbe-card--actualite .gbe-card__title {
	padding-top: 0.5rem;
}

.gbe-card--actualite .gbe-card__link {
	padding-bottom: 1.5rem;
}

.gbe-agenda-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gbe-agenda-item {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	padding: 1.25rem 1.5rem;
	background: #fff;
	border-radius: 0.75rem;
	margin-bottom: 0.75rem;
	box-shadow: 0 2px 10px rgba(26, 60, 52, 0.08);
}

.gbe-agenda-item__date {
	flex-shrink: 0;
	width: 64px;
	text-align: center;
	background: #1f5b2a;
	color: #fff;
	border-radius: 0.5rem;
	padding: 0.5rem 0.35rem;
	line-height: 1.1;
}

.gbe-agenda-item__day {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
}

.gbe-agenda-item__month {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.gbe-agenda-item__title {
	margin: 0.35rem 0 0.25rem;
	font-size: 1.05rem;
}

.gbe-agenda-item__title a {
	color: #1f5b2a;
	text-decoration: none;
}

.gbe-agenda-item__title a:hover {
	color: #8a4a12;
}

.gbe-agenda-item__lieu {
	margin: 0;
	font-size: 0.9rem;
	color: #666;
}

.gbe-tag--event {
	background: #e8f5f0;
}

.gbe-partenaires-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1.25rem;
}

.gbe-partenaire-card {
	background: #fff;
	border-radius: 0.75rem;
	padding: 1.25rem;
	text-align: center;
	box-shadow: 0 2px 10px rgba(26, 60, 52, 0.08);
	transition: transform 0.2s, box-shadow 0.2s;
}

.gbe-partenaire-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(26, 60, 52, 0.12);
}

.gbe-partenaire-card__link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	text-decoration: none !important;
}

.gbe-partenaire-card__logo {
	max-height: 64px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.gbe-partenaire-card__name {
	font-weight: 600;
	color: #1f5b2a;
	font-size: 0.95rem;
	line-height: 1.3;
}

.gbe-partenaire-card__type {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.75rem;
	color: #888;
}

.gbe-evenement-detail,
.gbe-partenaire-detail {
	margin-top: 2rem;
	padding: 1.5rem 2rem;
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 2px 12px rgba(26, 60, 52, 0.08);
	border-top: 3px solid #b87913;
}

.gbe-evenement-detail__date,
.gbe-evenement-detail__lieu {
	margin: 0.5rem 0;
}

.gbe-partenaires-directory .gbe-home-block__header {
	border-bottom-color: #1f5b2a;
}

.gbe-agenda-list--full {
	margin-top: 0;
}

@media (max-width: 600px) {
	.gbe-agenda-item {
		flex-direction: column;
	}

	.gbe-partenaires-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
