/*
Theme Name: Ass'Hum
Description: Habillage du site d'Ass'Hum (thème enfant de Balanced Blog). Pour revenir en arrière, réactiver « Balanced Blog ».
Template: balanced-blog
Version: 1.0
Text Domain: asshum
*/

/* ---------- Base ---------- */
body { margin: 0; font-family: Nunito, system-ui, sans-serif; font-weight: 400; color: #2B2320; background: #FBF6EC; font-size: 18px; line-height: 1.65; }
a, a:active, a:focus { color: #8F3A22; }
a:hover { color: #2F5D50; }
h1, h2, h3, h4, h5, h6 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.2; color: #2B2320; }
.ah-hand { font-family: Caveat, cursive; font-weight: 700; line-height: 1.1; }
.ah-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.ah-green { color: #2F5D50; } .ah-terra { color: #B4472B; } .ah-ochre { color: #8A6410; }
.ah-center { text-align: center; }
.ah-small { font-size: 16px; }
.ah-skip { position: absolute; left: -9999px; }
.ah-skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }

.ah-btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; line-height: 1.3; }
.ah-btn-main, .ah-btn-main:hover, .ah-btn-main:focus, .ah-btn-main:active { background: #B4472B; color: #fff; text-decoration: none; }
.ah-btn-main:hover { background: #8F3A22; }
.ah-btn-soft, .ah-btn-soft:hover, .ah-btn-soft:focus { background: #fff; color: #2B2320; border: 2px solid #2B2320; padding: 11px 24px; text-decoration: none; }
.ah-btn-small { padding: 9px 18px; font-size: 16px; }
.ah-more { font-weight: 700; }

/* ---------- En-tête : logo bien visible sur toutes les pages ---------- */
.ah-header { background: #FBF6EC; }
.ah-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 28px; padding-top: 22px; padding-bottom: 14px; }
.ah-logo img { display: block; width: min(432px, 78vw); height: auto; }
.ah-tagline { margin: 0; font-size: 34px; color: #B4472B; transform: rotate(-2deg); text-align: center; }
.ah-tagline span { display: block; font-family: Nunito, sans-serif; font-weight: 600; font-size: 15px; color: #2B2320; letter-spacing: .02em; }
.ah-navbar { border-top: 2px dashed #C9A27A; border-bottom: 2px dashed #C9A27A; }
.ah-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 18px; padding: 6px 0; }
.ah-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
.ah-menu li { position: relative; margin: 0; }
.ah-menu a { display: block; padding: 11px 4px; color: #2B2320; font-weight: 600; font-size: 16px; text-decoration: none; }
.ah-menu a:hover, .ah-menu .current-menu-item > a, .ah-menu .current-menu-ancestor > a { color: #B4472B; }
.ah-menu .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: -12px; top: 100%; min-width: 250px; background: #fff; border: 2px dashed #C9A27A; border-radius: 16px; box-shadow: 0 6px 0 #F0E2CC; display: none; z-index: 50; }
.ah-menu li:hover > .sub-menu, .ah-menu li:focus-within > .sub-menu { display: block; }
.ah-menu .sub-menu a { padding: 8px 16px; font-weight: 400; }
.ah-burger { display: none; width: 100%; margin: 8px 0; padding: 11px; font: inherit; font-weight: 700; background: #fff; color: #2B2320; border: 2px solid #2B2320; border-radius: 999px; }
@media (max-width: 760px) {
	.ah-burger { display: block; }
	.ah-nav { display: none; flex-direction: column; align-items: stretch; padding-bottom: 14px; }
	.ah-nav.is-open { display: flex; }
	.ah-menu { flex-direction: column; }
	.ah-menu a { padding: 12px 4px; border-bottom: 1px dashed #C9A27A; }
	.ah-menu .sub-menu { display: block; position: static; border: 0; box-shadow: none; background: transparent; padding: 0 0 0 16px; min-width: 0; }
	.ah-tagline { font-size: 28px; }
}

/* ---------- Pages intérieures (gabarits du thème parent) ---------- */
.main-container { background: transparent; padding-top: 34px; padding-bottom: 50px; }
.page-area { background: transparent; }
.single-wrap, .news-item-content, .postauthor-container, .comments-template { background: #fff; border: 2px dashed #C9A27A; border-radius: 22px; box-shadow: 0 6px 0 #F0E2CC; padding: 30px 32px; }
.news-item { margin-bottom: 28px; }
h1.single-title { font-size: 38px; margin: 0 0 18px; text-align: left; }
.entry-content, .post-excerpt { font-size: 18px; }
.entry-content img { border-radius: 12px; height: auto; }
.entry-content h2 { font-size: 28px; margin-top: 1.4em; }
.entry-content h3 { font-size: 22px; }
.news-item h2, .news-item h2 a { font-family: Fraunces, Georgia, serif; color: #2B2320; }
.news-item h2:after { background: #E3A72F; }
#sidebar .widget { background: #F3E6D3; border: 0; border-radius: 22px; padding: 22px 24px; margin-bottom: 24px; font-size: 16px; box-shadow: none; }
.widget-title { background: transparent; border: 0; padding: 0; margin: 0 0 10px; text-align: left; }
.widget-title:before, .widget-title:after { display: none; }
.widget-title h3 { font-family: Caveat, cursive; font-weight: 700; font-size: 28px; color: #2F5D50; text-transform: none; letter-spacing: 0; padding: 0; margin: 0; background: transparent; }
.widget ul li { border-color: #E0CBA8; }
input[type="submit"], .wpcf7-submit, .read-more-button a, a.comment-reply-link { background: #B4472B; color: #fff; border: 0; border-radius: 999px; padding: 11px 24px; font-weight: 700; }
input[type="submit"]:hover, .wpcf7-submit:hover, .read-more-button a:hover { background: #8F3A22; color: #fff; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea { border: 2px solid #C9A27A; border-radius: 12px; padding: 10px 12px; background: #fff; max-width: 100%; }
nav.navigation.pagination .current, nav.navigation.pagination .nav-links a:hover { color: #B4472B; }
#content-footer-section { background: #F3E6D3; }

/* ---------- Accueil ---------- */
.ah-home h1, .ah-home h2, .ah-home h3, .ah-home p { margin: 0; }
.ah-section { padding: 66px 0 10px; }
.ah-section > .ah-wrap, .ah-band > .ah-wrap { display: flex; flex-direction: column; gap: 30px; }
.ah-head { display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.ah-head.ah-center { align-items: center; align-self: center; }
.ah-head .ah-hand { font-size: 30px; }
.ah-home h2 { font-size: clamp(30px, 3.6vw, 40px); }

.ah-hero { background-size: cover; background-position: center 30%; border-radius: 0 0 48px 48px; }
.ah-hero-in { display: flex; justify-content: flex-end; padding-top: 80px; padding-bottom: 80px; }
.ah-hero-card { background: #FBF6EC; border-radius: 26px; padding: 38px 40px; max-width: 540px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; transform: rotate(-1deg); box-shadow: 0 10px 30px rgba(43,35,32,.18); }
.ah-hero-hand { font-size: 38px; color: #B4472B; }
.ah-hero-card h1 { font-size: clamp(34px, 4.4vw, 50px); }
.ah-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.ah-cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; }
.ah-cols4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.ah-cols4 > div { display: flex; flex-direction: column; gap: 8px; }
.ah-cols4 h3 { font-size: 21px; } .ah-cols4 p { font-size: 16px; }
.ah-num { font-size: 44px; }
.ah-stitch { background: #fff; border: 2px dashed #C9A27A; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 6px 0 #F0E2CC; transition: transform .2s; }
.ah-stitch img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; display: block; }
.ah-stitch .ah-hand { font-size: 26px; }
.ah-stitch h3 { font-size: 25px; }
.ah-stitch p { font-size: 17px; flex: 1; }
.ah-stitch .ah-btn { align-self: flex-start; }
.ah-tilt-a { transform: rotate(-.8deg); } .ah-tilt-b { transform: rotate(.6deg); } .ah-tilt-c { transform: rotate(-.4deg); }
.ah-stitch:hover { transform: rotate(0) translateY(-4px); }

/* Carte dessinée */
.ah-map { position: relative; }
.ah-map-canvas { position: relative; }
.ah-map-canvas img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.ah-pin { position: absolute; width: 9%; min-width: 44px; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); background: transparent; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }
.ah-pin:hover { background: transparent; }
.ah-ring { position: absolute; inset: -9%; border: 3px dashed transparent; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%; }
.ah-pin:hover .ah-ring, .ah-pin:focus-visible .ah-ring { border-color: #C9A27A; }
.ah-pin.is-on .ah-ring { border-color: #2B2320; border-width: 4px; box-shadow: 0 0 0 7px rgba(227,167,47,.45); animation: ah-turn 14s linear infinite; }
.ah-pin:focus { outline: none; }
.ah-pin:focus-visible { outline: 3px solid #2F5D50; outline-offset: 6px; }
@keyframes ah-turn { to { transform: rotate(360deg); } }
.ah-pin-label { position: absolute; white-space: nowrap; font-size: clamp(17px, 2.3vw, 27px); color: #2B2320; text-shadow: 0 0 4px #FBF6EC, 0 0 4px #FBF6EC, 0 0 8px #FBF6EC, 0 0 8px #FBF6EC; pointer-events: none; }
.ah-pin.is-on .ah-pin-label { color: #B4472B; }
.ah-lab-r .ah-pin-label { left: 112%; top: 50%; transform: translateY(-50%) rotate(-3deg); }
.ah-lab-t .ah-pin-label { left: 50%; bottom: 108%; transform: translateX(-50%) rotate(-3deg); }
.ah-lab-br .ah-pin-label { left: 60%; top: 104%; transform: rotate(-3deg); }
.ah-lab-bl .ah-pin-label { right: 60%; top: 104%; transform: rotate(3deg); }
.ah-note { display: none; background: #FFFDF7; border-radius: 6px 22px 22px 22px; padding: 26px 26px 22px; box-shadow: 0 8px 22px rgba(43,35,32,.16); flex-direction: column; gap: 8px; position: relative; }
.ah-note.is-on { display: flex; animation: ah-pop .25s ease-out; }
.ah-note:before { content: ""; position: absolute; top: -13px; left: 34px; width: 96px; height: 26px; background: rgba(227,167,47,.6); transform: rotate(-4deg); }
.ah-note-when { font-size: 26px; }
.ah-note h3 { font-size: 24px; }
.ah-note p { font-size: 16px; }
@keyframes ah-pop { from { opacity: 0; transform: translateY(8px) rotate(-1deg); } }
@media (min-width: 900px) {
	.ah-notes { position: absolute; left: 0; top: 3%; width: 35%; }
	.ah-note { transform: rotate(-1.5deg); }
}
@media (max-width: 899px) { .ah-notes { margin-top: 20px; } }
@media (prefers-reduced-motion: reduce) { .ah-pin.is-on .ah-ring, .ah-note.is-on { animation: none; } .ah-stitch { transition: none; } }

/* En ce moment + nouvelles */
.ah-band { background: #F3E6D3; border-radius: 48px; padding: 64px 0; margin-top: 66px; }
.ah-band > .ah-wrap.ah-two { flex-direction: row; flex-wrap: wrap; gap: 48px; }
.ah-two > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ah-two .ah-hand { font-size: 28px; }
.ah-now-card { background: #fff; border-radius: 20px; padding: 24px 26px; font-size: 17px; }
.ah-now-card p { margin: 0 0 12px; }
.ah-now-card > :last-child { margin-bottom: 0; }
.ah-now-card img { max-width: 100%; height: auto; border-radius: 12px; }
.ah-news-item { display: block; padding: 14px 0; border-bottom: 2px dashed #C9A27A; font-weight: 600; text-decoration: none; }
.ah-news-item span { display: block; font-weight: 400; font-size: 15px; color: #5A4D46; }

.ah-sunset { background-size: cover; background-position: center; border-radius: 32px; padding: 64px 40px; color: #fff; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; margin-bottom: 66px; }
.ah-quote { font-size: clamp(28px, 3.4vw, 40px); max-width: 780px; }
.ah-sunset-sub { max-width: 640px; font-size: 17px; }
.ah-sunset .ah-btn-soft { border-color: #fff; }

/* ---------- Pied de page ---------- */
.ah-footer { background: #2F5D50; color: #fff; border-radius: 48px 48px 0 0; font-size: 16px; }
.ah-footer-in { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 44px; padding-bottom: 44px; }
.ah-footer a, .ah-footer a:hover, .ah-footer a:focus { color: #fff; text-decoration: underline; }
.ah-footer-name { font-size: 30px; }

/* Image de fond du site conservée, adoucie par un voile couleur papier */
body:before { content: ""; position: fixed; inset: 0; background: rgba(251,246,236,.9); z-index: -1; pointer-events: none; }
.ah-header { background: rgba(251,246,236,.6); }

/* Blocs vides masqués, colonne latérale plus aérée */
.comments-template:not(:has(*)), #sidebar .widget:has(> p:only-child:empty) { display: none; }
#sidebar .widget { padding: 20px 20px; }
#sidebar .widget h2, #sidebar .widget h3 { font-family: Caveat, cursive; font-weight: 700; font-size: 28px; color: #2F5D50; margin: 0 0 8px; text-transform: none; }
#sidebar .widget .wp-block-group { padding: 0; margin: 0; }
#sidebar .widget img { max-width: 100%; height: auto; border-radius: 12px; }
#sidebar .widget ul { padding-left: 0; list-style: none; margin: 0; }
@media (min-width: 992px) { article.col-md-9 { width: 70%; } #sidebar.col-md-3 { width: 30%; } }

/* Ajustements : logo plus présent, carte plus petite avec sa note à côté, lecture plus confortable */
body:before { background: rgba(251,246,236,.94); }
.ah-logo img { width: min(540px, 84vw); }
.ah-brand { padding-top: 28px; padding-bottom: 18px; }
.ah-map { display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: center; }
.ah-map-canvas { flex: 1 1 420px; max-width: 620px; min-width: 0; }
.ah-notes { position: static; width: auto; flex: 1 1 300px; margin-top: 0; min-width: 0; }
.ah-pin-label { font-size: clamp(16px, 1.7vw, 21px); }
.ah-note p { font-size: 17px; }
.ah-cols4 p, .ah-small, .ah-footer { font-size: 17px; }
.ah-menu a { font-size: 17px; }

/* Pied de page doux : sable, texte foncé, liseré cousu */
.ah-footer { background: #F3E6D3; color: #2B2320; border-radius: 48px 48px 0 0; border-top: 2px dashed #C9A27A; }
.ah-footer a, .ah-footer a:focus { color: #8F3A22; text-decoration: none; font-weight: 600; }
.ah-footer a:hover { color: #2B2320; text-decoration: underline; }
.ah-footer-name { color: #B4472B; }

/* ---------- Menu : sans filets gris ni cadres noirs, ombre plus légère ---------- */
.ah-nav a, .ah-menu a, .ah-menu .sub-menu a { border-bottom: 0; }
.ah-header a:focus, .ah-header button:focus, .ah-btn:focus { outline: none; box-shadow: none; }
.ah-header a:focus-visible, .ah-header button:focus-visible, .ah-btn:focus-visible { outline: 2px dashed #C9A27A; outline-offset: 3px; border-radius: 8px; }
.ah-menu .sub-menu { border: 1.5px dashed rgba(201,162,122,.7); box-shadow: 0 8px 22px rgba(120,84,40,.12); background: rgba(255,253,247,.97); padding: 10px 0; }
.ah-menu .sub-menu a { padding: 9px 18px; border-radius: 0; }
.ah-menu .sub-menu a:hover { background: rgba(243,230,211,.6); }
.ah-navbar { border-top: 2px dashed rgba(201,162,122,.7); border-bottom: 2px dashed rgba(201,162,122,.7); }
.ah-stitch, .single-wrap, .news-item-content, .postauthor-container, .comments-template { box-shadow: 0 6px 0 rgba(224,200,160,.45); }
@media (max-width: 760px) { .ah-menu > li > a { border-bottom: 1px dashed rgba(201,162,122,.6); } .ah-menu .sub-menu { box-shadow: none; border: 0; background: transparent; } }

/* ---------- Pages intérieures : titres, textes, images, alignements ---------- */
.single-wrap { padding: 40px 46px 44px; }
@media (max-width: 760px) { .single-wrap { padding: 24px 20px 28px; } h1.single-title { font-size: 30px; } }
h1.single-title { font-size: 40px; line-height: 1.15; margin: 0 0 26px; padding-bottom: 18px; text-align: left; position: relative; }
h1.single-title:after { content: ""; position: absolute; left: 0; bottom: 0; width: 84px; height: 5px; border-radius: 5px; background: #E3A72F; }
.entry-content { font-size: 18px; line-height: 1.75; color: #2B2320; }
.entry-content:after { content: ""; display: table; clear: both; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content span, .entry-content .font_8, .entry-content .color_20 { font-family: inherit; color: inherit; }
.entry-content h1, .entry-content h2 { font-size: 29px; margin: 1.6em 0 .55em; }
.entry-content h3 { font-size: 24px; margin: 1.5em 0 .5em; }
.entry-content h4 { font-size: 20px; line-height: 1.4; margin: 1.3em 0 .5em; }
.entry-content h5, .entry-content h6 { font-family: Nunito, sans-serif; font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: #2F5D50; margin: 1.4em 0 .4em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(143,58,34,.4); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content strong, .entry-content b { font-weight: 700; }
.entry-content ul, .entry-content ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content hr { border: 0; border-top: 2px dashed #E0CBA8; margin: 2em 0; }
.entry-content blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 5px solid #E3A72F; font-family: Fraunces, Georgia, serif; font-size: 21px; line-height: 1.5; color: #2B2320; }
.entry-content img { max-width: 100%; height: auto; border-radius: 14px; }
.entry-content img.alignleft, .entry-content .alignleft { float: left; margin: 6px 28px 16px 0; }
.entry-content img.alignright, .entry-content .alignright { float: right; margin: 6px 0 16px 28px; }
.entry-content img.aligncenter, .entry-content .aligncenter { display: block; margin: 1.4em auto; float: none; }
.entry-content img.alignnone { margin: .6em 0 1em; }
.entry-content img[width="100"], .entry-content img[width="150"], .entry-content img[width="80"] { border-radius: 0; }
.entry-content figure { margin: 1.6em 0; max-width: 100%; }
.entry-content figure.alignleft, .entry-content figure.alignright { max-width: 46%; }
.entry-content figcaption, .entry-content .wp-caption-text { font-size: 15px; line-height: 1.45; color: #5A4D46; text-align: center; margin-top: 8px; font-style: italic; }
.entry-content .wp-caption { background: transparent; border: 0; padding: 0; max-width: 100%; }
.entry-content .wp-block-gallery, .entry-content .gallery { gap: 14px; margin: 1.6em 0; }
.entry-content iframe, .entry-content video { max-width: 100%; border-radius: 14px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px dashed #E0CBA8; text-align: left; vertical-align: top; }
.entry-content th { font-family: Fraunces, Georgia, serif; font-weight: 600; background: rgba(243,230,211,.6); }
.entry-content .wp-block-button__link, .entry-content .wp-block-file__button { background: #B4472B; color: #fff; border-radius: 999px; padding: 11px 24px; font-weight: 700; text-decoration: none; }
.entry-content .wp-block-file { background: rgba(243,230,211,.5); border-radius: 14px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
@media (max-width: 600px) {
	.entry-content img.alignleft, .entry-content img.alignright, .entry-content .alignleft, .entry-content .alignright { float: none; display: block; margin: 1em auto; max-width: 100%; }
	.entry-content { font-size: 17px; }
}
/* Listes d'articles */
.news-item h2 { font-size: 26px; line-height: 1.25; }
.news-thumb img, .featured-thumbnail img { border-radius: 14px; }
.post-excerpt { font-size: 17px; line-height: 1.7; }
header.archive-page-header h1, .page-header h1 { font-size: 34px; }
#sidebar .widget { line-height: 1.55; }
#sidebar .widget a { text-decoration: none; }

/* Lien Facebook */
.ah-fb, .ah-footer a.ah-fb { display: inline-flex; align-items: center; gap: 8px; color: #B4472B; font-weight: 700; font-size: 16px; text-decoration: none; padding: 6px 4px; }
.ah-fb:hover, .ah-fb:focus { color: #2F5D50; text-decoration: none; }
.ah-fb-ico { flex: none; }
.ah-nav .ah-fb { margin-left: 6px; }
.ah-footer .ah-fb { padding-left: 0; }

/* Facebook sous la devise, discret */
.ah-brand-side { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: -10px; }
.ah-brand-side .ah-fb { font-size: 14px; font-weight: 600; padding: 2px 4px; gap: 6px; margin: 0; }

/* ---------- Mises en page par page (contenu inchangé) ---------- */
.entry-content th { background: transparent; font-family: inherit; font-weight: 400; }
.entry-content thead th { font-family: Fraunces, Georgia, serif; font-weight: 600; background: rgba(243,230,211,.6); }
.ah-partners h1.single-title { padding-right: 78px; min-height: 76px; }
.ah-partners h1.single-title:before { content: ""; position: absolute; right: 0; top: -4px; width: 62px; height: 62px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23B4472B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='24' cy='24' r='22.5' stroke='%23E3A72F' stroke-width='1.6' stroke-dasharray='3 4'/><circle cx='19' cy='24' r='8'/><circle cx='29' cy='24' r='8'/></svg>") center / contain no-repeat; }
.ah-pg-comment-nous-soutenir h1.single-title { padding-right: 78px; min-height: 76px; }
.ah-pg-comment-nous-soutenir h1.single-title:before { content: ""; position: absolute; right: 0; top: -4px; width: 62px; height: 62px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23B4472B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='24' cy='24' r='22.5' stroke='%23E3A72F' stroke-width='1.6' stroke-dasharray='3 4'/><path d='M24 35C12 27 11 20 15 16c3.500-3 8-1 9 3 1-4 5.500-6 9-3 4 4 3 11-9 19z'/></svg>") center / contain no-repeat; }
.ah-pg-presse h1.single-title { padding-right: 78px; min-height: 76px; }
.ah-pg-presse h1.single-title:before { content: ""; position: absolute; right: 0; top: -4px; width: 62px; height: 62px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23B4472B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='24' cy='24' r='22.5' stroke='%23E3A72F' stroke-width='1.6' stroke-dasharray='3 4'/><path d='M13 21v6h4l12 6V15l-12 6z'/><path d='M33 20c2 2 2 6 0 8'/><path d='M17 27l2 7'/></svg>") center / contain no-repeat; }
.ah-pg-presentation-dasshum h1.single-title { padding-right: 78px; min-height: 76px; }
.ah-pg-presentation-dasshum h1.single-title:before { content: ""; position: absolute; right: 0; top: -4px; width: 62px; height: 62px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23B4472B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='24' cy='24' r='22.5' stroke='%23E3A72F' stroke-width='1.6' stroke-dasharray='3 4'/><path d='M16 12h12l6 6v18H16z'/><path d='M28 12v6h6'/><path d='M20 24h10M20 29h10'/></svg>") center / contain no-repeat; }
.ah-pg-contact h1.single-title { padding-right: 78px; min-height: 76px; }
.ah-pg-contact h1.single-title:before { content: ""; position: absolute; right: 0; top: -4px; width: 62px; height: 62px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23B4472B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='24' cy='24' r='22.5' stroke='%23E3A72F' stroke-width='1.6' stroke-dasharray='3 4'/><rect x='12' y='16' width='24' height='17' rx='3'/><path d='M13 18l11 8 11-8'/></svg>") center / contain no-repeat; }
.ah-pg-notre-demarche h1.single-title { padding-right: 78px; min-height: 76px; }
.ah-pg-notre-demarche h1.single-title:before { content: ""; position: absolute; right: 0; top: -4px; width: 62px; height: 62px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23B4472B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='24' cy='24' r='22.5' stroke='%23E3A72F' stroke-width='1.6' stroke-dasharray='3 4'/><circle cx='24' cy='24' r='12'/><path d='M29 19l-3 7-7 3 3-7z'/></svg>") center / contain no-repeat; }

/* Contact : carte simple et centrée, sans fond */
.ah-pg-contact .entry-content table { margin: 0; }
.ah-pg-contact .entry-content th, .ah-pg-contact .entry-content td { border: 0; padding: 0; text-align: center; background: transparent; }
.ah-pg-contact .entry-content p { margin: 0 0 .35em; }
.ah-pg-contact .entry-content img { border-radius: 0; background: transparent; margin: 0 auto 14px; display: block; mix-blend-mode: multiply; }

/* Soutenir */
.ah-pg-comment-nous-soutenir .entry-content img.wp-image-851 { display: none; }
.ah-helloasso { margin-top: 34px; padding-top: 26px; border-top: 2px dashed #E0CBA8; }
.ah-helloasso .ah-hand { font-size: 30px; margin-bottom: 12px; }
.ah-helloasso iframe { width: 100%; height: 780px; border: 0; border-radius: 16px; background: #fff; }

/* Presse : logos en grille, tous de la même taille */
.ah-pg-presse .entry-content figure.wp-block-image { display: inline-flex; align-items: center; justify-content: center; width: 168px; height: 124px; margin: 8px 10px 8px 0; padding: 16px; background: #fff; border: 1.5px dashed #E0CBA8; border-radius: 16px; vertical-align: middle; }
.ah-pg-presse .entry-content figure.wp-block-image img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 0; }

/* Partenaires et soutiens : logo, nom, texte, toujours alignés de la même façon */
.ah-partners .entry-content > .wp-block-image:first-child,
.ah-partners .entry-content img[src*="5c4a86_4d0ed99c"],
.ah-partners .entry-content img[src*="5c4a86_1f8122d2"],
.ah-partners .entry-content h1 img.alignleft { display: none; }
.ah-partners .entry-content h1 { margin: 0; }
.ah-partners .entry-content img.alignleft { float: left; width: 132px; height: 96px; object-fit: contain; background: #fff; padding: 8px; border: 1.5px dashed #E0CBA8; border-radius: 14px; margin: 0 26px 12px 0; }
.ah-partners .entry-content h5 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 22px; line-height: 1.3; letter-spacing: 0; text-transform: none; color: #2B2320; margin: 0 0 6px; }
.ah-partners .entry-content h5 a, .ah-partners .entry-content p.font_5 > a { text-decoration: none; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 22px; }
.ah-partners .entry-content p, .ah-partners .entry-content h5 { overflow: hidden; }
.ah-partners .entry-content :is(p, h5):has(img.alignleft) { overflow: visible; clear: both; padding-top: 26px; margin-top: 8px; border-top: 1.5px dashed #E0CBA8; }
.ah-partners .entry-content hr { clear: both; display: none; }
.ah-partners .entry-content p em { color: #5A4D46; }
.ah-partners .entry-content:after { clear: both; }
@media (max-width: 600px) { .ah-partners .entry-content img.alignleft { width: 96px; height: 72px; margin-right: 16px; display: inline-block; } }

/* Notre démarche : une vignette à gauche, le texte à droite */
.ah-pg-notre-demarche .entry-content .c1inlineContent { clear: both; padding-top: 24px; }
.ah-pg-notre-demarche .entry-content .wp1 { float: left; width: 120px; margin: 4px 26px 12px 0; }
.ah-pg-notre-demarche .entry-content .wp1 img { width: 100%; height: auto; margin: 0; display: block; }
.ah-pg-notre-demarche .entry-content .txtNew { overflow: hidden; }
.ah-pg-notre-demarche .entry-content .txtNew img { display: block; width: 120px; height: auto; margin: 26px 0 10px; }
.ah-pg-notre-demarche .entry-content p:has(> em) { font-family: Fraunces, Georgia, serif; font-size: 21px; line-height: 1.4; }
.ah-pg-notre-demarche .entry-content p:has(> em) em { font-style: normal; }
@media (max-width: 600px) { .ah-pg-notre-demarche .entry-content .wp1 { float: none; margin: 0 0 10px; } }

.ah-brand-side .ah-fb { margin-top: 9px; }

.ah-brand-side { margin-top: -2px; }

/* Notre démarche : chaque principe présenté à l'identique (vignette, titre, points) */
.ah-pg-notre-demarche .entry-content .ah-lead { font-family: Fraunces, Georgia, serif; font-size: 21px; line-height: 1.5; margin: 0 0 30px; }
.ah-steps { display: flex; flex-direction: column; }
.ah-step { display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: start; padding: 28px 0; border-top: 1.5px dashed #E0CBA8; }
.ah-step-img { width: 132px; height: 132px; background: #fff; border: 1.5px dashed #E0CBA8; border-radius: 18px; padding: 12px; display: flex; align-items: center; justify-content: center; }
.ah-pg-notre-demarche .entry-content .ah-step-img img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; margin: 0; border-radius: 8px; float: none; }
.ah-step-img svg { width: 64px; height: 64px; }
.ah-pg-notre-demarche .entry-content .ah-step-txt h2 { font-size: 23px; line-height: 1.3; margin: 2px 0 12px; }
.ah-pg-notre-demarche .entry-content .ah-step-txt ul { list-style: none; margin: 0; padding: 0; }
.ah-step-txt li { position: relative; padding-left: 22px; margin: 0 0 8px; }
.ah-step-txt li:before { content: ""; position: absolute; left: 2px; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: #E3A72F; }
@media (max-width: 600px) { .ah-step { grid-template-columns: 84px 1fr; gap: 16px; } .ah-step-img { width: 84px; height: 84px; padding: 8px; } }

/* --- 5 déc. (soir) : bloc slogan + Facebook un peu plus bas --- */
.ah-brand-side { margin-top: 8px; }

/* Contact : « Nous suivre sur Facebook » dans le même esprit que l'en-tête (l'image d'origine est masquée, le lien reste). */
.ah-pg-contact .entry-content a[href*="facebook.com"] { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 4px 6px; color: #B4472B; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; background: none; box-shadow: none; }
.ah-pg-contact .entry-content a[href*="facebook.com"] img { display: none; }
.ah-pg-contact .entry-content a[href*="facebook.com"]:before { content: ""; flex: none; width: 26px; height: 26px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'><circle cx='13' cy='13' r='12' fill='none' stroke='%23B4472B' stroke-width='1.8' stroke-dasharray='2.5 2.5'/><path fill='%23B4472B' d='M14.3 20.5v-6.3h2.1l.35-2.5H14.3v-1.5c0-.75.25-1.25 1.3-1.25h1.25V6.7c-.3-.05-1.1-.1-1.95-.1-1.95 0-3.2 1.15-3.2 3.3v1.8H9.6v2.5h2.1v6.3z'/></svg>") center / contain no-repeat; }
.ah-pg-contact .entry-content a[href*="facebook.com"]:after { content: "Nous suivre sur Facebook"; }
.ah-pg-contact .entry-content a[href*="facebook.com"]:hover { color: #2F5D50; }

/* Fenêtre « vous allez sur HelloAsso » */
.ah-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(43,35,32,.45); }
.ah-modal.is-open { display: flex; }
.ah-modal-box { position: relative; width: min(460px, 100%); padding: 30px 28px 24px; text-align: center; background: #FBF6EC; color: #2B2320; border: 2px dashed #C9A27A; border-radius: 22px; box-shadow: 0 8px 0 rgba(43,35,32,.12), 0 10px 40px rgba(43,35,32,.25); }
.ah-modal-box .ah-hand { font-size: 30px; line-height: 1.1; color: #2F5D50; margin: 0 0 6px; }
.ah-modal-box h2 { font-family: Fraunces, Georgia, serif; font-size: 24px; margin: 0 0 10px; }
.ah-modal-box p { font-size: 16px; line-height: 1.5; margin: 0 0 18px; }
.ah-modal-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; }
.ah-modal-stay { background: none; border: 0; padding: 8px 6px; font: 600 15px Nunito, sans-serif; color: #2B2320; text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 4px; cursor: pointer; }
.ah-modal-stay:hover { color: #B4472B; }

/* Rapidité : photo de fond allégée (elle est sous un voile à 94 %, la version légère suffit). */
body.custom-background { background-image: url("img/fond.webp") !important; }
.ah-cols3 img, .ah-map-canvas img { height: auto; }
.ah-logo img { mix-blend-mode: multiply; }

/* --- Page « Le fer découpé d'Haïti » --- */
.ah-fer .ah-fer-accroche { font-family: Caveat, cursive; font-weight: 700; font-size: 34px; line-height: 1.1; color: #2F5D50; margin: 0 0 10px; }
.ah-fer figure { margin: 0; }
.ah-fer .ah-fer-hero { background: #fff; padding: 10px 10px 0; box-shadow: 0 6px 0 rgba(43,35,32,.1), 0 2px 12px rgba(43,35,32,.16); transform: rotate(-.6deg); margin: 22px 0 34px; }
.ah-fer .ah-fer-hero img { display: block; width: 100%; height: auto; border-radius: 0; margin: 0; }
.ah-fer .ah-fer-hero figcaption { font-family: Caveat, cursive; font-weight: 700; font-size: 24px; text-align: center; padding: 8px 0 10px; color: #2B2320; }
.ah-fer .ah-fer-steps { list-style: none; counter-reset: fer; margin: 22px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 28px; }
.ah-fer .ah-fer-steps li { counter-increment: fer; position: relative; margin: 0; padding: 0; }
.ah-fer .ah-fer-steps li:before { content: counter(fer); position: absolute; left: -10px; top: -12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: #FBF6EC; border: 1.5px solid #B4472B; color: #B4472B; font: 500 19px/31px Fraunces, Georgia, serif; text-align: center; box-shadow: 0 0 0 3px #fff; }
.ah-fer .ah-fer-steps img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin: 0 0 10px; }
.ah-fer .ah-fer-steps h3 { font-family: Fraunces, Georgia, serif; font-size: 21px; color: #B4472B; margin: 0 0 4px; }
.ah-fer .ah-fer-steps p { margin: 0; font-size: 16px; line-height: 1.5; }
.ah-fer .ah-fer-box { background: #F3E6D3; border: 2px dashed #C9A27A; border-radius: 18px; padding: 20px 24px; margin: 26px 0; }
.ah-fer .ah-fer-box h2 { margin-top: 0; }
.ah-fer .ah-fer-box p:last-child { margin-bottom: 0; }
.ah-fer .ah-fer-artiste { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; }
.ah-fer .ah-fer-portrait { background: #fff; padding: 7px 7px 4px; box-shadow: 0 5px 0 rgba(43,35,32,.1), 0 2px 10px rgba(43,35,32,.18); transform: rotate(-3deg); }
.ah-fer .ah-fer-portrait img { display: block; width: 100%; height: auto; border-radius: 0; margin: 0; }
.ah-fer .ah-fer-portrait figcaption { font-family: Caveat, cursive; font-weight: 700; font-size: 21px; text-align: center; }
.ah-fer .ah-fer-merci { font-family: Caveat, cursive; font-weight: 700; font-size: 26px; line-height: 1.2; color: #B4472B; text-align: center; margin: 26px 0 6px; }
@media (max-width: 600px) { .ah-fer .ah-fer-steps { grid-template-columns: 1fr; } .ah-fer .ah-fer-artiste { grid-template-columns: 1fr; } .ah-fer .ah-fer-portrait { max-width: 170px; } }
.entry-content .ah-fer .ah-fer-steps h3 { margin: 0 0 4px; }
.entry-content .ah-fer .ah-fer-steps img { margin: 0 0 12px; }
.entry-content .ah-fer .ah-fer-box h2 { margin-top: 0; }
.ah-fer .ah-fer-steps br, .ah-fer .ah-fer-steps p:empty { display: none; }
