/*
Theme Name: Divi Ravières
Theme URI: https://www.ravieres.fr
Description: Thème enfant Divi pour le site de la commune de Ravières — types de contenu (agenda, annuaire) et affichage des documents déposés dans les dossiers FileBird.
Author: Mairie de Ravières
Template: Divi
Version: 2.5.0
*/

/* Palette issue du logo (vagues vertes et bleues du canal, touche dorée) */
:root {
	--rav-vert: #2f8f2b;
	--rav-vert-vif: #4cc43f;
	--rav-bleu: #1f7ea6;
	--rav-bleu-clair: #a9dcef;
	--rav-orange: #e59a2d;
	--rav-encre: #22303a;
	--rav-fond: #f5f7f6;
}

/* ---- Adaptabilité des rangées Divi 5 -------------------------------------
 *
 * En Divi 5 les rangées sont des conteneurs flex en `flex-wrap: nowrap`, et
 * l'habillage n'est activé qu'en le réglant à la main, rangée par rangée, dans
 * le constructeur. Sans ça les colonnes ne passent jamais à la ligne : elles se
 * compriment, puis débordent hors de l'écran. Sur l'accueil, la quatrième carte
 * d'accès rapide commençait à 436 px sur un écran de 375 px — invisible.
 *
 * Divi pose pourtant déjà les bonnes largeurs (`et_flex_column_24_24_phone`
 * = pleine largeur sur téléphone) : il suffit d'autoriser le retour à la ligne
 * pour que ses propres classes fassent leur travail. On ne touche donc ni aux
 * largeurs ni au contenu des pages.
 */
@media (max-width: 980px) {
	.et_pb_row.et_flex_row,
	.et_pb_row_inner.et_flex_row {
		flex-wrap: wrap !important;
	}
}

/* Sur téléphone, une colonne par ligne, quelles que soient les largeurs
   réglées pour le bureau. */
@media (max-width: 767px) {
	.et_pb_row.et_flex_row > .et_pb_column.et_flex_column,
	.et_pb_row_inner.et_flex_row > .et_pb_column.et_flex_column {
		flex: 1 1 100% !important;
		max-width: 100% !important;
	}
	/* Les colonnes servant d'espaceur (souvent en face d'une carte) n'ont
	   rien à afficher : elles ajouteraient un blanc inutile une fois empilées. */
	.et_pb_row.et_flex_row > .et_pb_column:empty {
		display: none !important;
	}
}

/* ---- Articles, événements et fiches (contenus uniques) -------------------
 * Mise en page en pleine largeur, mais texte ramené à une largeur de lecture
 * confortable : une ligne de 1080 px est pénible à suivre.
 */
.rav-article #main-content .container::before { display: none; }   /* trait de séparation de la colonne latérale */
.rav-article #sidebar { display: none !important; }
.rav-article #left-area {
	width: 100% !important;
	padding-right: 0 !important;
	max-width: 780px;
	margin: 0 auto;
	float: none !important;
}
.rav-article .entry-title {
	font-size: 32px;
	line-height: 1.25;
	color: var(--rav-encre);
	padding-bottom: 12px;
}
.rav-article .et_post_meta_wrapper {
	margin-bottom: 8px;
}
.rav-article .post-meta {
	font-size: 13.5px;
	color: #6b7a76;
}
.rav-article .entry-content {
	font-size: 16px;
	line-height: 1.7;
}
.rav-article .entry-content p { padding-bottom: 1.1em; }
.rav-article .entry-content h2 { font-size: 24px; padding-bottom: 10px; }
.rav-article .entry-content h3 { font-size: 19px; padding-bottom: 8px; }
.rav-article .entry-content img,
.rav-article .et_post_meta_wrapper img {
	border-radius: 10px;
	height: auto;
	max-width: 100%;
}
.rav-article .et_pb_post .entry-featured-image-url { margin-bottom: 24px; }
/* Divi laisse la place du fil de commentaires même vide */
.rav-article #comment-wrap,
.rav-article .comment-respond,
.rav-article #comments { display: none !important; }

@media (max-width: 767px) {
	.rav-article .entry-title { font-size: 25px; }
	.rav-article #left-area { padding-left: 0 !important; }
}

/* Encadré des informations pratiques d'un événement */
.rav-evt-details {
	background: var(--rav-fond);
	border-left: 4px solid var(--rav-vert);
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 28px;
}
.rav-evt-details dl {
	margin: 0;
	display: grid;
	gap: 10px 18px;
}
.rav-evt-details dl > div {
	display: flex;
	gap: 14px;
	align-items: baseline;
}
.rav-evt-details dt {
	flex: 0 0 92px;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #6b7a76;
	margin: 0;
}
.rav-evt-details dd {
	margin: 0;
	font-size: 15.5px;
	color: var(--rav-encre);
}
.rav-evt-retour {
	margin: 16px 0 0 !important;
	padding-bottom: 0 !important;
	font-size: 14px;
}
.rav-evt-retour a { color: var(--rav-bleu); font-weight: 600; }
@media (max-width: 560px) {
	.rav-evt-details dl > div { flex-direction: column; gap: 2px; }
	.rav-evt-details dt { flex: none; }
}

/* ---- Accessibilité -------------------------------------------------------
 * Lien d'évitement : invisible tant qu'on ne l'atteint pas au clavier.
 * On ne l'enlève pas du flux avec display:none, sinon il ne serait plus
 * atteignable par la touche Tab.
 */
.rav-lien-evitement {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: var(--rav-encre);
	color: #fff !important;
	padding: 12px 20px;
	border-radius: 0 0 6px 0;
	font-weight: 600;
	text-decoration: none;
}
.rav-lien-evitement:focus {
	left: 0;
	outline: 3px solid var(--rav-vert-vif);
	outline-offset: 2px;
}

/* Divi masque le focus sur plusieurs éléments : on le rétablit partout.
   :focus-visible ne s'affiche qu'à la navigation clavier, pas à la souris. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--rav-bleu) !important;
	outline-offset: 2px;
	border-radius: 2px;
}
/* Le conteneur ciblé par le lien d'évitement ne doit pas s'encadrer */
#main-content:focus {
	outline: none;
}

/* ---- Diaporama du héro (accueil) ----------------------------------------
 * Les photos se relaient en fondu avec un léger travelling latéral.
 * Tout est en CSS : chaque vue joue la même animation, décalée par un délai
 * négatif, si bien qu'une seule est visible à la fois.
 */
.rav-hero-anime {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
/* Divi impose `position: relative` aux enfants directs d'une section : sans
   surcharge, le calque resterait dans le flux, haut de zéro pixel, et les
   photos qu'il contient n'auraient aucune surface où s'afficher. */
.rav-hero-anime > .rav-hero-diapo {
	position: absolute !important;
	inset: 0 !important;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
.rav-hero-vue {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	/* Le zoom léger laisse de la marge au glissement : sans lui, on verrait
	   apparaître un bord vide sur le côté pendant le travelling. */
	transform: scale(1.09) translateX(2.5%);
	animation-name: rav-hero-defile;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	will-change: opacity, transform;
}
@keyframes rav-hero-defile {
	0%   { opacity: 0; transform: scale(1.09) translateX(2.5%); }
	3%   { opacity: 1; }
	14%  { opacity: 1; }
	18%  { opacity: 0; transform: scale(1.09) translateX(-2.5%); }
	100% { opacity: 0; transform: scale(1.09) translateX(-2.5%); }
}

/* Le contenu de la section doit rester au-dessus du calque */
.rav-hero-anime > .et_pb_row,
.rav-hero-anime > .et_pb_row_inner {
	position: relative;
	z-index: 2;
}

/*
 * Mouvement réduit : on fige sur la première photo. Une animation de fond en
 * boucle peut gêner, voire provoquer un malaise, chez les personnes sensibles
 * au mouvement — le réglage système doit être respecté.
 */
@media (prefers-reduced-motion: reduce) {
	.rav-hero-vue {
		animation: none;
		transform: none;
		opacity: 0;
	}
	.rav-hero-vue:first-child {
		opacity: 1;
	}
}

/* ---- Cartes d'accès rapide (colonnes .rav-carte) -------------------------
 * Même traitement que les cartes « démarches » : pastille ronde autour de
 * l'icône, qui s'inverse au survol, et léger soulèvement de la carte.
 */
.et_pb_column.rav-carte {
	background: #fff;
	border: 1px solid #e3e8e6;
	border-radius: 12px;
	padding: 26px 18px 22px;
	cursor: pointer;
	text-align: center;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* Divi pose un scale(1.05) au survol depuis les réglages du module ;
   on le remplace par le même soulèvement que les cartes démarches. */
.et_pb_column.rav-carte:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 10px 26px rgba(34, 48, 58, .13);
	border-color: var(--rav-bleu-clair);
}

/* Pastille ronde autour de l'icône du blurb.
   Plus généreuse que celle des cartes « démarches » : ces quatre accès
   rapides sont le point d'entrée principal de l'accueil, alors que la
   grille des démarches compte huit vignettes et demande plus de retenue. */
.rav-carte .et_pb_main_blurb_image {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	margin: 0 auto 16px !important;
	border-radius: 50%;
	background: #eaf4f8;
	transition: background .18s ease;
}
@media (max-width: 980px) {
	.rav-carte .et_pb_main_blurb_image { width: 72px; height: 72px; }
}
/* Divi enveloppe l'icône dans un lien puis deux span ; on aplatit le tout
   pour que la pastille reste centrée. Attention : la classe de l'icône
   s'écrit avec des tirets (et-pb-icon), pas des underscores. */
.rav-carte .et_pb_main_blurb_image > a,
.rav-carte .et_pb_main_blurb_image .et_pb_image_wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 !important;
	width: auto;
	height: auto;
	line-height: 1;
}
.rav-carte .et_pb_main_blurb_image .et-pb-icon {
	font-size: 40px !important;
	line-height: 1 !important;
	height: auto !important;
	width: auto !important;
	color: var(--rav-bleu) !important;
	transition: color .18s ease;
}
.rav-carte:hover .et_pb_main_blurb_image {
	background: var(--rav-bleu);
}
.rav-carte:hover .et_pb_main_blurb_image .et-pb-icon {
	color: #fff !important;
}

.rav-carte .et_pb_blurb_container {
	text-align: center;
}
.rav-carte .et_pb_blurb h4,
.rav-carte .et_pb_blurb h4 a {
	color: var(--rav-encre);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	padding-bottom: 6px;
}
.rav-carte .et_pb_blurb_description p {
	font-size: 13px;
	line-height: 1.5;
	color: #6b7a76;
	padding-bottom: 0 !important;
}
.rav-carte-cta {
	color: var(--rav-vert);
	font-weight: 600;
	font-size: 13px;
	margin-top: 10px !important;
	padding-bottom: 0 !important;
}
.rav-carte:hover .rav-carte-cta {
	text-decoration: underline;
}

/* ---- Liste à puces « check » (marché, démarches) ---- */
.rav-marche-etals {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}
.rav-marche-etals li {
	position: relative;
	padding: 5px 0 5px 26px;
}
.rav-marche-etals li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--rav-vert);
	font-weight: 700;
}

/* ---- Grille des atouts du village ---- */
.rav-atouts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-top: 24px;
}
@media (max-width: 980px) {
	.rav-atouts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.rav-atouts { grid-template-columns: 1fr; }
}
.rav-atout {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(34, 48, 58, .07);
	overflow: hidden;
	text-align: center;
}
.rav-atout strong {
	display: block;
	background: #3a7fa8;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 14px 16px;
}
.rav-atout span {
	display: block;
	font-size: 14px;
	color: #55635f;
	line-height: 1.55;
	padding: 14px 16px 16px;
}

/* ---- Badges App Store / Google Play ----------------------------------
 * Seules, ces deux vignettes se lisent comme « un lien vers l'App Store » :
 * on annonce donc explicitement ce qu'elles téléchargent.
 */
.rav-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 16px;
}
.rav-badges::before {
	content: "Télécharger l'application gratuite PanneauPocket :";
	flex: 1 1 100%;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: #55635f;
	margin-bottom: -2px;
}
.et-l--footer .rav-badges::before {
	color: #c9d6dc;
}
.rav-badges img {
	height: 46px;
	width: auto;
	border-radius: 6px;
	display: block;
}

/* ---- Pied de page : lien Facebook ---- */
.rav-lien-fb {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #a9dcef !important;
	font-weight: 600;
	text-decoration: none;
}
.rav-lien-fb::before {
	content: "";
	width: 20px;
	height: 20px;
	flex: none;
	background: currentColor;
	/* Logo Facebook en masque : une seule couleur, aucun fichier à charger */
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M24 12.07C24 5.4 18.63 0 12 0S0 5.4 0 12.07C0 18.1 4.39 23.1 10.13 24v-8.44H7.08v-3.49h3.05V9.41c0-3.02 1.79-4.69 4.53-4.69 1.31 0 2.68.24 2.68.24v2.97h-1.51c-1.49 0-1.96.93-1.96 1.89v2.26h3.33l-.53 3.49h-2.8V24C19.61 23.1 24 18.1 24 12.07z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M24 12.07C24 5.4 18.63 0 12 0S0 5.4 0 12.07C0 18.1 4.39 23.1 10.13 24v-8.44H7.08v-3.49h3.05V9.41c0-3.02 1.79-4.69 4.53-4.69 1.31 0 2.68.24 2.68.24v2.97h-1.51c-1.49 0-1.96.93-1.96 1.89v2.26h3.33l-.53 3.49h-2.8V24C19.61 23.1 24 18.1 24 12.07z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rav-lien-fb:hover {
	color: #ffffff !important;
	text-decoration: underline;
}

/* ---- Pied de page : bloc Partenaires ---- */
/* Quatrième colonne du pied de page : aligné à gauche comme les trois autres */
.rav-part-titre {
	color: #4cc43f;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-size: 12px;
	margin: 0 0 14px !important;
	padding-bottom: 0 !important;
}
.rav-partenaires {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.rav-partenaires li {
	margin: 0;
	padding: 0;
}
.rav-partenaires a {
	display: block;
	background: #fff;
	border-radius: 8px;
	padding: 8px 10px;
	line-height: 0;
	transition: transform .18s ease, box-shadow .18s ease;
}
.rav-partenaires a:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}
.rav-partenaires img {
	height: 34px;
	width: auto;
	max-width: 120px;
	object-fit: contain;
	display: block;
}

/* Les quatre colonnes du pied de page respirent moins large : on resserre */
@media (min-width: 981px) {
	.et-l--footer .et_pb_row > .et_pb_column { padding-right: 6px; }
}

/* ---- Titres : tailles réduites sur mobile (les tailles desktop sont en style inline) ---- */
@media (max-width: 767px) {
	.et_pb_section h1 { font-size: 32px !important; }
	.et_pb_section h2 { font-size: 25px !important; }
}

/* ---- Boutons : style global vert plein (Divi 5 ne génère plus le CSS boutons du Customizer) ---- */
body .et_pb_button {
	background-color: var(--rav-vert);
	color: #fff !important;
	border: 2px solid var(--rav-vert);
	border-radius: 6px;
	font-size: 16px;
	padding: 0.6em 1.6em !important;
	transition: background-color .15s ease, border-color .15s ease;
}
body .et_pb_button:hover {
	background-color: #256f22;
	border-color: #256f22;
	color: #fff !important;
	padding: 0.6em 1.6em !important;
}
body .et_pb_button:after {
	display: none;
}

/* ---- Liste de documents (shortcode [ravieres_documents]) ---- */
.rav-docs {
	margin: 0 0 30px;
}
.rav-docs-annee {
	font-size: 22px;
	font-weight: 600;
	color: var(--rav-encre);
	border-bottom: 3px solid var(--rav-vert);
	padding-bottom: 6px;
	margin: 28px 0 10px;
}
.rav-docs ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rav-docs li {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
	padding: 10px 8px;
	border-bottom: 1px solid #e3e8e6;
}
.rav-docs li:hover {
	background: var(--rav-fond);
}
.rav-docs a {
	color: var(--rav-bleu);
	font-weight: 500;
	text-decoration: none;
	flex: 1 1 auto;
}
.rav-docs a:hover {
	color: var(--rav-vert);
	text-decoration: underline;
}
.rav-doc-meta {
	font-size: 13px;
	color: #6b7a76;
	white-space: nowrap;
}
.rav-doc-ext {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #fff;
	background: var(--rav-bleu);
	border-radius: 3px;
	padding: 2px 7px;
}
.rav-docs-vide {
	color: #6b7a76;
	font-style: italic;
}

/* Au doigt, la cible utile est le lien lui-même, pas la ligne qui l'entoure :
   sur une seule ligne de texte il ne fait que 26 px de haut. On l'étend pour
   atteindre les 44 px recommandés, sans allonger la liste pour autant. */
@media (max-width: 767px) {
	.rav-docs li {
		padding-top: 2px;
		padding-bottom: 2px;
		align-items: center;
	}
	.rav-docs li a {
		padding: 9px 0;
	}
	.rav-doc-meta {
		flex: 1 1 100%;
		padding-left: 40px;
	}
}

/* ---- Accordéon des archives (années anciennes repliées) ---- */
.rav-docs-archives {
	margin-top: 30px;
	border: 1px solid #dbe3e0;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}
.rav-docs-archives > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 15px 20px;
	cursor: pointer;
	list-style: none;
	background: var(--rav-fond);
	transition: background .15s ease;
}
.rav-docs-archives > summary::-webkit-details-marker { display: none; }
.rav-docs-archives > summary:hover { background: #eaf2f0; }
.rav-docs-archives-titre {
	font-weight: 600;
	font-size: 16px;
	color: var(--rav-encre);
	display: flex;
	align-items: center;
	gap: 10px;
}
/* Chevron en CSS pur : pivote à l'ouverture */
.rav-docs-archives-titre::before {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--rav-bleu);
	border-bottom: 2px solid var(--rav-bleu);
	transform: rotate(-45deg);
	transition: transform .2s ease;
	flex: none;
}
.rav-docs-archives[open] > summary .rav-docs-archives-titre::before {
	transform: rotate(45deg);
}
.rav-docs-archives-nb {
	font-size: 13px;
	color: #6b7a76;
	white-space: nowrap;
}
.rav-docs-archives-corps {
	padding: 4px 20px 18px;
}
.rav-docs-archives-corps .rav-docs-annee:first-child {
	margin-top: 18px;
}

/* ---- Cartes actualités (shortcode [ravieres_actualites]) ---- */
.rav-actus {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 980px) {
	.rav-actus { grid-template-columns: 1fr; }
}
.rav-actu {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(34, 48, 58, .08);
	display: flex;
	flex-direction: column;
}
.rav-actu-imglink img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}
.rav-actu-corps {
	padding: 18px 20px 20px;
}
.rav-actu-meta {
	font-size: 13px;
	color: #6b7a76;
	margin: 0 0 6px !important;
	padding-bottom: 0 !important;
}
.rav-actu-cat {
	color: var(--rav-vert);
	font-weight: 600;
}
.rav-actu-titre {
	font-size: 18px;
	line-height: 1.35;
	margin: 0 0 8px;
	padding: 0 !important;
}
.rav-actu-titre a {
	color: var(--rav-encre);
	text-decoration: none;
}
.rav-actu-titre a:hover {
	color: var(--rav-bleu);
}
.rav-actu-extrait {
	font-size: 14px;
	color: #55635f;
	margin: 0 !important;
	padding-bottom: 0 !important;
}

/* ---- Héro principal + zones photos placeholder ---- */
.rav-hero-photo,
.rav-installer-photo {
	min-height: 380px !important;
}
@media (max-width: 980px) {
	.rav-hero-photo,
	.rav-installer-photo { min-height: 200px !important; }
}
.rav-hero-photo-label {
	color: rgba(255, 255, 255, 0.55) !important;
	font-size: 12px !important;
	font-style: italic;
	text-align: center !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ---- Bouton outline (fond sombre, héro) — classe sur le <a> directement en Divi 5 ---- */
body .et_pb_button.rav-btn-outline {
	background: transparent !important;
	border-color: rgba(255, 255, 255, 0.45) !important;
	color: #fff !important;
	margin-top: 8px;
}
body .et_pb_button.rav-btn-outline:hover {
	background: rgba(255, 255, 255, 0.12) !important;
	border-color: #fff !important;
	color: #fff !important;
}

/* ---- Liste agenda (shortcode [ravieres_agenda]) ---- */
.rav-agenda {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.rav-evt {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 1px solid #e3e8e6;
	border-radius: 8px;
	padding: 12px 16px;
	text-decoration: none;
	transition: box-shadow .15s ease;
}
.rav-evt:hover {
	box-shadow: 0 3px 12px rgba(34, 48, 58, .12);
}
.rav-evt-date {
	flex: 0 0 62px;
	background: var(--rav-vert);
	color: #fff;
	border-radius: 8px;
	text-align: center;
	padding: 8px 0 9px;
	line-height: 1.1;
	display: flex;
	flex-direction: column;
}
.rav-evt-jour {
	font-size: 24px;
	font-weight: 700;
}
.rav-evt-mois {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.rav-evt-titre {
	display: block;
	font-weight: 600;
	font-size: 16px;
	color: var(--rav-encre);
}
.rav-evt-meta {
	display: block;
	font-size: 13px;
	color: #6b7a76;
	margin-top: 2px;
}
/* Rythme d'un événement récurrent (« Chaque 1er mercredi du mois ») */
.rav-evt-recurrence {
	display: inline-block;
	margin-top: 5px;
	background: #eaf4f8;
	color: var(--rav-bleu);
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
	padding: 2px 10px;
}

/* ---- En-tête : logo ----------------------------------------------------
 * Divi contraint le logo à 54 % de la hauteur de l'en-tête, ce qui donne
 * un logo de ~43 px de haut, trop discret pour une identité communale.
 */
#logo {
	max-height: 78% !important;
	height: auto;
	transform: scale(2);
	margin-top: 25px;
	border-radius: 8px;
	padding: 5px;
	background-color: white;
}
.et_fixed_nav #main-header.et-fixed-header #logo {
	margin-top: 15px;
}
@media (max-width: 980px) {
	#logo { max-height: 60% !important; }
}

/* ---- Calendrier (shortcode [ravieres_calendrier]) ------------------------
 * Grille au-dessus de 780 px, liste par jour en dessous : sept colonnes ne
 * tiennent pas sur un téléphone sans devenir illisibles.
 */
.rav-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}
.rav-cal-mois {
	font-size: 22px;
	font-weight: 700;
	color: var(--rav-encre);
	margin: 0;
	text-align: center;
	flex: 1;
}
.rav-cal-fleche {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fff;
	border: 1px solid #dbe3e0;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--rav-encre);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.rav-cal-fleche:hover {
	border-color: var(--rav-bleu);
	background: #f0f7fa;
	color: var(--rav-bleu);
}
.rav-cal-retour {
	text-align: center;
	font-size: 13.5px;
	margin: -8px 0 18px !important;
	padding-bottom: 0 !important;
}
.rav-cal-retour a { color: var(--rav-bleu); }

.rav-cal-grille {
	width: 100%;
	border-collapse: separate;
	border-spacing: 4px;
	table-layout: fixed;
	margin: 0;
}
.rav-cal-grille th {
	padding: 8px 4px;
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #6b7a76;
	text-align: center;
	background: none;
	border: none;
}
.rav-cal-grille th abbr {
	text-decoration: none;
	border: none;
	cursor: help;
}
.rav-cal-grille td {
	vertical-align: top;
	height: 96px;
	padding: 6px;
	background: #fff;
	border: 1px solid #e7ecea;
	border-radius: 8px;
}
.rav-cal-vide {
	background: transparent !important;
	border-color: transparent !important;
}
.rav-cal-num {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #8a9390;
	margin-bottom: 4px;
}
.rav-cal-occupe { border-color: var(--rav-bleu-clair); }
.rav-cal-aujourdhui {
	border-color: var(--rav-vert) !important;
	box-shadow: inset 0 0 0 1px var(--rav-vert);
}
.rav-cal-aujourdhui .rav-cal-num {
	color: var(--rav-vert);
	font-weight: 700;
}
.rav-cal-evt {
	display: block;
	background: var(--rav-bleu);
	color: #fff !important;
	font-size: 12px;
	line-height: 1.3;
	border-radius: 4px;
	padding: 4px 6px;
	margin-bottom: 3px;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	transition: background .15s ease;
}
.rav-cal-evt:hover { background: #17627f; }
.rav-cal-evt-multi { background: var(--rav-vert); }
.rav-cal-evt-multi:hover { background: #256f22; }

/* Vue liste, réservée au mobile */
.rav-cal-liste { display: none; }
.rav-cal-jour-liste {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid #eef2f0;
}
.rav-cal-jour-liste:last-child { border-bottom: none; }
.rav-cal-date-liste {
	flex: 0 0 52px;
	background: var(--rav-fond);
	border-radius: 8px;
	text-align: center;
	padding: 8px 0;
	height: fit-content;
}
.rav-cal-jour-liste.rav-cal-aujourdhui .rav-cal-date-liste {
	background: var(--rav-vert);
	color: #fff;
}
.rav-cal-jnum { display: block; font-size: 20px; font-weight: 700; line-height: 1.1; }
.rav-cal-jnom { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.rav-cal-evts-liste { flex: 1; }
.rav-cal-evts-liste a {
	display: block;
	text-decoration: none;
	padding: 6px 0;
}
.rav-cal-evt-titre {
	display: block;
	font-weight: 600;
	font-size: 15px;
	color: var(--rav-encre);
}
.rav-cal-evts-liste a:hover .rav-cal-evt-titre { color: var(--rav-bleu); }
.rav-cal-evt-meta {
	display: block;
	font-size: 13px;
	color: #6b7a76;
	margin-top: 2px;
}
.rav-cal-aucun {
	text-align: center;
	color: #6b7a76;
	font-size: 14px;
	margin-top: 16px !important;
}

@media (max-width: 780px) {
	.rav-cal-grille { display: none; }
	.rav-cal-liste { display: block; }
	.rav-cal-mois { font-size: 18px; }
	.rav-cal-fleche { padding: 8px 12px; }
	.rav-cal-fleche-txt { display: none; }
}

/* ---- Bloc « Le Tonnerrois en Bourgogne » : deux liens, rien de plus ---- */
.rav-ccltb {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}
.rav-ccltb-carte {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #dbe3e0;
	border-radius: 999px;
	padding: 11px 20px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--rav-bleu);
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease;
}
.rav-ccltb-carte:hover {
	border-color: var(--rav-bleu);
	background: #f0f7fa;
}
.rav-ccltb-nom::after {
	content: " ↗";
	font-weight: 400;
}
/* La description détaillée n'a plus lieu d'être sur un simple lien */
.rav-ccltb-desc,
.rav-ccltb-cta {
	display: none;
}

/* ---- Trombinoscope du conseil municipal ---- */
.rav-elus-titre {
	font-size: 20px;
	font-weight: 700;
	color: var(--rav-encre);
	border-bottom: 3px solid var(--rav-vert);
	padding-bottom: 6px;
	margin: 38px 0 20px;
}
.rav-elus-titre:first-child { margin-top: 0; }
.rav-elus {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.rav-elus-1 { grid-template-columns: minmax(0, 380px); }
@media (max-width: 980px) { .rav-elus { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
	.rav-elus, .rav-elus-1 { grid-template-columns: 1fr; }
}
.rav-elu {
	display: flex;
	gap: 16px;
	background: #fff;
	border: 1px solid #e3e8e6;
	border-radius: 12px;
	padding: 16px;
	transition: box-shadow .18s ease, border-color .18s ease;
}
.rav-elu:hover {
	box-shadow: 0 6px 20px rgba(34, 48, 58, .10);
	border-color: var(--rav-bleu-clair);
}
.rav-elu-photo {
	flex: 0 0 88px;
}
.rav-elu-photo img {
	width: 88px;
	height: 110px;
	object-fit: cover;
	object-position: top center;
	border-radius: 8px;
	display: block;
}
/* Repli si un portrait manque : initiale sur aplat, plutôt qu'un trou */
.rav-elu-sansphoto {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 110px;
	border-radius: 8px;
	background: #eaf4f8;
	color: var(--rav-bleu);
	font-size: 34px;
	font-weight: 700;
}
.rav-elu-corps { flex: 1; min-width: 0; }
.rav-elu-nom {
	font-weight: 700;
	font-size: 15.5px;
	color: var(--rav-encre);
	margin: 0 0 2px !important;
	padding-bottom: 0 !important;
}
.rav-elu-role {
	font-size: 13px;
	font-weight: 600;
	color: var(--rav-vert);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 8px !important;
	padding-bottom: 0 !important;
}
.rav-elu-delegation {
	font-size: 13.5px;
	line-height: 1.5;
	color: #6b7a76;
	margin: 0 0 8px !important;
	padding-bottom: 0 !important;
}
.rav-elu-mail {
	margin: 0 !important;
	padding-bottom: 0 !important;
	font-size: 13px;
}
.rav-elu-mail a {
	color: var(--rav-bleu);
	overflow-wrap: anywhere;
}

/* ---- Recherche (shortcode [ravieres_recherche]) ---- */
.rav-rech-form {
	display: flex;
	gap: 10px;
	margin-bottom: 26px;
	position: relative;
}
.rav-rech-form input[type="search"] {
	flex: 1;
	border: 1px solid #d5dedb;
	border-radius: 6px;
	padding: 13px 16px;
	font-size: 16px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.rav-rech-form input[type="search"]:focus {
	border-color: var(--rav-bleu);
	box-shadow: 0 0 0 3px rgba(31, 126, 166, .13);
	outline: none;
}
.rav-rech-form button {
	background: var(--rav-vert);
	border: 2px solid var(--rav-vert);
	border-radius: 6px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 0 26px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.rav-rech-form button:hover {
	background: #256f22;
	border-color: #256f22;
}
@media (max-width: 560px) {
	.rav-rech-form { flex-direction: column; }
	.rav-rech-form button { padding: 13px 26px; }
}

/* Suggestions instantanées */
.rav-rech-suggestions {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #dbe3e0;
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(34, 48, 58, .16);
	z-index: 60;
	overflow: hidden;
	max-height: 380px;
	overflow-y: auto;
}
.rav-rech-suggestions:empty { display: none; }
.rav-rech-suggestions a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 16px;
	text-decoration: none;
	color: var(--rav-encre);
	border-bottom: 1px solid #eef2f0;
	font-size: 14.5px;
}
.rav-rech-suggestions a:last-child { border-bottom: none; }
.rav-rech-suggestions a:hover,
.rav-rech-suggestions a.actif {
	background: #f0f7fa;
	color: var(--rav-bleu);
}
.rav-rech-suggestions .rav-sugg-type {
	font-size: 11.5px;
	color: #8a9390;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.rav-rech-compte {
	color: #55635f;
	font-size: 15px;
	margin-bottom: 6px !important;
	padding-bottom: 0 !important;
}
.rav-rech-invite,
.rav-rech-vide,
.rav-rech-aide {
	color: #55635f;
	font-size: 15px;
}
.rav-rech-groupe {
	font-size: 17px;
	font-weight: 700;
	color: var(--rav-encre);
	border-bottom: 3px solid var(--rav-vert);
	padding-bottom: 6px;
	margin: 32px 0 4px;
	display: flex;
	align-items: baseline;
	gap: 10px;
}
.rav-rech-groupe span {
	font-size: 12.5px;
	font-weight: 600;
	color: #6b7a76;
	background: var(--rav-fond);
	border-radius: 999px;
	padding: 2px 9px;
}
.rav-rech-liste {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rav-rech-liste li { border-bottom: 1px solid #eef2f0; }
.rav-rech-liste li:last-child { border-bottom: none; }
.rav-rech-liste a {
	display: block;
	padding: 14px 10px;
	text-decoration: none;
	border-radius: 6px;
	transition: background .15s ease;
}
.rav-rech-liste a:hover { background: var(--rav-fond); }
.rav-rech-titre {
	display: block;
	font-weight: 600;
	font-size: 16px;
	color: var(--rav-bleu);
	margin-bottom: 3px;
}
.rav-rech-apercu {
	display: block;
	font-size: 13.5px;
	color: #55635f;
	line-height: 1.55;
}
.rav-rech-apercu mark {
	background: #fdf0c8;
	color: inherit;
	padding: 0 2px;
	border-radius: 2px;
}
.rav-rech-date {
	display: block;
	font-size: 12.5px;
	color: #8a9390;
	margin-top: 4px;
}

/* ---- Démarches service-public.fr (shortcode [ravieres_demarches]) ---- */
.rav-dem-surtitre {
	color: var(--rav-vert);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-size: 13px;
	text-align: center;
	margin-bottom: 6px !important;
	padding-bottom: 0 !important;
}
.rav-dem-titre {
	font-size: 28px;
	text-align: center;
	margin-bottom: 10px;
}
.rav-dem-intro {
	text-align: center;
	color: #55635f;
	font-size: 15px;
	max-width: 620px;
	margin: 0 auto 30px !important;
	padding-bottom: 0 !important;
}
.rav-dem-grille {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
@media (max-width: 980px) {
	.rav-dem-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.rav-dem-grille { grid-template-columns: 1fr; }
}
.rav-dem-carte {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	background: #fff;
	border: 1px solid #e3e8e6;
	border-radius: 12px;
	padding: 24px 18px 20px;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rav-dem-carte:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(34, 48, 58, .13);
	border-color: var(--rav-bleu-clair);
}
/* Les SVG héritent de la couleur et de la taille : un seul réglage suffit */
.rav-dem-icone {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #eaf4f8;
	color: var(--rav-bleu);
	font-size: 28px;
	transition: background .18s ease, color .18s ease;
}
.rav-dem-carte:hover .rav-dem-icone {
	background: var(--rav-bleu);
	color: #fff;
}
.rav-dem-corps {
	display: block;
}
.rav-dem-nom {
	display: block;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
	color: var(--rav-encre);
	margin-bottom: 5px;
}
.rav-dem-desc {
	display: block;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7a76;
}
.rav-dem-note {
	text-align: center;
	font-size: 13px;
	color: #8a9390;
	margin-top: 22px !important;
	padding-bottom: 0 !important;
}
/* Sur fond sombre ou coloré, on inverse les cartes */
.rav-dem-sombre .rav-dem-titre { color: #fff; }
.rav-dem-sombre .rav-dem-intro,
.rav-dem-sombre .rav-dem-note { color: #c9d6dc; }

/* ---- Formulaire de contact (Fluent Forms) ---- */
.rav-form .ff-el-group {
	margin-bottom: 16px;
}
.rav-form .ff-el-input--label label {
	font-weight: 600;
	font-size: 14px;
	color: var(--rav-encre);
	margin-bottom: 5px;
}
.rav-form .ff-el-form-control {
	border: 1px solid #d5dedb;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 15px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.rav-form .ff-el-form-control:focus {
	border-color: var(--rav-bleu);
	box-shadow: 0 0 0 3px rgba(31, 126, 166, .13);
	outline: none;
}
.rav-form .ff-el-form-check-label,
.rav-form .ff-el-help-message {
	font-size: 13px;
	color: #6b7a76;
}
.rav-form .ff-el-is-error .ff-el-form-control {
	border-color: #c0392b;
}
.rav-form .error.text-danger {
	font-size: 13px;
	color: #c0392b;
}
.rav-form .ff-btn-submit {
	background-color: var(--rav-vert) !important;
	border: 2px solid var(--rav-vert) !important;
	border-radius: 6px !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600;
	padding: 11px 28px !important;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.rav-form .ff-btn-submit:hover {
	background-color: #256f22 !important;
	border-color: #256f22 !important;
}
.rav-form .ff-message-success {
	background: #eef7ed;
	border: 1px solid #cfe6cc;
	border-left: 4px solid var(--rav-vert);
	border-radius: 6px;
	padding: 18px 20px;
	color: var(--rav-encre);
}

/* ---- Bandeaux photo des pages intérieures --------------------------------
 * La première section de chaque page intérieure est la bande de titre bleue.
 * On lui pose une photo en fond + un voile dégradé pour garder le texte lisible.
 * Ciblage par la classe page-id-* du <body> : aucun réglage à faire dans Divi.
 */
body[class*="page-id-"] .et-l--post > .et_builder_inner_content > .et_pb_section_0 {
	background-size: cover;
	background-position: center 55%;
	background-repeat: no-repeat;
	position: relative;
}
body[class*="page-id-"] .et-l--post > .et_builder_inner_content > .et_pb_section_0::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}
body[class*="page-id-"] .et-l--post > .et_builder_inner_content > .et_pb_section_0 > * {
	position: relative;
	z-index: 1;
}

/* ---- Galerie photos (page Histoire & Patrimoine) ---- */
.rav-galerie {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
@media (max-width: 767px) {
	.rav-galerie { grid-template-columns: 1fr 1fr; }
}
.rav-galerie a {
	display: block;
	overflow: hidden;
	border-radius: 8px;
} 
.rav-galerie img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.rav-galerie a:hover img {
	transform: scale(1.04);
}
Let's work on the workbench first.
I just tried the mod it work pretty well! In the UI "Select a glyph you have handled." overflow out of the limit. 

/* ---- Annuaire (shortcode [ravieres_annuaire]) ---- */

/* Sommaire des catégories */
.rav-ann-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 34px;
}
.rav-ann-nav a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fff;
	border: 1px solid #dbe3e0;
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--rav-encre);
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease;
}
.rav-ann-nav a:hover {
	border-color: var(--rav-bleu);
	background: #f0f7fa;
	color: var(--rav-bleu);
}
.rav-ann-nav a span {
	background: var(--rav-fond);
	border-radius: 999px;
	padding: 1px 7px;
	font-size: 11.5px;
	font-weight: 600;
	color: #6b7a76;
}

.rav-ann-cat {
	font-size: 19px;
	font-weight: 700;
	color: var(--rav-encre);
	border-bottom: 3px solid var(--rav-vert);
	padding-bottom: 6px;
	margin: 40px 0 18px;
	scroll-margin-top: 100px;
}
.rav-ann-grille {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
@media (max-width: 980px) {
	.rav-ann-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.rav-ann-grille { grid-template-columns: 1fr; }
}
.rav-ann-carte {
	background: #fff;
	border: 1px solid #e3e8e6;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .18s ease, border-color .18s ease;
}
.rav-ann-carte:hover {
	box-shadow: 0 6px 20px rgba(34, 48, 58, .10);
	border-color: var(--rav-bleu-clair);
}
.rav-ann-photo img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}
.rav-ann-corps {
	padding: 16px 16px 14px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.rav-ann-nom {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
	color: var(--rav-encre);
	margin: 0 0 7px !important;
	padding: 0 !important;
}
/* Les descriptions reprises de l'ancien site sont très inégales :
   on les limite à 3 lignes pour garder des cartes de hauteur comparable. */
.rav-ann-desc {
	font-size: 13px;
	color: #55635f;
	margin: 0 0 10px !important;
	padding: 0 !important;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rav-ann-adresse {
	font-size: 12.5px;
	color: #6b7a76;
	margin: 0 0 10px !important;
	padding: 0 !important;
	line-height: 1.5;
}
.rav-ann-details {
	font-size: 13px;
	margin: auto 0 0 !important;
	padding: 10px 0 0 !important;
	border-top: 1px solid #eef2f0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.rav-ann-tel,
.rav-ann-mail,
.rav-ann-web {
	color: var(--rav-bleu);
	text-decoration: none;
	font-weight: 500;
	overflow-wrap: anywhere;
}
.rav-ann-tel:hover,
.rav-ann-mail:hover,
.rav-ann-web:hover {
	text-decoration: underline;
}
