/* VALR Breves : styles charges seulement quand un bloc de breves est affiche.
   Les codes graphiques sont ceux du theme enfant : cartes de tdf-listing-cards.css,
   pages de single-post.css (variables --ink, --accent, --border... disponibles sous #valrpost). */

/* Une couleur et une icone par format. */
.valr-breves-f--le-savais-tu,
.valr-breves-etiquette--le-savais-tu,
.valr-breves-carte,
.valr-breves-reponse { --vb-c1: #4f46e5; --vb-c2: #818cf8; --vb-c: #4f46e5; --vb-doux: #eef0ff; }
.valr-breves-f--ce-jour-la,
.valr-breves-etiquette--ce-jour-la { --vb-c1: #1e1c3b; --vb-c2: #4a4390; --vb-c: #1e1c3b; --vb-doux: #ecebf5; }
.valr-breves-f--d-ou-vient-ce-nom,
.valr-breves-etiquette--d-ou-vient-ce-nom { --vb-c1: #f59e0b; --vb-c2: #fbbf24; --vb-c: #b45309; --vb-doux: #fff8e7; }
.valr-breves-f--question-pratique,
.valr-breves-etiquette--question-pratique { --vb-c1: #0284c7; --vb-c2: #38bdf8; --vb-c: #0284c7; --vb-doux: #e8f6fe; }
.valr-breves-f--a-faire-ce-week-end,
.valr-breves-etiquette--a-faire-ce-week-end { --vb-c1: #da667b; --vb-c2: #ec8c9c; --vb-c: #c9506a; --vb-doux: #fdf0f2; }
.valr-breves-f--vrai-ou-faux,
.valr-breves-etiquette--vrai-ou-faux { --vb-c1: #059669; --vb-c2: #34d399; --vb-c: #059669; --vb-doux: #ecfdf5; }
.valr-breves-f--chiffre-du-jour,
.valr-breves-etiquette--chiffre-du-jour { --vb-c1: #ea580c; --vb-c2: #fb923c; --vb-c: #ea580c; --vb-doux: #fff1e8; }

/* ── Bloc et grille ── */
.valr-breves-bloc { margin: 0; }
/* Selecteurs renforces : le kit Elementor fixe la taille des h2 et h3. */
.valr-breves-bloc h2.valr-breves-bloc-titre,
.valr-breves-cejourla h2.valr-breves-bloc-titre { margin: 0 0 .7em; font-size: clamp(32px, 3.6vw, 52px); font-weight: 700; line-height: 1.15; color: #1e1c3b; }

/* 3 colonnes sur ordinateur, 2 sur tablette, 1 sur mobile. */
.valr-breves-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1024px) { .valr-breves-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .valr-breves-grille { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* ── Carte (memes codes que .tdf-listing-card) ── */
.valr-breves-carte {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	transition: transform .22s cubic-bezier(.22, .61, .36, 1), box-shadow .22s, border-color .22s;
	font-family: 'Raleway', system-ui, -apple-system, sans-serif;
	text-align: left;
}
.valr-breves-carte:hover,
.valr-breves-carte:focus-within { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, .08); border-color: #d1d5db; }
@media (prefers-reduced-motion: reduce) { .valr-breves-carte { transition: none; } .valr-breves-carte:hover, .valr-breves-carte:focus-within { transform: none; } }

.valr-breves-carte-media {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 76px;
	padding: 14px 16px;
	background: linear-gradient(135deg, var(--vb-c1), var(--vb-c2));
	color: #fff;
}
.valr-breves-carte-puce {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: rgba(255, 255, 255, .2);
	border: 1px solid rgba(255, 255, 255, .34);
}
.valr-breves-carte-puce svg { width: 22px; height: 22px; }
.valr-breves-carte-format { font-family: 'Poppins', system-ui, sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
/* Avec une image a la une : l'image remplace le bandeau, le format passe en pastille. */
.valr-breves-carte-media--image { height: 200px; min-height: 0; padding: 0; background: #f1f5f9; }
.valr-breves-carte-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.valr-breves-carte-media--image .valr-breves-carte-puce { display: none; }
.valr-breves-carte-media--image .valr-breves-carte-format { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--vb-c1), var(--vb-c2)); font-size: 10.5px; }

.valr-breves-carte-corps { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; flex: 1 1 auto; }
.valr-breves-carte .valr-breves-carte-titre { margin: 0; padding: 0; font-family: 'Poppins', system-ui, sans-serif; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: #0f172a; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.valr-breves-carte .valr-breves-carte-lien { color: inherit; text-decoration: none; }
.valr-breves-carte-lien::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.valr-breves-carte-lien:focus-visible { outline: none; }
.valr-breves-carte:focus-within { outline: 2px solid var(--vb-c); outline-offset: 2px; }
.valr-breves-carte .valr-breves-carte-reponse { margin: 0; padding: 0; font-size: 13.5px; line-height: 1.5; color: #475569; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.valr-breves-carte-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px dashed #e5e7eb; }
.valr-breves-carte-plus { font-family: 'Poppins', system-ui, sans-serif; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; color: #0f172a; }
.valr-breves-carte-fleche { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--vb-doux); color: var(--vb-c); transition: transform .2s, background .2s, color .2s; }
.valr-breves-carte-fleche svg { width: 13px; height: 13px; }
.valr-breves-carte:hover .valr-breves-carte-fleche { transform: translateX(2px); background: var(--vb-c); color: #fff; }

/* ── Pastilles ── */
.valr-breves-etiquette { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--vb-doux, #eef0ff); color: var(--vb-c, #4f46e5); font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1.5; }
.valr-breves-passee { display: inline-flex; align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ── Affichage « liste » ── */
.valr-breves-liste { list-style: none; margin: 0; padding: 0; }
.valr-breves-ligne { padding: 10px 0; border-bottom: 1px solid #ececee; }
.valr-breves-ligne-lien { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; color: #14131f; text-decoration: none; }
.valr-breves-ligne-lien:hover { color: var(--tdf-primary, #da667b); }
.valr-breves-ligne-reponse { display: block; margin-top: 3px; color: #74738a; font-size: .92em; }

/* ── Ce jour-la ── */
.valr-breves-cejourla[hidden] { display: none !important; }
.valr-breves-cejourla { margin: 0 0 32px; }
.valr-breves-cejourla-item { padding: 18px 20px; background: #fff; border: 1px solid #e5e7eb; border-left: 4px solid #1e1c3b; border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); font-family: 'Raleway', system-ui, sans-serif; color: #475569; }
.valr-breves-cejourla-item + .valr-breves-cejourla-item { margin-top: 12px; }
.valr-breves-cejourla-date { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: #1e1c3b; }
.valr-breves-cejourla-annees { color: #74738a; font-weight: 500; }
.valr-breves-cejourla .valr-breves-cejourla-titre { margin: 0 0 4px; font-family: 'Poppins', system-ui, sans-serif; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.valr-breves-cejourla-titre a { color: #0f172a; text-decoration: none; }
.valr-breves-cejourla-titre a:hover { color: var(--tdf-primary, #da667b); }
.valr-breves-cejourla-reponse { margin: 0; font-size: 14px; line-height: 1.5; }

/* ── Bloc « reponse » de la page d'une breve ── */
.valr-breves-reponse { display: flex; align-items: flex-start; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--border, #ececee); border-radius: var(--r-lg, 16px); box-shadow: var(--shadow-xs, 0 1px 2px rgba(20, 19, 31, .04)); }
.valr-breves-reponse-puce { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--vb-c1), var(--vb-c2)); color: #fff; }
.valr-breves-reponse-puce svg { width: 24px; height: 24px; }
.valr-breves-reponse-corps { min-width: 0; }
.valr-breves-reponse .valr-breves-reponse-texte { margin: 0; font-family: 'Poppins', 'Raleway', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; color: var(--ink, #14131f); }
.valr-breves-reponse .valr-breves-chiffre { margin: 0 0 6px; line-height: 1.05; }
.valr-breves-chiffre-valeur { font-family: 'Poppins', sans-serif; font-size: 46px; font-weight: 700; letter-spacing: -.03em; color: var(--vb-c); }
.valr-breves-chiffre-unite { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 600; color: var(--ink, #14131f); }
.valr-breves-reponse .valr-breves-date-evenement { margin: 0 0 6px; font-size: 13.5px; font-weight: 700; color: var(--vb-c); }
.valr-breves-reponse .valr-breves-verdict { display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.valr-breves-verdict--vrai { background: #16a34a; }
.valr-breves-verdict--faux { background: #dc2626; }
@media (min-width: 1024px) { .valr-breves-reponse { padding: 22px 24px; gap: 18px; } .valr-breves-reponse .valr-breves-reponse-texte { font-size: 18px; } }

/* ── Page d'une breve et archives, sous #valrpost (single-post.css) ── */
#valrpost .tag.accent.valr-breves-tag { background: var(--vb-doux); color: var(--vb-c); }
#valrpost .valr-breves-tag svg { width: 12px; height: 12px; }
#valrpost .valr-breves-suite { display: flex; flex-direction: column; gap: 14px; }
#valrpost .valr-breves-cible,
.valr-breves-cible { margin: 0; }
#valrpost a.valr-breves-bouton,
a.valr-breves-bouton { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--r, 12px); background: var(--accent, #da667b); color: #fff; font-family: 'Poppins', sans-serif; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; box-shadow: 0 6px 18px rgba(249, 25, 66, .25); transition: background .15s, transform .12s; }
#valrpost a.valr-breves-bouton:hover,
a.valr-breves-bouton:hover,
a.valr-breves-bouton:focus-visible { background: var(--accent-hover, #c9506a); color: #fff; transform: translateY(-1px); }
#valrpost .valr-breves-source,
.valr-breves-source { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-muted, #74738a); }
#valrpost .valr-breves-source a { color: var(--ink-soft, #3a3850); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
#valrpost .valr-breves-bandeau,
.valr-breves-bandeau { margin: 0 0 18px; padding: 12px 16px; border: 1px solid #fde68a; border-radius: var(--r, 12px); background: #fffbeb; color: #78350f; font-size: 14px; }
#valrpost .valr-breves-bandeau a { color: inherit; font-weight: 600; text-decoration: underline; }
#valrpost .valr-breves-archive-description { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
#valrpost .valr-breves-vide { color: var(--ink-muted); }
#valrpost .navigation.pagination { margin-top: 22px; }
#valrpost .navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
#valrpost .navigation.pagination .page-numbers { display: inline-flex; align-items: center; padding: 8px 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-xs); }
#valrpost .navigation.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
#valrpost .navigation.pagination a.page-numbers:hover { color: var(--accent); }

/* Fil d'Ariane du code court [valr_breve_champ champ="fil"] (hors gabarit). */
.valr-breves-fil ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; font-size: 12px; color: #74738a; }
.valr-breves-fil li + li::before { content: "·"; margin-right: 6px; color: #adaabf; }
