/* ==========================================================================
   Refonte graphique — Amérique du Sud (direction « Atlas » + touche « Carnet »)
   Léger : polices locales, pas de framework, une feuille par couche.
   ========================================================================== */

/* ---------- Polices (hébergées localement) ---------- */
@font-face {
	font-family: "Inter";
	src: url(../fonts/inter-var.woff2) format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url(../fonts/fraunces-var.woff2) format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url(../fonts/fraunces-italic-var.woff2) format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root,
html[data-theme="dark"] {
	--amds-bg: #fbfaf7;
	--amds-surface: #ffffff;
	--amds-ink: #16211f;
	--amds-muted: #5b6b66;
	--amds-line: #e8e5dc;
	--amds-accent: #0b7a75;
	--amds-accent-dark: #075c58;
	--amds-accent-soft: #e3f2f0;
	--amds-warm: #b4532a;
	--amds-deep: #10231f;
	--amds-radius: 14px;
	--amds-radius-sm: 8px;
	--amds-shadow: 0 1px 2px rgba(16, 35, 31, .06), 0 8px 24px rgba(16, 35, 31, .06);
	--amds-shadow-hover: 0 2px 4px rgba(16, 35, 31, .08), 0 14px 32px rgba(16, 35, 31, .12);
	--amds-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--amds-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--amds-wrap: 1200px;

	/* variables du thème parent, réalignées sur la nouvelle charte */
	--fl-body-font: var(--amds-font);
	--fl-headings-font: var(--amds-serif);
	--fl-headings-font-weight: 600;
	--fl-body-background: var(--amds-bg);
	--fl-blog-background: var(--amds-bg);
	--fl-body-color: var(--amds-ink);
	--fl-headings-color: var(--amds-ink);
	--fl-meta-color: var(--amds-muted);
	--fl-accent-color: var(--amds-accent);
	--fl-button-background: var(--amds-accent);
	--fl-box-background: var(--amds-surface);
	--fl-box-color: var(--amds-ink);
	--fl-input-background: #fff;
	--fl-widgets-border-color: var(--amds-line);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
	background: var(--amds-bg);
	color: var(--amds-ink);
	font-family: var(--amds-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

#fl-blog-container { background: transparent; max-width: none; }

a { color: var(--amds-accent); text-decoration: none; }
a:hover { color: var(--amds-warm); }

:focus-visible {
	outline: 3px solid var(--amds-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

h1, h2, h3, h4 {
	font-family: var(--amds-serif);
	font-weight: 600;
	line-height: 1.2;
	color: var(--amds-ink);
	letter-spacing: -0.01em;
}

img { max-width: 100%; height: auto; }

.amds-wrap {
	width: 100%;
	max-width: var(--amds-wrap);
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.fl-container { max-width: var(--amds-wrap); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* ---------- Petits composants ---------- */
.amds-eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--amds-warm);
}

.amds-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--amds-accent);
}
.amds-label:hover { color: var(--amds-warm); }

/* ---------- Accueil : introduction ---------- */
.amds-intro { padding: 56px 0 32px; max-width: 760px; }
.amds-intro h1 {
	margin: 0;
	font-size: clamp(2.4rem, 5vw, 3.8rem);
	font-weight: 650;
	line-height: 1.05;
}
.amds-lead {
	margin: 16px 0 0;
	font-size: 1.15rem;
	color: var(--amds-muted);
	max-width: 56ch;
}
.amds-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.amds-chips a {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid var(--amds-line);
	border-radius: 999px;
	background: var(--amds-surface);
	font-size: 14px;
	font-weight: 500;
	color: var(--amds-ink);
	transition: background .15s, color .15s, border-color .15s;
}
.amds-chips a:hover { background: var(--amds-accent); border-color: var(--amds-accent); color: #fff; }

/* ---------- Cartes ---------- */
.amds-card {
	display: flex;
	flex-direction: column;
	background: var(--amds-surface);
	border: 1px solid var(--amds-line);
	border-radius: var(--amds-radius);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.amds-card:hover { transform: translateY(-3px); box-shadow: var(--amds-shadow-hover); }

.amds-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--amds-accent-soft); }
.amds-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.amds-card:hover .amds-card__media img { transform: scale(1.04); }
.amds-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--amds-accent-soft), #f4e6dc); }

.amds-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.amds-card__title { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.amds-card__title a { color: var(--amds-ink); }
.amds-card__title a:hover { color: var(--amds-accent); }
.amds-card__excerpt { margin: 0; font-size: .95rem; color: var(--amds-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.amds-card__date { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--amds-muted); }

/* ---------- Accueil : à la une (1 grande + 2 compactes) ---------- */
.amds-featured {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 24px;
	margin-bottom: 48px;
}
.amds-featured .amds-card:first-child { grid-row: 1 / span 2; position: relative; border: 0; min-height: 460px; }
.amds-featured .amds-card:first-child .amds-card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.amds-featured .amds-card:first-child .amds-card__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(10, 24, 21, .92) 0%, rgba(10, 24, 21, .62) 42%, rgba(10, 24, 21, .1) 78%);
}
.amds-featured .amds-card:first-child .amds-card__body { position: relative; justify-content: flex-end; padding: 32px; gap: 10px; }
.amds-featured .amds-card:first-child .amds-card__date { margin-top: 0; }
.amds-featured .amds-card:first-child .amds-label { color: #fff; background: var(--amds-warm); padding: 4px 10px; border-radius: 999px; align-self: flex-start; }
.amds-featured .amds-card:first-child .amds-card__title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.amds-featured .amds-card:first-child .amds-card__title a { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.amds-featured .amds-card:first-child .amds-card__excerpt { color: rgba(255, 255, 255, .85); -webkit-line-clamp: 2; max-width: 60ch; }
.amds-featured .amds-card:first-child .amds-card__date { color: rgba(255, 255, 255, .7); }

.amds-featured .amds-card:not(:first-child) { flex-direction: row; }
.amds-featured .amds-card:not(:first-child) .amds-card__media { aspect-ratio: auto; width: 42%; flex: none; }
.amds-featured .amds-card:not(:first-child) .amds-card__excerpt { display: none; }
.amds-featured .amds-card:not(:first-child) .amds-card__title { font-size: 1.1rem; }

/* ---------- Grille ---------- */
.amds-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

/* ---------- En-tête d'archive / catégorie ---------- */
.amds-archive-head { padding: 48px 0 28px; max-width: 760px; }
.amds-archive-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.amds-archive-desc { margin-top: 12px; color: var(--amds-muted); max-width: 70ch; }
.amds-empty { padding: 40px 0; color: var(--amds-muted); }

/* ---------- Pagination ---------- */
.fl-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 64px; }
.fl-pagination .page-numbers {
	display: inline-flex; align-items: center; gap: 6px;
	min-width: 42px; height: 42px; padding: 0 14px; box-sizing: border-box; justify-content: center;
	border: 1px solid var(--amds-line); border-radius: var(--amds-radius-sm);
	background: var(--amds-surface); color: var(--amds-ink); font-weight: 600; font-size: 14px;
}
.fl-pagination a.page-numbers:hover { border-color: var(--amds-accent); color: var(--amds-accent); }
.fl-pagination .page-numbers.current { background: var(--amds-accent); border-color: var(--amds-accent); color: #fff; }
.fl-pagination .dots { border: 0; background: none; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumbs-wrapper { max-width: var(--amds-wrap); margin: 0 auto; padding: 18px 20px 0; box-sizing: border-box; font-size: 13px; color: var(--amds-muted); }
.breadcrumbs-wrapper .breadcrumbs { padding: 0; }
.breadcrumbs-wrapper a { color: var(--amds-muted); }
.breadcrumbs-wrapper a:hover { color: var(--amds-accent); }

/* ==========================================================================
   Article
   ========================================================================== */
.amds-single { padding-bottom: 32px; }
.amds-single #fl-blogposts { width: 100%; max-width: none; float: none; padding: 0; }

.amds-single article.fl-article {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: none; border: 0; box-shadow: none; padding: 0; margin: 0;
}
.amds-single .amds-article-head { order: 1; width: 100%; max-width: 740px; padding: 36px 0 20px; text-align: left; }
.amds-single .fl-picture,
.amds-single .fl-gallery-slider,
.amds-single .fl-video,
.amds-single .fl-audio { order: 2; width: 100%; max-width: 1100px; margin: 0 0 40px; border-radius: var(--amds-radius); overflow: hidden; }
.amds-single .fl-picture img { display: block; width: 100%; height: auto; }
.amds-single .amds-meta { order: 3; }
.amds-single .fl-post-content { order: 4; }
.amds-single .fl-article-footer { order: 5; }

.amds-article-head h1.title {
	margin: 0;
	font-size: clamp(2rem, 4.5vw, 3.1rem);
	font-weight: 650;
	line-height: 1.1;
}
.amds-byline { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: 14px; color: var(--amds-muted); }
.amds-byline a { color: var(--amds-ink); font-weight: 600; }
.amds-byline a:hover { color: var(--amds-accent); }

/* Méta sous l'image */
.amds-single .amds-meta { width: 100%; max-width: 740px; margin: -8px 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--amds-line); }
.amds-terms { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.amds-term { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.5; }
.amds-term--cat { background: var(--amds-accent-soft); color: var(--amds-accent-dark); font-weight: 600; }
.amds-term--cat:hover { background: var(--amds-accent); color: #fff; }
.amds-term--tag { border: 1px solid var(--amds-line); background: var(--amds-surface); color: var(--amds-muted); }
.amds-term--tag:hover { border-color: var(--amds-accent); color: var(--amds-accent); }

/* Sommaire (plugin Easy Table of Contents) */
.amds-single div#ez-toc-container {
	width: 100%; max-width: 100%; box-sizing: border-box; display: block;
	margin: 1.8em 0 2em; padding: 20px 24px;
	background: var(--amds-surface); border: 1px solid var(--amds-line); border-left: 4px solid var(--amds-accent);
	border-radius: var(--amds-radius); box-shadow: none; color: var(--amds-ink);
}
.amds-single div#ez-toc-container .ez-toc-title-container { display: flex; align-items: center; justify-content: space-between; }
.amds-single div#ez-toc-container p.ez-toc-title { margin: 0; font: 600 1.15rem var(--amds-serif); color: var(--amds-ink); }
.amds-single div#ez-toc-container .ez-toc-title-toggle a { box-shadow: none; background: var(--amds-accent-soft); border: 0; border-radius: 999px; padding: 4px 8px; color: var(--amds-accent-dark); }
.amds-single div#ez-toc-container nav { margin-top: 12px; }
.amds-single div#ez-toc-container ul { margin: 0; padding: 0; list-style: none; }
.amds-single div#ez-toc-container ul ul { margin: 4px 0 4px 18px; }
.amds-single div#ez-toc-container li { margin: 0; padding: 3px 0; font-size: .98rem; line-height: 1.45; }
.amds-single div#ez-toc-container a { color: var(--amds-ink); text-decoration: none; font-weight: 500; }
.amds-single div#ez-toc-container a:hover { color: var(--amds-accent); text-decoration: underline; }
.amds-single div#ez-toc-container .ez-toc-counter ul { counter-reset: item; }
.amds-single div#ez-toc-container .ez-toc-counter li::before,
.amds-single div#ez-toc-container li::before { color: var(--amds-warm); font-weight: 700; }
.amds-single .fl-post-content h2, .amds-single .fl-post-content h3 { scroll-margin-top: 90px; }

/* Publicités (Advanced Ads / AdSense) : même rythme que le texte, centrées, jamais plus larges que la colonne */
.amds-single .ameri-entity-placement { clear: both; max-width: 100%; margin: 1.8em 0; text-align: center; overflow: hidden; }
.amds-single .ameri-entity-placement ins.adsbygoogle { max-width: 100%; }

/* Vote (plugin kk-star-ratings) : en tête du contenu */
.amds-single .kk-star-ratings { margin: 0 0 1.4em; }
.amds-single .kk-star-ratings .kksr-legend { font-size: 14px; color: var(--amds-muted); }

/* Texte : colonne de lecture ~70 caractères */
.amds-single .fl-post-content {
	width: 100%;
	padding: 0;
	margin: 0;
	max-width: 740px;
	font-size: 1.125rem;
	line-height: 1.75;
	color: #202c29;
}
.amds-single .fl-post-content > * { max-width: 100%; }
.amds-single .fl-post-content p,
.amds-single .fl-post-content ul,
.amds-single .fl-post-content ol { margin: 0 0 1.3em; }
.amds-single .fl-post-content h2 { margin: 2em 0 .6em; font-size: 1.75rem; }
.amds-single .fl-post-content h3 { margin: 1.7em 0 .5em; font-size: 1.35rem; }
.amds-single .fl-post-content h4 { margin: 1.5em 0 .4em; font-size: 1.15rem; }
.amds-single .fl-post-content a { color: var(--amds-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.amds-single .fl-post-content a:hover { color: var(--amds-warm); }
.amds-single .fl-post-content img { border-radius: var(--amds-radius-sm); height: auto; }
.amds-single .fl-post-content figure { margin: 1.6em 0; }
.amds-single .fl-post-content figcaption { margin-top: 8px; font-size: 13px; color: var(--amds-muted); text-align: center; }
.amds-single .fl-post-content blockquote {
	margin: 1.8em 0; padding: 4px 0 4px 22px;
	border-left: 4px solid var(--amds-warm);
	font-family: var(--amds-serif); font-style: italic; font-size: 1.25rem; color: var(--amds-ink);
}
.amds-single .fl-post-content table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
.amds-single .fl-post-content th,
.amds-single .fl-post-content td { padding: 10px 12px; border: 1px solid var(--amds-line); }
.amds-single .fl-post-content th { background: var(--amds-accent-soft); text-align: left; }
.amds-single .fl-post-content iframe { max-width: 100%; }

/* Pied d'article : tags + partage */
.amds-single .fl-article-footer {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	width: 100%; max-width: 740px; margin: 36px 0 0; padding: 20px 0; border-top: 1px solid var(--amds-line);
}
.amds-single .fl-article-footer .tags a {
	display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px;
	border: 1px solid var(--amds-line); border-radius: 999px; font-size: 13px; color: var(--amds-muted); background: var(--amds-surface);
}
.amds-single .fl-article-footer .tags a:hover { border-color: var(--amds-accent); color: var(--amds-accent); }

/* Auteur, précédent/suivant, articles liés : centrés dans la colonne */
.amds-single #fl-box,
.amds-single #fl-prev-next,
.amds-single #fl-related,
.amds-single #comments { width: 100%; max-width: 740px; margin-left: auto; margin-right: auto; box-sizing: border-box; }

.amds-single #fl-box {
	display: flex; gap: 20px; align-items: center; margin-top: 12px; padding: 22px;
	background: var(--amds-surface); border: 1px solid var(--amds-line); border-radius: var(--amds-radius);
}
.amds-single #fl-box { text-align: left; justify-content: flex-start; }
.amds-single #fl-box .info { width: auto; flex: 1; min-width: 0; text-align: left; }
.amds-single #fl-box .fl-sharing { display: flex; gap: 14px; margin-top: 10px; }
.amds-single #fl-box .fl-sharing a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--amds-accent); outline: 0; border: 0; }
.amds-single #fl-box .fl-sharing a:hover { color: var(--amds-warm); }
.amds-single #fl-box .avatar img { border-radius: 50%; width: 72px; height: 72px; display: block; }
.amds-single #fl-box .info p { margin: 4px 0 0; font-size: .95rem; color: var(--amds-muted); }
.amds-single #fl-box .title { margin: 0; font-size: 1.1rem; }
.amds-single #fl-box .fl-meta { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amds-warm); }

.amds-single #fl-prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.amds-single #fl-prev-next .item { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--amds-surface); border: 1px solid var(--amds-line); border-radius: var(--amds-radius); width: auto; float: none; }
.amds-single #fl-prev-next .prev { flex-direction: row; text-align: left; }
.amds-single #fl-prev-next .next { flex-direction: row-reverse; text-align: right; }
.amds-single #fl-prev-next .content { flex: 1; min-width: 0; }
.amds-single #fl-prev-next img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--amds-radius-sm); display: block; }
.amds-single #fl-prev-next .fl-meta { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--amds-muted); }
.amds-single #fl-prev-next .title { margin: 2px 0 0; font-size: .95rem; line-height: 1.3; }
.amds-single #fl-prev-next .title a { color: var(--amds-ink); }

/* Articles liés : bandeau de 3 cartes sur toute la largeur */
.amds-single #fl-related {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
	max-width: var(--amds-wrap); margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--amds-line);
}
.amds-single #fl-related > .fl-widget-title { grid-column: 1 / -1; margin: 0; font-family: var(--amds-serif); font-size: 1.5rem; font-weight: 600; }
.amds-single #fl-related .item { display: flex; flex-direction: column; background: var(--amds-surface); border: 1px solid var(--amds-line); border-radius: var(--amds-radius); overflow: hidden; width: auto; float: none; margin: 0; }
.amds-single #fl-related .fl-picture { order: 0; margin: 0; border-radius: 0; max-width: none; aspect-ratio: 3 / 2; }
.amds-single #fl-related .fl-picture img { width: 100%; height: 100%; object-fit: cover; }
.amds-single #fl-related .content { padding: 14px 16px 16px; }
.amds-single #fl-related .title { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.3; }
.amds-single #fl-related .title a { color: var(--amds-ink); }
.amds-single #fl-related .title a:hover { color: var(--amds-accent); }
.amds-single #fl-related .post-meta { font-size: 12px !important; color: var(--amds-muted); margin: 0 !important; }

/* Commentaires */
.amds-single #comments { margin-top: 48px; }
.amds-single #comments .comment-respond input[type="text"],
.amds-single #comments .comment-respond input[type="email"],
.amds-single #comments .comment-respond input[type="url"],
.amds-single #comments .comment-respond textarea {
	width: 100%; box-sizing: border-box; padding: 12px 14px;
	border: 1px solid var(--amds-line); border-radius: var(--amds-radius-sm); background: #fff; font: inherit;
}
.amds-single #comments input[type="submit"],
.button, button.button, input[type="submit"] {
	padding: 12px 22px; border: 0; border-radius: 999px; background: var(--amds-accent); color: #fff;
	font: 600 15px var(--amds-font); cursor: pointer; transition: background .15s;
}
.amds-single #comments input[type="submit"]:hover,
.button:hover, input[type="submit"]:hover { background: var(--amds-accent-dark); color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.amds-grid { grid-template-columns: repeat(2, 1fr); }
	.amds-featured { grid-template-columns: 1fr; grid-template-rows: none; }
	.amds-featured .amds-card:first-child { grid-row: auto; min-height: 380px; }
	.amds-featured .amds-card:not(:first-child) .amds-card__media { width: 36%; }
	.amds-single #fl-related { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.amds-intro { padding: 32px 0 20px; }
	.amds-grid { grid-template-columns: 1fr; gap: 18px; }
	.amds-featured { gap: 18px; margin-bottom: 32px; }
	.amds-featured .amds-card:first-child { min-height: 340px; }
	.amds-featured .amds-card:first-child .amds-card__body { padding: 20px; }
	.amds-single .fl-post-content { font-size: 1.05rem; }
	.amds-single #fl-related { grid-template-columns: 1fr; }
	.amds-single #fl-prev-next { grid-template-columns: 1fr; }
	.amds-single #fl-box { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.amds-card, .amds-card__media img { transition: none; }
	.amds-card:hover { transform: none; }
	.amds-card:hover .amds-card__media img { transform: none; }
}



/* Commentaires : plus de cadres épais, un simple filet */
.amds-single #comments .fl-widget-title,
.amds-single #comments .widget-title { margin: 0 0 18px; padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--amds-line); background: none; font: 600 1.4rem var(--amds-serif); }
.amds-single #comments #respond,
.amds-single #comments .comment-respond,
.amds-single #comments form { border: 0; box-shadow: none; padding: 0; background: none; }
.amds-single #comments .comment-reply-title { font: 600 1.15rem var(--amds-serif); margin: 0 0 12px; }

.amds-byline .amds-comment-link { color: var(--amds-accent); font-weight: 600; }
.amds-byline .amds-comment-link:hover { color: var(--amds-warm); }

/* Partage : liens texte */
.amds-single .fl-sharing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.amds-single .fl-sharing .fl-meta { margin: 0 4px 0 0; }
.amds-single .fl-sharing a { padding: 5px 14px; border: 1px solid var(--amds-line); border-radius: 999px; background: var(--amds-surface); color: var(--amds-ink); font-size: 13px; font-weight: 500; }
.amds-single .fl-sharing a:hover { border-color: var(--amds-accent); color: var(--amds-accent); }

/* Pagination : flèches en CSS (plus de police d'icônes) */
.fl-pagination i.fa { display: none; }
.fl-pagination .prev.page-numbers::before { content: "9"; font-size: 18px; line-height: 1; }
.fl-pagination .next.page-numbers::after { content: "A"; font-size: 18px; line-height: 1; }
.site-header__toggle svg, .site-search summary svg { display: block; }

.amds-card__excerpt { margin-bottom: 2px; }


/* ==========================================================================
   Article + barre latérale (à gauche sur ordinateur, sous l'article ailleurs)
   ========================================================================== */
.amds-single-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.amds-sidebar { min-width: 0; }

@media (min-width: 1100px) {
	.amds-single-layout { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main side"; gap: 48px; }
	.amds-single-layout > .amds-sidebar { grid-area: side; padding-top: 36px; }
	.amds-single-layout > #fl-blogposts { grid-area: main; }

	/* Colonne de l'article : alignée à gauche, plus de centrage sur 740 px */
	.amds-single article.fl-article { align-items: stretch; }
	.amds-single .amds-article-head,
	.amds-single .amds-meta,
	.amds-single .fl-post-content,
	.amds-single .fl-article-footer,
	.amds-single #fl-box,
	.amds-single #fl-prev-next,
	.amds-single #comments { max-width: 760px; margin-left: 0; margin-right: auto; }
	.amds-single .fl-picture,
	.amds-single .fl-gallery-slider,
	.amds-single .fl-video,
	.amds-single .fl-audio { max-width: none; }
	.amds-single #fl-related { max-width: none; }
}

/* Widgets de la barre latérale */
.amds-sidebar .fl-widget { margin: 0 0 24px; padding: 20px; background: var(--amds-surface); border: 1px solid var(--amds-line); border-radius: var(--amds-radius); }
.amds-sidebar .fl-widget-title,
.amds-sidebar .fl-widget .fl-widget-title { margin: 0 0 14px; padding: 0; border: 0; background: none; font: 600 1.15rem var(--amds-serif); color: var(--amds-ink); }
.amds-sidebar p.fl-widget-title { margin: 0 0 14px; }
.amds-sidebar .fl-widget .item { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 0; border: 0; width: auto; float: none; }
.amds-sidebar .fl-widget .item:last-child { margin-bottom: 0; }
.amds-sidebar .fl-widget .fl-picture { flex: none; width: 76px; height: 76px; margin: 0; border-radius: var(--amds-radius-sm); overflow: hidden; }
.amds-sidebar .fl-widget .fl-picture img { display: block; width: 76px; height: 76px; object-fit: cover; }
.amds-sidebar .fl-widget .content { min-width: 0; }
.amds-sidebar .fl-widget .title { margin: 0; font: 600 .95rem/1.3 var(--amds-serif); }
.amds-sidebar .fl-widget .title a { color: var(--amds-ink); }
.amds-sidebar .fl-widget .title a:hover { color: var(--amds-accent); }
.amds-sidebar .fl-widget .fl-meta { display: none; }

/* Emplacements publicitaires : pas de cadre, centrés, jamais plus larges que la colonne */
.amds-sidebar .widget_custom_html,
.amds-sidebar .advads_ad_widget { padding: 0; background: none; border: 0; text-align: center; overflow: hidden; }
.amds-sidebar ins.adsbygoogle { max-width: 100%; }

/* Recherche, nuage de tags */
.amds-sidebar .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.amds-sidebar .wp-block-search input[type="search"] { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--amds-line); border-radius: 999px; font: 15px var(--amds-font); background: #fff; }
.amds-sidebar .wp-block-search button { padding: 0 16px; border-radius: 999px; }
.amds-sidebar .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.amds-sidebar .tagcloud a { font-size: 13px !important; padding: 3px 11px; border: 1px solid var(--amds-line); border-radius: 999px; color: var(--amds-muted); background: var(--amds-surface); }
.amds-sidebar .tagcloud a:hover { border-color: var(--amds-accent); color: var(--amds-accent); }

/* Barre latérale : finitions (surcharge des styles du thème parent) */
.amds-sidebar .fl-widget h4.fl-widget-title,
.amds-sidebar .fl-widget .fl-widget-title { font-family: var(--amds-serif); font-weight: 600; font-size: 1.15rem; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.amds-sidebar .fl-widget .item { flex-direction: row; }
.amds-sidebar .fl-widget .item .fl-picture { order: 0; border: 0; background: var(--amds-accent-soft); border-radius: var(--amds-radius-sm); }
.amds-sidebar .fl-widget .item .fl-picture img { border: 0; border-radius: var(--amds-radius-sm); }
.amds-sidebar .fl-widget .item .content { order: 1; flex: 1; text-align: left; }
.amds-sidebar .wp-block-search input[type="search"] { width: 100%; }
.amds-sidebar .tagcloud { max-height: 210px; overflow-y: auto; padding-right: 4px; }

.amds-sidebar .fl-widget-title, .amds-sidebar .fl-widget-title span { font-family: var(--amds-serif) !important; font-weight: 600 !important; font-size: 1.15rem !important; color: var(--amds-ink) !important; }

/* Widgets AMDS */
.amds-sidebar .amds-countries.tagcloud { max-height: none; overflow: visible; }
.amds-sidebar .amds-more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--amds-accent); }
.amds-sidebar .amds-more:hover { color: var(--amds-warm); }

/* Sommaire dans la barre latérale (widget Easy Table of Contents) */
.amds-sidebar .ez-toc #ez-toc-widget-container { width: auto; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.amds-sidebar .ez-toc .widget-title { margin: 0 0 12px; padding: 0; border: 0; font: 600 1.15rem var(--amds-serif); color: var(--amds-ink); }
.amds-sidebar .ez-toc .widget-title > span { display: block; }
.amds-sidebar .ez-toc .ez-toc-title { font: 600 1.15rem var(--amds-serif) !important; color: var(--amds-ink); }
.amds-sidebar .ez-toc .ez-toc-title-toggle { display: block; }
.amds-sidebar .ez-toc .ez-toc-btn { display: none; }
.amds-sidebar .ez-toc nav { max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.amds-sidebar .ez-toc ul.ez-toc-list { margin: 0; padding: 0; list-style: none; }
.amds-sidebar .ez-toc ul.ez-toc-list ul { margin: 2px 0 2px 12px; padding: 0; list-style: none; }
.amds-sidebar .ez-toc ul.ez-toc-list li { margin: 0; padding: 4px 0 4px 12px; border-left: 2px solid var(--amds-line); background: none !important; font-size: 14px; line-height: 1.4; text-align: left; }
.amds-sidebar .ez-toc ul.ez-toc-list li a { display: inline; padding: 0; color: var(--amds-ink); font-size: 14px !important; font-weight: 500; line-height: 1.4; text-decoration: none; }
.amds-sidebar .ez-toc ul.ez-toc-list li a::before { font-size: 13px; color: var(--amds-warm); }
.amds-sidebar .ez-toc ul.ez-toc-list li a:hover { color: var(--amds-accent); }
.amds-sidebar .ez-toc ul.ez-toc-list li.active { border-left-color: var(--amds-accent); }
.amds-sidebar .ez-toc ul.ez-toc-list li.active > a { color: var(--amds-accent); font-weight: 600; }

@media (min-width: 1100px) {
	/* Sommaire en dernier dans la barre latérale : il suit la lecture */
	.amds-sidebar > .ez-toc:last-child { position: sticky; top: 88px; }
	/* Sommaire présent dans la barre latérale : on retire celui du haut de l'article (ordinateur seulement) */
	.amds-single-layout:has(.amds-sidebar .ez-toc) .fl-post-content #ez-toc-container { display: none; }
}

.amds-sidebar .ez-toc ul.ez-toc-list ul, .amds-sidebar .ez-toc nav { background: none !important; }
