/* ==========================================================================
   Thème Veigy – « la flamme et l'hexagone »
   Couleurs et polices déclarées dans theme.json ; ce fichier assemble les composants.
   Voir docs/charte-graphique.md.
   ========================================================================== */

:root {
	--veigy-encre: #16120F;
	--veigy-braise: #C93A25;
	--veigy-brique: #A8322F;
	--veigy-orange: #F47A2A;
	--veigy-rouge-flamme: #E5482B;
	--veigy-safran: #F0B23A;
	--veigy-terre: #8A5A2E;
	--veigy-gris: #62564C;
	--veigy-texte-2: #4A3F36;
	--veigy-gris-encre: #D9CFC2;
	--veigy-filet-encre: #3A302A;
	--veigy-sable: #FBF5EC;
	--veigy-sable-fonce: #F4E9DA;
	--veigy-papier: #FFFDF8;
	--veigy-filet: #EADFD0;
	--veigy-flamme: linear-gradient(160deg, #F47A2A 0%, #E5482B 100%);
	--veigy-hexagone: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%);
	--veigy-titres: var(--wp--preset--font-family--titres, "Bricolage Grotesque", sans-serif);
	--veigy-rayon: 12px;
	--veigy-traits: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 22'%3E%3Cpath d='M4 8 C 50 2, 100 4, 128 12' stroke='%23C93A25' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3Cpath d='M140 14 C 175 18, 215 18, 256 13' stroke='%23F0B23A' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* --- Base ----------------------------------------------------------------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--veigy-braise); outline-offset: 2px; border-radius: 3px; }
.has-encre-background-color :where(a, button):focus-visible { outline-color: var(--veigy-safran); }
img { height: auto; max-width: 100%; }
[hidden] { display: none !important; }
.veigy-main { min-height: 50vh; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
html { scroll-padding-top: 24px; }

/* --- Sur-titres, chapeaux, notes, liens fléchés ---------------------------- */
.is-style-veigy-surtitre, .veigy-surtitre {
	font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--veigy-terre); margin: 0 0 8px;
}
.veigy-surtitre--safran, .has-encre-background-color .is-style-veigy-surtitre { color: var(--veigy-safran); }
.veigy-chapeau, .veigy-bandeau-page .wp-block-post-excerpt { font-size: var(--wp--preset--font-size--moyen); color: #33291F; line-height: 1.55; }
p.veigy-chapeau, .veigy-bandeau-page .wp-block-post-excerpt__excerpt { max-width: 40em; }
.veigy-bandeau-page .wp-block-post-excerpt__excerpt { margin: 0; }
.veigy-note { font-size: 15px; color: var(--veigy-gris); }
.has-encre-background-color .veigy-note { color: var(--veigy-gris-encre); }
.has-encre-background-color .veigy-note a { color: var(--veigy-safran); }
.veigy-lien-fleche { margin: 0; font-weight: 700; }
.veigy-lien-fleche a, a.veigy-lien-fleche { color: var(--veigy-brique); text-decoration: none; }
.veigy-lien-fleche a::after, a.veigy-lien-fleche::after { content: " →"; }
.veigy-lien-fleche a:hover, a.veigy-lien-fleche:hover { text-decoration: underline; }

/* Les deux traits du logo, sous les grands titres. */
.is-style-veigy-traits::after, .veigy-bandeau-page .wp-block-post-title::after, .veigy-hero h1::after {
	content: ""; display: block; width: min(260px, 60%); height: 22px; margin-top: 10px;
	background: var(--veigy-traits) no-repeat left center / contain;
}

/* --- Boutons -------------------------------------------------------------- */
.veigy-bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
	border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none;
	background: var(--veigy-braise); color: #fff; box-sizing: border-box;
}
.veigy-bouton:hover, .veigy-bouton:focus-visible { background: var(--veigy-brique); color: #fff; }
.veigy-bouton--contour, .wp-block-button.is-style-veigy-contour .wp-block-button__link {
	background: transparent; color: var(--veigy-encre); border: 2px solid var(--veigy-encre);
}
.veigy-bouton--contour:hover, .wp-block-button.is-style-veigy-contour .wp-block-button__link:hover { background: var(--veigy-encre); color: var(--veigy-sable); }
.veigy-bouton--clair { background: transparent; color: var(--veigy-sable); border-color: var(--veigy-sable); }
.veigy-bouton--clair:hover { background: var(--veigy-sable); color: var(--veigy-encre); }
.wp-block-button__link { min-height: 48px; box-sizing: border-box; display: inline-flex; align-items: center; }

/* --- En-tête -------------------------------------------------------------- */
.veigy-entete { border-bottom: 1px solid var(--veigy-filet); background: var(--veigy-sable); padding-top: 14px; padding-bottom: 14px; }
.veigy-entete__ligne { gap: 24px; }
.veigy-marque { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--veigy-encre); flex: none; }
.veigy-marque img { width: 72px; height: 72px; display: block; }
.veigy-marque__texte { display: flex; flex-direction: column; line-height: 1.15; }
.veigy-marque__nom { font-family: var(--veigy-titres); font-weight: 800; font-size: 22px; }
.veigy-marque__lieu { font-size: 15px; color: var(--veigy-gris); font-weight: 500; }
.veigy-entete__nav { gap: 28px; }
.veigy-entete .wp-block-navigation a { text-decoration: none; color: var(--veigy-encre); }
.veigy-entete .wp-block-navigation a:hover, .veigy-entete .wp-block-navigation .current-menu-item > a { color: var(--veigy-brique); }
.veigy-entete .wp-block-navigation .current-menu-item > a { font-weight: 700; }
.veigy-entete__inscription { flex: none; }
.veigy-entete__nav { align-items: center; }
.veigy-entete .wp-block-navigation__responsive-container-open, .veigy-entete .wp-block-navigation__responsive-container-close {
	width: 44px; height: 44px; border: 2px solid var(--veigy-encre); border-radius: 999px; align-items: center; justify-content: center;
}
.veigy-entete .wp-block-navigation__responsive-container-open { display: none; }
.veigy-entete .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.veigy-entete .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 24px; font-family: var(--veigy-titres); font-weight: 800; }
/* Menu replié (bouton à trois barres) seulement quand les six rubriques ne tiennent plus sur une ligne. */
@media (max-width: 1080px) {
	.veigy-entete .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.veigy-entete .wp-block-navigation__responsive-container-open { display: inline-flex !important; }
}
@media (max-width: 960px) {
	.veigy-marque img { width: 56px; height: 56px; }
	.veigy-marque__nom { font-size: 18px; }
	.veigy-marque__lieu { font-size: 14px; }
	.veigy-entete__nav { gap: 10px; }
	.veigy-entete__inscription { min-height: 44px; padding: 0 16px; font-size: 15px; }
}
@media (max-width: 380px) { .veigy-marque__texte { display: none; } }

/* --- Bandeau des pages et contenus ---------------------------------------- */
.veigy-bandeau-page { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(24px, 4vw, 40px); }
.veigy-bandeau-page .wp-block-post-title { margin: 0 0 16px; }
.veigy-section { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.veigy-section--serree { padding-top: 16px; }
.veigy-bandeau-page + .veigy-section { padding-top: 8px; }
.veigy-contenu > * { max-width: 760px; }
.veigy-contenu > .alignwide, .veigy-contenu > .veigy-grille, .veigy-contenu > .wp-block-table, .veigy-contenu > .veigy-groupe,
.veigy-contenu > .veigy-sommaire, .veigy-contenu > .veigy-partenaires-page, .veigy-contenu > .veigy-agenda { max-width: 1280px; }
.veigy-contenu > .veigy-crj { max-width: 760px; } /* tableau à deux colonnes : largeur du texte */
.veigy-contenu h2 { margin-top: 1.6em; }
.veigy-contenu h2:first-child { margin-top: 0; }
.veigy-tete-section { gap: 16px; margin-bottom: 32px; }
.veigy-tete-section h2 { margin: 0; }
.veigy-lien-retour { margin-top: 32px; font-weight: 700; }
.veigy-meta { gap: 10px 16px; align-items: baseline; }
.veigy-meta .wp-block-post-terms a { color: var(--veigy-texte-2); text-decoration: none; }
.wp-block-post-featured-image img { border-radius: var(--veigy-rayon); }
.wp-block-image img, .wp-block-gallery img { border-radius: 8px; }
figcaption, .wp-element-caption { font-size: 15px; color: var(--veigy-gris); }

/* Sommaire d'ancres en haut des pages longues. */
.veigy-sommaire { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.veigy-sommaire a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
	border: 2px solid var(--veigy-encre); color: var(--veigy-encre); text-decoration: none; font-weight: 700; font-size: 16px;
}
.veigy-sommaire a:hover { background: var(--veigy-encre); color: var(--veigy-sable); }

/* --- Styles de blocs ------------------------------------------------------ */
.is-style-veigy-carte, .is-style-veigy-carte-encre {
	background: var(--veigy-papier); border: 1px solid var(--veigy-filet); border-radius: var(--veigy-rayon); padding: clamp(20px, 3vw, 32px);
}
.is-style-veigy-carte > :first-child, .is-style-veigy-carte-encre > :first-child { margin-top: 0; }
.is-style-veigy-carte > :last-child, .is-style-veigy-carte-encre > :last-child { margin-bottom: 0; }
.is-style-veigy-carte-encre { background: var(--veigy-encre); color: var(--veigy-sable); border-color: var(--veigy-encre); }
.is-style-veigy-carte-encre p { color: var(--veigy-gris-encre); }
.is-style-veigy-carte-encre a { color: var(--veigy-safran); }
.is-style-veigy-carte h3 a, .veigy-grille h3 a { color: var(--veigy-encre); text-decoration: none; }
.is-style-veigy-carte h3 a:hover { color: var(--veigy-brique); text-decoration: underline; }
/* Carte dont le titre est un lien (Compétitions, Nos tournois) : toute la carte est cliquable, avec l'appel « Voir la page » comme sur l'accueil. */
.is-style-veigy-carte:has(h3 > a) { position: relative; display: flex; flex-direction: column; transition: border-color .15s; }
.is-style-veigy-carte:has(h3 > a) h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--veigy-rayon); }
.is-style-veigy-carte:has(h3 > a) > p { margin-bottom: 0; }
.is-style-veigy-carte:has(h3 > a)::after { content: "Voir la page \2192"; margin-top: auto; padding-top: 18px; font-weight: 700; color: var(--veigy-brique); }
.is-style-veigy-carte:has(h3 > a):hover { border-color: var(--veigy-encre); }
.is-style-veigy-carte:has(h3 > a):hover h3 a { color: var(--veigy-brique); text-decoration: none; }
.is-style-veigy-carte:has(h3 > a) h3 a:focus-visible { outline: none; }
.is-style-veigy-carte:has(h3 > a:focus-visible) { outline: 3px solid var(--veigy-safran); outline-offset: 2px; }
.veigy-groupe { margin-bottom: 20px; }
.veigy-groupe h2 { margin: 6px 0 8px; font-size: 32px; }

p.is-style-veigy-etiquette, .veigy-etiquette {
	display: inline-block; margin: 0; padding: 3px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; line-height: 1.4;
	background: var(--veigy-safran); color: var(--veigy-encre);
}
.is-style-veigy-carte-encre p.is-style-veigy-etiquette { background: var(--veigy-sable); color: var(--veigy-encre); }
.veigy-etiquette--contour { background: transparent; border: 2px solid var(--veigy-encre); padding: 1px 10px; }
.veigy-etiquette--clair { background: var(--veigy-sable); }

ul.is-style-veigy-fiche { list-style: none; padding: 0; margin-left: 0; border-top: 1px solid var(--veigy-filet); }
ul.is-style-veigy-fiche li { padding: 12px 0; border-bottom: 1px solid var(--veigy-filet); }
/* Libellé en colonne fixe, valeur alignée sur sa propre colonne même quand elle passe à la ligne. */
ul.is-style-veigy-fiche li:has(> strong:first-child) { position: relative; padding-left: 10.5em; }
ul.is-style-veigy-fiche li > strong:first-child { position: absolute; left: 0; top: 12px; width: 9.5em; }
@media (max-width: 600px) {
	ul.is-style-veigy-fiche li:has(> strong:first-child) { padding-left: 0; }
	ul.is-style-veigy-fiche li > strong:first-child { position: static; display: block; width: auto; margin-bottom: 2px; }
}
ul.is-style-veigy-liens { list-style: none; padding: 0; margin-left: 0; }
ul.is-style-veigy-liens li { padding: 8px 0; border-bottom: 1px solid var(--veigy-filet); }
ul.is-style-veigy-liens a { font-weight: 700; text-decoration: none; }
ul.is-style-veigy-liens a::after { content: " →"; }
ul.is-style-veigy-liens a:hover { text-decoration: underline; }
.veigy-articles__date { color: var(--veigy-gris); font-size: 15px; white-space: nowrap; }
.veigy-articles__edition { font-weight: 700; }
ul.is-style-veigy-liens .veigy-articles__edition + a { font-weight: 400; font-size: 15px; }

.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid var(--veigy-filet); padding: 12px 14px 12px 0; text-align: left; vertical-align: top; }
.wp-block-table thead { border-bottom: 0; }
.wp-block-table th { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--veigy-gris); font-weight: 700; }
.wp-block-table.is-style-veigy-tableau { overflow-x: auto; }
.wp-block-table.is-style-veigy-tableau td:first-child { font-weight: 700; }
.wp-block-table.is-style-veigy-tableau table.has-fixed-layout { table-layout: auto; }
.is-style-veigy-carte-encre .wp-block-table th { color: var(--veigy-gris-encre); }
.is-style-veigy-carte-encre .wp-block-table th, .is-style-veigy-carte-encre .wp-block-table td { border-color: var(--veigy-filet-encre); }

.veigy-pgn { white-space: pre-wrap; font-size: 15px; background: var(--veigy-papier); border: 1px solid var(--veigy-filet); border-radius: 8px; padding: 16px; max-height: 26em; overflow: auto; }

/* --- Grilles -------------------------------------------------------------- */
.veigy-grille { gap: 20px; }

/* --- Hexagone ------------------------------------------------------------- */
.veigy-hexa { display: block; width: 56px; height: 62px; clip-path: var(--veigy-hexagone); flex: none; }
.veigy-hexa--flamme { background: var(--veigy-flamme); }
.veigy-hexa--safran { background: var(--veigy-safran); }
.veigy-hexa--encre { background: var(--veigy-encre); }

/* --- Accueil : titre et photo --------------------------------------------- */
.veigy-hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 88px); overflow: hidden; }
.veigy-hero__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.veigy-hero h1 { font-size: var(--wp--preset--font-size--enorme); margin: 0 0 8px; }
.veigy-hero .veigy-chapeau { margin: 16px 0 24px; }
.veigy-hero__photo { margin: 0; position: relative; padding: 24px 0 0; }
.veigy-hero__flamme { position: absolute; width: 62%; aspect-ratio: 380 / 430; right: -24px; top: -12px; background: var(--veigy-flamme); clip-path: var(--veigy-hexagone); }
.veigy-hero__photo img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--veigy-rayon); }
.veigy-hero__photo figcaption { position: relative; margin-top: 12px; }
@media (max-width: 900px) {
	.veigy-hero__grille { grid-template-columns: minmax(0, 1fr); }
	.veigy-hero__flamme { width: 44%; right: -10px; }
}

/* --- Accueil : prochain rendez-vous --------------------------------------- */
.veigy-bande-encre { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); }
.veigy-rdv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .veigy-rdv { grid-template-columns: minmax(0, 1fr); } }
.veigy-prochain__titre { font-family: var(--veigy-titres); font-weight: 800; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; margin: 0 0 12px; }
.veigy-prochain__quand { font-weight: 700; font-size: 21px; margin: 0 0 8px; }
.veigy-prochain__resume { color: var(--veigy-gris-encre); margin: 0 0 8px; }
.veigy-prochain__boutons { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0 0; }

/* --- Agenda --------------------------------------------------------------- */
.veigy-agenda { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--veigy-filet); }
.veigy-agenda__item { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--veigy-filet); }
.veigy-agenda__date { margin: 0; font-family: var(--veigy-titres); font-weight: 700; font-size: 20px; line-height: 1.3; }
.veigy-agenda__date span { display: block; font-family: var(--wp--preset--font-family--texte); font-weight: 500; font-size: 16px; color: var(--veigy-gris); }
.veigy-agenda__titre { margin: 0 0 4px; font-size: 24px; }
.veigy-agenda__lieu, .veigy-agenda__resume { margin: 0 0 6px; color: var(--veigy-texte-2); }
.veigy-agenda__liens { margin: 0; font-weight: 700; }
.veigy-agenda__item.is-club .veigy-agenda__date::before { content: ""; display: inline-block; width: 14px; height: 16px; margin-right: 8px; background: var(--veigy-flamme); clip-path: var(--veigy-hexagone); }
.veigy-agenda__club { color: var(--veigy-terre); font-weight: 700; font-size: 15px; }
@media (max-width: 640px) { .veigy-agenda__item { grid-template-columns: minmax(0, 1fr); } }
.veigy-agenda--compact { border-top-color: var(--veigy-filet-encre); }
.veigy-agenda--compact .veigy-agenda__item { grid-template-columns: 9em minmax(0, 1fr); padding: 16px 0; border-bottom-color: var(--veigy-filet-encre); align-items: baseline; }
.veigy-agenda--compact .veigy-agenda__date { font-size: 18px; }
.veigy-agenda--compact .veigy-agenda__titre { font-size: 17px; font-family: inherit; font-weight: 500; }
.has-encre-background-color .veigy-agenda--compact a { color: var(--veigy-sable); }
.has-encre-background-color .veigy-agenda__club { color: var(--veigy-safran); }
.has-encre-background-color .veigy-agenda__item.is-club .veigy-agenda__date::before { background: var(--veigy-safran); }
.veigy-agenda__vide { color: inherit; }
.has-encre-background-color .veigy-agenda__vide a { color: var(--veigy-safran); }

/* --- Accueil : trois entrées ---------------------------------------------- */
.veigy-portes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .veigy-portes { grid-template-columns: minmax(0, 1fr); } }
.veigy-porte {
	display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--veigy-papier); border: 1px solid var(--veigy-filet);
	border-radius: var(--veigy-rayon); color: var(--veigy-encre); text-decoration: none;
}
.veigy-porte:hover { border-color: var(--veigy-encre); }
.veigy-porte:hover .veigy-porte__titre { color: var(--veigy-brique); }
.veigy-porte__titre { font-family: var(--veigy-titres); font-weight: 800; font-size: 28px; line-height: 1.15; }
.veigy-porte__texte { color: var(--veigy-texte-2); }
.veigy-porte__lien { margin-top: auto; font-weight: 700; color: var(--veigy-brique); display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) {
	.veigy-porte { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 20px; }
	.veigy-porte .veigy-hexa { width: 40px; height: 44px; }
	.veigy-porte__titre { font-size: 22px; flex: 1 1 60%; }
	.veigy-porte__texte, .veigy-porte__lien { flex-basis: 100%; }
}

/* --- Accueil : groupes ---------------------------------------------------- */
.veigy-groupes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .veigy-groupes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .veigy-groupes { grid-template-columns: minmax(0, 1fr); } }
.veigy-groupe-carte { background: var(--veigy-papier); border: 1px solid var(--veigy-filet); border-radius: var(--veigy-rayon); padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.veigy-groupe-carte.is-sombre { background: var(--veigy-encre); border-color: var(--veigy-encre); color: var(--veigy-sable); }
.veigy-groupe-carte__titre { font-family: var(--veigy-titres); font-weight: 800; font-size: 24px; }
.veigy-groupe-carte__quand { font-size: 16px; color: var(--veigy-texte-2); }
.veigy-groupe-carte.is-sombre .veigy-groupe-carte__quand { color: var(--veigy-gris-encre); }

/* --- Accueil : un club qui reçoit ----------------------------------------- */
.veigy-chiffres__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .veigy-chiffres__grille { grid-template-columns: minmax(0, 1fr); } }
.veigy-chiffres__photo { margin: 0; }
.veigy-chiffres__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--veigy-rayon); display: block; }
.veigy-chiffres__photo figcaption { margin-top: 12px; }
.veigy-chiffres__texte h2 { margin: 0 0 28px; }
.veigy-chiffres__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin: 0; }
.veigy-chiffres__liste dt { font-family: var(--veigy-titres); font-weight: 800; font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.veigy-chiffres__liste dt.is-braise { color: var(--veigy-braise); }
.veigy-chiffres__liste dd { margin: 6px 0 0; font-size: 16px; color: var(--veigy-texte-2); }

/* --- Actualités ----------------------------------------------------------- */
.veigy-actus .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 1000px) { .veigy-actus .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .veigy-actus .wp-block-post-template.is-layout-grid { grid-template-columns: minmax(0, 1fr); } }
.veigy-actu { display: flex; flex-direction: column; }
.veigy-actu__image { margin: 0 0 14px; }
.veigy-actu__image img { border-radius: var(--veigy-rayon); border-bottom: 5px solid var(--veigy-braise); box-sizing: border-box; }
.veigy-actus li:nth-child(3n+2) .veigy-actu__image img { border-bottom-color: var(--veigy-safran); }
.veigy-actus li:nth-child(3n) .veigy-actu__image img { border-bottom-color: var(--veigy-encre); }
.veigy-actu__image--vide a { display: block; aspect-ratio: 4 / 3; border-radius: var(--veigy-rayon); background: var(--veigy-flamme); position: relative; overflow: hidden; }
.veigy-actu__image--vide span { position: absolute; inset: 0; margin: auto; width: 34%; aspect-ratio: 380 / 430; background: url("../images/logo-blanc.png") center / contain no-repeat; opacity: .9; }
.veigy-actus li:nth-child(3n+2) .veigy-actu__image--vide a { background: var(--veigy-safran); }
.veigy-actus li:nth-child(3n) .veigy-actu__image--vide a { background: var(--veigy-encre); }
.veigy-rubriques { margin-bottom: 36px; }
.veigy-rubriques a[aria-current="page"] { background: var(--veigy-encre); color: var(--veigy-sable); }
.veigy-actu .wp-block-post-title { font-size: 24px; line-height: 1.2; margin: 8px 0; }
.veigy-actu .wp-block-post-title a { color: var(--veigy-encre); text-decoration: none; }
.veigy-actu .wp-block-post-title a:hover { color: var(--veigy-brique); text-decoration: underline; }
.veigy-actu .wp-block-post-excerpt { color: var(--veigy-texte-2); font-size: 17px; }
.veigy-actu .wp-block-post-excerpt__more-text { display: none; }
.wp-block-query-pagination { margin-top: 40px; }

/* --- Partenaires ---------------------------------------------------------- */
.veigy-section--partenaires { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); border-top: 1px solid var(--veigy-filet); }
.veigy-partenaires__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.veigy-partenaires__tete h2 { margin: 0; }
/* Logos posés sur le fond clair, sans cadre : chaque logo a sa hauteur (data/partenaires.json) pour un poids visuel égal. */
.veigy-partenaires__logos, .veigy-soutiens__logos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px 44px; }
.veigy-partenaires__logos li, .veigy-soutiens__logos li { display: flex; align-items: center; }
.veigy-partenaires__logos a, .veigy-soutiens__logos a { display: flex; align-items: center; }
.veigy-partenaires__logos img, .veigy-soutiens__logos img, .veigy-partenaire__logo img { width: auto; max-width: 260px; object-fit: contain; mix-blend-mode: multiply; }
.veigy-partenaires__logos a:hover img, .veigy-soutiens__logos a:hover img { opacity: .8; }
.veigy-partenaires-page { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.veigy-partenaire { background: var(--veigy-papier); border: 1px solid var(--veigy-filet); border-radius: var(--veigy-rayon); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.veigy-partenaire__logo { height: 120px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 8px; }
.veigy-partenaire h3 { margin: 0; font-size: 22px; }
.veigy-partenaire p { margin: 0; color: var(--veigy-texte-2); }

/* Bande « Avec le soutien de » au-dessus du pied de page (absente de l'accueil, qui a son grand bandeau). */
.veigy-soutiens { padding-top: 36px; padding-bottom: 40px; border-top: 1px solid var(--veigy-filet); }
.veigy-soutiens__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.veigy-soutiens__titre { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--veigy-terre); flex: none; }
.veigy-soutiens__logos { justify-content: space-between; gap: 20px 28px; flex: 1 1 520px; }
.veigy-soutiens__logos img { transform-origin: left center; }
.veigy-soutiens__titre a { color: inherit; text-decoration: none; }
.veigy-soutiens__titre a::after { content: " →"; }
.veigy-soutiens__titre a:hover { color: var(--veigy-brique); }
.home .veigy-soutiens { display: none; }

/* --- Pied de page --------------------------------------------------------- */
.veigy-pied { padding-bottom: 32px; font-size: 16px; }
.veigy-pied a { color: var(--veigy-sable); text-decoration: none; }
.veigy-pied a:hover { color: var(--veigy-safran); text-decoration: underline; }
.veigy-damier {
	height: 12px; margin: 0 calc(-1 * var(--wp--style--root--padding-left, 24px));
	background: repeating-linear-gradient(90deg, var(--veigy-sable) 0 12px, var(--veigy-encre) 12px 24px);
}
.veigy-pied__colonnes { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 40px; padding: 56px 0 32px; }
@media (max-width: 960px) { .veigy-pied__colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .veigy-pied__colonnes { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.veigy-pied__marque img { width: 72px; height: 72px; }
.veigy-pied__marque p, .veigy-pied p { color: var(--veigy-gris-encre); }
.veigy-pied__titre { font-weight: 700; color: var(--veigy-safran) !important; margin: 0 0 10px; }
.veigy-pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.veigy-pied__bas { border-top: 1px solid var(--veigy-filet-encre); padding-top: 20px; margin: 0; font-size: 14px; }

/* --- Recherche et 404 ----------------------------------------------------- */
.wp-block-search__input { min-height: 48px; border-radius: 999px; border: 2px solid var(--veigy-encre); padding: 0 18px; background: #fff; }
.wp-block-search__button { border-radius: 999px; background: var(--veigy-braise); color: #fff; border: 0; padding: 0 24px; font-weight: 700; }

/* Circuit Rapide Jeunes : étapes passées grisées */
.veigy-crj .veigy-crj__passee td { color: var(--wp--preset--color--gris); }
.veigy-crj .veigy-crj__passee a { color: inherit; }
.veigy-crj__mention { font-size: .85em; }
.veigy-crj__source { font-size: .9em; color: var(--wp--preset--color--gris); }
