/*
Theme Name: Energia Vitae — Blog
Theme URI: https://www.energia-vitae.fr/
Author: Energia Vitae
Description: Thème de blog aux couleurs, au logo, à la navigation et au pied de page du site Energia Vitae, pour une continuité visuelle parfaite entre le site principal et le blog. L'URL du site principal se règle dans /inc/theme-config.php.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: energia-vitae-blog
Tags: blog, two-columns, right-sidebar, custom-logo, translation-ready, accessibility-ready
*/

/* =====================================================================
   1. VARIABLES — couleurs prélevées sur www.energia-vitae.fr
   ================================================================== */
:root {
	--ev-cream: #f1efe5;        /* fond de l'en-tête et de la barre basse */
	--ev-gold: #d39e44;         /* couleur d'accent (onglet actif, liens) */
	--ev-gold-dark: #b9862f;
	--ev-dark: #28311b;         /* vert profond : bouton, fond du footer */
	--ev-footer-bg: #28321a;    /* fond du footer (image de fond) */
	--ev-text: #212529;         /* texte courant */
	--ev-menu-text: #212121;    /* texte du menu */
	--ev-white: #ffffff;
	--ev-border: #e2ddcc;
	--ev-muted: #6b6c62;

	--ev-font-body: "Open Sans", Helvetica, Arial, Lucida, sans-serif;
	--ev-font-head: "Belanosima", "Open Sans", Helvetica, Arial, sans-serif;
	--ev-font-bar: "Lato", Helvetica, Arial, sans-serif;

	--ev-container: 98.8%;
	--ev-container-max: 1600px;
	--ev-radius: 3px;
	--ev-shadow: 0 2px 14px rgba(40, 49, 27, .08);
}

/* =====================================================================
   2. BASE
   ================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ev-white);
	color: var(--ev-text);
	font-family: var(--ev-font-body);
	font-size: clamp(15px, 1.05vw, 18px);
	line-height: 1.65;
	overflow-wrap: break-word;
}

img,
svg,
video,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
}

img { display: block; }

a {
	color: var(--ev-gold-dark);
	text-decoration: none;
	transition: color .3s ease;
}

a:hover,
a:focus { color: var(--ev-dark); }

:focus-visible {
	outline: 2px solid var(--ev-gold);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ev-font-head);
	font-weight: 600;
	color: var(--ev-text);
	line-height: 1.2;
	margin: 0 0 .6em;
}

h1 { font-size: clamp(26px, 2.7vw, 42px); }
h2 { font-size: clamp(22px, 2.2vw, 34px); }
h3 { font-size: clamp(19px, 1.6vw, 26px); }
h4 { font-size: clamp(17px, 1.3vw, 21px); }

p { margin: 0 0 1.15em; }

ul, ol { padding-left: 1.3em; }

blockquote {
	margin: 1.6em 0;
	padding: .2em 0 .2em 1.2em;
	border-left: 3px solid var(--ev-gold);
	font-style: italic;
	color: #3d4232;
}

code, pre, kbd {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .92em;
}

pre {
	background: var(--ev-cream);
	padding: 1em 1.1em;
	border-radius: var(--ev-radius);
	overflow-x: auto;
	max-width: 100%;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.4em 0;
	font-size: .95em;
}

th, td {
	border: 1px solid var(--ev-border);
	padding: .55em .7em;
	text-align: left;
}

th { background: var(--ev-cream); }

.ev-table-scroll { overflow-x: auto; }

hr {
	border: 0;
	border-top: 1px solid var(--ev-border);
	margin: 2.4em 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ev-skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
	padding: .6em 1em;
	background: var(--ev-dark);
	color: var(--ev-white);
	border-radius: var(--ev-radius);
}

.ev-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	overflow-x: clip;
}

.ev-main { flex: 1 0 auto; }

.ev-container {
	width: var(--ev-container);
	max-width: var(--ev-container-max);
	margin-inline: auto;
	padding-inline: clamp(16px, 2vw, 24px);
}

/* =====================================================================
   3. BOUTONS
   ================================================================== */
.ev-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	border-radius: 100px;
	font-family: var(--ev-font-body);
	font-weight: 600;
	font-size: clamp(13px, .8vw, 16px);
	line-height: 1.4;
	padding: clamp(9px, .45vw, 12px) clamp(16px, 1.1vw, 22px);
	border: 1px solid transparent;
	text-align: center;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
	cursor: pointer;
	max-width: 100%;
}

.ev-btn--dark {
	background: var(--ev-dark);
	border-color: var(--ev-dark);
	color: var(--ev-white);
}

.ev-btn--dark:hover,
.ev-btn--dark:focus {
	background: var(--ev-gold);
	border-color: var(--ev-gold);
	color: var(--ev-white);
}

.ev-btn--gold {
	background: var(--ev-gold);
	border-color: var(--ev-gold);
	color: var(--ev-white);
}

.ev-btn--gold:hover,
.ev-btn--gold:focus {
	background: var(--ev-white);
	border-color: var(--ev-gold);
	color: var(--ev-dark);
}

.ev-btn--outline {
	background: transparent;
	border-color: var(--ev-dark);
	color: var(--ev-dark);
}

.ev-btn--outline:hover,
.ev-btn--outline:focus {
	background: var(--ev-dark);
	color: var(--ev-white);
}

.ev-btn__icon { flex: 0 0 auto; }

/* =====================================================================
   4. EN-TÊTE
   ================================================================== */
.ev-header {
	background: var(--ev-cream);
	position: relative;
	z-index: 20;
}

.ev-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.5vw, 28px);
	padding-block: clamp(12px, 1.98vw, 26px);
}

.ev-header__brand {
	flex: 0 1 auto;
	min-width: 0;              /* le titre long ne casse pas la mise en page */
	max-width: min(46%, 320px);
}

.ev-logo {
	display: block;
	max-width: 100%;
	color: var(--ev-text);
}

.ev-logo__img {
	width: auto;
	max-width: 100%;
	max-height: clamp(42px, 6.3vw, 82px);
	object-fit: contain;
}

.ev-logo--text .ev-logo__text {
	display: block;
	font-family: var(--ev-font-head);
	font-weight: 600;
	font-size: clamp(17px, 1.45vw, 26px);
	line-height: 1.15;
	color: var(--ev-text);
	overflow-wrap: anywhere;   /* un titre très long passe à la ligne */
	hyphens: auto;
}

.ev-nav--desktop {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.ev-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(2px, .35vw, 8px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ev-menu__link {
	display: block;
	padding: clamp(5px, .4vw, 8px) clamp(9px, 1.04vw, 16px);
	border-radius: 100px;
	font-family: var(--ev-font-body);
	font-weight: 600;
	font-size: clamp(12px, .85vw, 17px);
	line-height: 1.3;
	color: var(--ev-menu-text);
	text-align: center;
	transition: background-color .3s ease, color .3s ease, opacity .3s ease;
}

.ev-menu__link br { display: inline; }

.ev-menu__item:hover > .ev-menu__link,
.ev-menu__item:focus-within > .ev-menu__link {
	background: var(--ev-gold);
	color: var(--ev-white);
}

/* Onglet actif : même mise en valeur que sur le site (pastille dorée). */
.ev-menu__item--current > .ev-menu__link {
	background: var(--ev-gold);
	color: var(--ev-white);
}

.ev-header__aside {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: clamp(8px, .9vw, 16px);
}

.ev-socials {
	display: flex;
	align-items: center;
	gap: clamp(6px, .5vw, 10px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ev-socials a {
	display: block;
	line-height: 0;
	transition: opacity .3s ease;
}

.ev-socials a:hover { opacity: .72; }

.ev-socials img {
	width: clamp(22px, 1.55vw, 30px);
	height: auto;
}

/* -- Bouton burger ------------------------------------------------- */
.ev-burger {
	display: none;
	flex: 0 0 auto;
	margin-left: auto;
	width: 46px;
	height: 46px;
	padding: 11px;
	background: transparent;
	border: 1px solid rgba(40, 49, 27, .25);
	border-radius: 100px;
	cursor: pointer;
}

.ev-burger__bar {
	display: block;
	height: 2px;
	background: var(--ev-dark);
	border-radius: 2px;
	transition: transform .3s ease, opacity .3s ease;
}

.ev-burger__bar + .ev-burger__bar { margin-top: 5px; }

.ev-burger[aria-expanded="true"] .ev-burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ev-burger[aria-expanded="true"] .ev-burger__bar:nth-child(2) { opacity: 0; }
.ev-burger[aria-expanded="true"] .ev-burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -- Menu mobile --------------------------------------------------- */
.ev-mobile-nav {
	display: none;
	background: var(--ev-cream);
	border-top: 1px solid var(--ev-border);
	padding-block: 14px 22px;
}

.ev-mobile-nav[hidden] { display: none; }

.ev-menu--mobile {
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
}

.ev-menu--mobile .ev-menu__link {
	text-align: left;
	font-size: 16px;
	padding: 12px 16px;
	min-height: 44px;
	display: flex;
	align-items: center;
}

.ev-mobile-nav__aside {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--ev-border);
}

/* =====================================================================
   5. EN-TÊTE DE PAGE / TITRES DE SECTION
   ================================================================== */
.ev-pagehead {
	background: var(--ev-cream);
	padding-block: clamp(26px, 3.2vw, 56px);
}

.ev-pagehead__title {
	margin: 0;
	font-size: clamp(24px, 2.6vw, 40px);
}

.ev-pagehead__desc {
	margin: .7em 0 0;
	max-width: 70ch;
	color: #3d4232;
}

.ev-pagehead__baseline {
	margin: .5em 0 0;
	font-family: var(--ev-font-head);
	font-size: clamp(15px, 1.15vw, 19px);
	color: var(--ev-gold-dark);
}

/* =====================================================================
   6. GABARIT : contenu + colonne latérale
   ================================================================== */
.ev-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
	gap: clamp(28px, 3vw, 56px);
	padding-block: clamp(30px, 3.4vw, 64px);
	align-items: start;
}

.ev-no-sidebar .ev-layout { grid-template-columns: minmax(0, 1fr); }

.ev-layout__main { min-width: 0; }

/* =====================================================================
   7. LISTE D'ARTICLES
   ================================================================== */
.ev-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 28vw, 340px), 1fr));
	gap: clamp(20px, 2vw, 34px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ev-card {
	display: flex;
	flex-direction: column;
	background: var(--ev-white);
	border: 1px solid var(--ev-border);
	border-radius: 10px;
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
	min-width: 0;
}

.ev-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--ev-shadow);
}

.ev-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--ev-cream);
	overflow: hidden;
}

.ev-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ev-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: clamp(16px, 1.4vw, 24px);
}

.ev-card__title {
	font-size: clamp(18px, 1.4vw, 24px);
	margin: 0 0 .35em;
}

.ev-card__title a { color: var(--ev-text); }
.ev-card__title a:hover { color: var(--ev-gold-dark); }

.ev-card__excerpt {
	margin: 0 0 1em;
	font-size: .95em;
	color: #4a4d43;
}

.ev-card__more {
	margin-top: auto;
	align-self: flex-start;
	font-weight: 600;
	color: var(--ev-gold-dark);
}

.ev-card__more:hover { color: var(--ev-dark); }

.ev-meta {
	margin: 0 0 .6em;
	font-size: .82em;
	letter-spacing: .02em;
	color: var(--ev-muted);
}

.ev-meta a { color: var(--ev-muted); }
.ev-meta a:hover { color: var(--ev-gold-dark); }
.ev-meta__sep { margin-inline: .45em; }

/* =====================================================================
   8. ARTICLE / PAGE
   ================================================================== */
.ev-article {
	background: var(--ev-white);
	min-width: 0;
}

.ev-article__title { margin-bottom: .35em; }

.ev-article__thumb {
	margin: 0 0 clamp(20px, 2vw, 34px);
	border-radius: 10px;
	overflow: hidden;
}

.ev-article__thumb img { width: 100%; }

.ev-entry {
	max-width: 78ch;           /* confort de lecture, sans casser la largeur */
}

.ev-entry > * { max-width: 100%; }

.ev-entry img { border-radius: 6px; }

.ev-entry figure { margin: 1.8em 0; }

.ev-entry figcaption {
	font-size: .86em;
	color: var(--ev-muted);
	margin-top: .5em;
}

.ev-entry a { text-decoration: underline; text-underline-offset: 2px; }

.alignleft { float: left; margin: .3em 1.5em 1.2em 0; }
.alignright { float: right; margin: .3em 0 1.2em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .86em; color: var(--ev-muted); }
.sticky .ev-card { border-color: var(--ev-gold); }

.ev-tags {
	margin: clamp(22px, 2vw, 34px) 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
}

.ev-tags a {
	display: inline-block;
	padding: 5px 14px;
	border: 1px solid var(--ev-border);
	border-radius: 100px;
	background: var(--ev-cream);
	font-size: .82em;
	color: var(--ev-text);
}

.ev-tags a:hover {
	background: var(--ev-gold);
	border-color: var(--ev-gold);
	color: var(--ev-white);
}

.ev-post-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin-top: clamp(28px, 2.6vw, 48px);
	padding-top: clamp(20px, 2vw, 30px);
	border-top: 1px solid var(--ev-border);
}

.ev-post-nav a {
	display: block;
	padding: 14px 18px;
	border: 1px solid var(--ev-border);
	border-radius: 10px;
	color: var(--ev-text);
}

.ev-post-nav a:hover { border-color: var(--ev-gold); }

.ev-post-nav__label {
	display: block;
	font-size: .78em;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--ev-muted);
	margin-bottom: .25em;
}

.ev-post-nav__next { text-align: right; }

.ev-page-links {
	margin-top: 1.8em;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

/* =====================================================================
   9. PAGINATION
   ================================================================== */
.ev-pagination,
.navigation.pagination {
	margin-top: clamp(28px, 2.8vw, 50px);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid var(--ev-border);
	border-radius: 100px;
	color: var(--ev-text);
	font-weight: 600;
	font-size: .9em;
}

.page-numbers:hover,
.page-numbers:focus {
	background: var(--ev-cream);
	border-color: var(--ev-gold);
}

.page-numbers.current {
	background: var(--ev-gold);
	border-color: var(--ev-gold);
	color: var(--ev-white);
}

.page-numbers.dots {
	border-color: transparent;
	min-width: auto;
	padding-inline: 4px;
}

/* =====================================================================
   10. COLONNE LATÉRALE / WIDGETS
   ================================================================== */
.ev-sidebar {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(18px, 1.8vw, 28px);
}

.ev-widget {
	background: var(--ev-cream);
	border-radius: 10px;
	padding: clamp(18px, 1.5vw, 26px);
	font-size: .95em;
}

.ev-widget__title {
	font-size: clamp(17px, 1.25vw, 21px);
	margin: 0 0 .7em;
}

.ev-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ev-widget li + li {
	margin-top: .45em;
	padding-top: .45em;
	border-top: 1px solid var(--ev-border);
}

.ev-widget a { color: var(--ev-text); }
.ev-widget a:hover { color: var(--ev-gold-dark); }

/* =====================================================================
   11. FORMULAIRE DE RECHERCHE ET CHAMPS
   ================================================================== */
.ev-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
}

.ev-search-form__field {
	flex: 1 1 160px;
	min-width: 0;
}

/* Dans la colonne latérale, le formulaire s'empile pour rester lisible. */
.ev-widget .ev-search-form,
.ev-nothing .ev-search-form {
	flex-direction: column;
	align-items: stretch;
}

.ev-widget .ev-search-form .ev-btn,
.ev-nothing .ev-search-form .ev-btn { align-self: flex-start; }

.ev-nothing .ev-search-form { max-width: 420px; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	padding: 11px 14px;
	font-family: var(--ev-font-body);
	font-size: 16px;              /* évite le zoom automatique sur iOS */
	color: var(--ev-text);
	background: var(--ev-white);
	border: 1px solid var(--ev-border);
	border-radius: 100px;
	transition: border-color .3s ease;
}

textarea {
	border-radius: 10px;
	min-height: 150px;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--ev-gold);
	outline: none;
}

/* =====================================================================
   12. COMMENTAIRES
   ================================================================== */
.ev-comments {
	margin-top: clamp(34px, 3vw, 60px);
	padding-top: clamp(24px, 2.4vw, 40px);
	border-top: 1px solid var(--ev-border);
	max-width: 78ch;
}

.ev-comments__title {
	font-size: clamp(20px, 1.7vw, 28px);
	margin-bottom: 1em;
}

.comment-list {
	list-style: none;
	margin: 0 0 2em;
	padding: 0;
}

.comment-list ol.children {
	list-style: none;
	margin: 1em 0 0;
	padding-left: clamp(12px, 2vw, 32px);
	border-left: 2px solid var(--ev-border);
}

.comment-body {
	padding: clamp(14px, 1.3vw, 22px);
	background: var(--ev-cream);
	border-radius: 10px;
	margin-bottom: 1em;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: .6em;
	font-size: .85em;
	color: var(--ev-muted);
}

.comment-author img {
	border-radius: 100px;
	flex: 0 0 auto;
}

.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author .fn { font-weight: 600; color: var(--ev-text); font-style: normal; }

.reply a,
.comment-reply-link {
	display: inline-block;
	font-weight: 600;
	font-size: .85em;
	color: var(--ev-gold-dark);
}

.comment-respond { margin-top: 1.5em; }

.comment-form {
	display: grid;
	gap: 14px;
}

.comment-form p { margin: 0; }

.comment-form label {
	display: block;
	font-size: .88em;
	font-weight: 600;
	margin-bottom: .35em;
}

.comment-form .form-submit { margin-top: .4em; }

.comment-form input[type="submit"] {
	width: auto;
	border-radius: 100px;
	background: var(--ev-dark);
	border-color: var(--ev-dark);
	color: var(--ev-white);
	font-weight: 600;
	padding: 12px 24px;
	cursor: pointer;
	transition: background-color .3s ease;
}

.comment-form input[type="submit"]:hover { background: var(--ev-gold); border-color: var(--ev-gold); }

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: .88em;
}

.comment-form-cookies-consent input { width: auto; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }

@media (min-width: 700px) {
	.comment-form .comment-form-author,
	.comment-form .comment-form-email {
		display: inline-block;
		width: calc(50% - 7px);
	}
	.comment-form .comment-form-author { margin-right: 10px; }
}

/* =====================================================================
   13. 404 / AUCUN RÉSULTAT
   ================================================================== */
.ev-nothing {
	padding-block: clamp(34px, 4vw, 80px);
	max-width: 62ch;
}

.ev-nothing__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 1.6em;
}

/* =====================================================================
   14. PIED DE PAGE
   ================================================================== */
.ev-footer { flex: 0 0 auto; }

.ev-footer__main {
	background-color: var(--ev-footer-bg);
	background-image: url("assets/fond-footer.jpg");
	background-repeat: no-repeat;
	background-position: center right;
	background-size: cover;
	color: var(--ev-white);
	padding-block: clamp(30px, 3.95vw, 62px);
}

.ev-footer__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(18px, 2vw, 34px);
	align-items: start;
}

.ev-footer__col { min-width: 0; }

.ev-footer__col--cta {
	display: flex;
	justify-content: flex-end;
}

.ev-footer__col--logo .ev-logo__img {
	max-height: none;
	width: clamp(120px, 12vw, 203px);
}

.ev-footer__title {
	color: var(--ev-white);
	font-family: var(--ev-font-body);
	font-weight: 700;
	font-size: clamp(15px, 1.04vw, 20px);
	line-height: 1.2;
	margin: 0 0 clamp(14px, 1.5vw, 24px);
}

.ev-footer__line {
	margin: 0 0 .9em;
	font-family: var(--ev-font-body);
	font-size: clamp(13px, .83vw, 16px);
	line-height: 1.55;
	color: var(--ev-white);
}

.ev-footer__line:last-child { margin-bottom: 0; }

.ev-footer__line a { color: var(--ev-white); }
.ev-footer__line a:hover { color: var(--ev-gold); }

.ev-footer__line--address,
.ev-footer__line--phone {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.ev-footer__line--address img,
.ev-footer__line--phone img {
	flex: 0 0 auto;
	margin-top: .3em;
	width: 12px;
}

.ev-footer__line--phone img { width: 15px; }

.ev-socials--footer img { width: clamp(26px, 2vw, 34px); }

/* -- Barre basse ---------------------------------------------------- */
.ev-footer__bar {
	background: var(--ev-cream);
	font-family: var(--ev-font-bar);
	font-size: 14px;
	color: #000;
}

.ev-footer__bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-block: 14px;
}

.ev-footer__legal { color: var(--ev-gold); font-family: var(--ev-font-bar); }
.ev-footer__legal:hover { color: var(--ev-dark); }
.ev-footer__credit { color: #000; }

/* =====================================================================
   15. RESPONSIVE
   ================================================================== */

/* Grands écrans : on borne la typo en vw pour éviter le gigantisme. */
@media (min-width: 1601px) {
	.ev-header__inner { padding-block: 26px; }
}

/* Tablette large : le menu devient plus compact. */
@media (max-width: 1200px) {
	.ev-menu__link { padding: 5px 9px; font-size: 12.5px; }
	.ev-socials--header img { width: 22px; }
}

/* Bascule vers le menu burger. */
@media (max-width: 1080px) {
	.ev-header__inner { flex-wrap: nowrap; }

	.ev-burger { display: block; }

	.ev-nav--desktop,
	.ev-header__aside { display: none; }

	.ev-header__brand { max-width: calc(100% - 62px); }

	.ev-mobile-nav { display: block; }
	.ev-mobile-nav[hidden] { display: none; }

	.ev-logo__img { max-height: clamp(44px, 8vw, 66px); }
}

/* Deux colonnes -> une seule. */
@media (max-width: 980px) {
	.ev-layout { grid-template-columns: minmax(0, 1fr); }

	.ev-sidebar {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	}

	.ev-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.ev-footer__col--logo { grid-column: 1 / -1; }

	.ev-footer__col--cta {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}

	/* L'illustration du footer reste visible sur les écrans étroits. */
	.ev-footer__main {
		background-position: right bottom;
		background-size: 190% auto;
	}
}

/* Mobile. */
@media (max-width: 640px) {
	body { font-size: 16px; line-height: 1.62; }

	.ev-container { padding-inline: 18px; }

	.ev-header__inner { padding-block: 12px; }

	.ev-cards { grid-template-columns: minmax(0, 1fr); }

	.ev-card__body { padding: 18px; }

	.ev-layout { padding-block: 26px; }

	.ev-sidebar { grid-template-columns: minmax(0, 1fr); }

	.ev-footer__grid { grid-template-columns: minmax(0, 1fr); }

	.ev-footer__col--logo .ev-logo__img { width: 140px; }

	.ev-footer__bar-inner {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.ev-post-nav { grid-template-columns: minmax(0, 1fr); }
	.ev-post-nav__next { text-align: left; }

	.alignleft,
	.alignright {
		float: none;
		margin: 1.2em auto;
	}

	.ev-entry { max-width: none; }

	.comment-list ol.children { padding-left: 12px; }
}

/* Très petits écrans. */
@media (max-width: 380px) {
	.ev-logo__img { max-height: 40px; }
	.ev-burger { width: 42px; height: 42px; padding: 10px; }
	.ev-btn { width: 100%; }
	.ev-mobile-nav__aside { flex-direction: column; align-items: stretch; }
	.ev-mobile-nav__aside .ev-socials { justify-content: center; }
}

/* Impression. */
@media print {
	.ev-header, .ev-footer, .ev-sidebar, .ev-pagination, .ev-comments { display: none !important; }
	.ev-layout { grid-template-columns: 1fr; }
}

/* Respect des préférences d'animation réduite. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
