/* Annuaire Hébergements — styles limités au conteneur .ahb (aucun effet sur le reste du thème). */
.ahb {
	--ahb-primary: #006633;
	--ahb-primary-dark: #004d1a;
	--ahb-cta: #003580;
	--ahb-text: #1e293b;
	--ahb-body: #475569;
	--ahb-muted: #64748b;
	--ahb-bg-alt: #f1f5f9;
	--ahb-border: #e2e8f0;
	--ahb-yellow: #f59e0b;
	--ahb-radius: 12px;
	--ahb-shadow: 0 4px 14px rgba(15, 23, 42, .08);
	color: var(--ahb-body);
	line-height: 1.6;
	/* Gabarits pleine page : largeur et marges propres, y compris dans un conteneur flex (GeneratePress). */
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	max-width: 1240px;
	margin: 0 auto;
	padding: 1.5rem 16px 2rem;
}
.ahb.ahb-block { padding: 0; max-width: none; }
.ahb *, .ahb *::before, .ahb *::after { box-sizing: border-box; }
.ahb h1, .ahb h2, .ahb h3 { color: var(--ahb-text); line-height: 1.2; }
.ahb h2 { font-size: 1.6rem; margin: 0 0 1rem; }
.ahb h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.ahb a { color: var(--ahb-primary); }
.ahb img { max-width: 100%; height: auto; display: block; }
.ahb-icon { display: inline-block; vertical-align: -3px; flex: none; }
.ahb-star { color: var(--ahb-yellow); }
.ahb-muted { color: var(--ahb-muted); }
.ahb-small { font-size: .85rem; }
.ahb-center { text-align: center; }
.ahb-title { margin: .5rem 0 1.5rem; }

/* Fil d'Ariane */
.ahb-breadcrumb { font-size: .875rem; color: var(--ahb-muted); margin: 0 0 1rem; }
.ahb-breadcrumb a { color: var(--ahb-muted); text-decoration: none; }
.ahb-breadcrumb a:hover { text-decoration: underline; }
.ahb-sep { margin: 0 .25rem; }

/* Bandeau */
.ahb-hero { position: relative; border-radius: var(--ahb-radius); background: #1e293b center/cover no-repeat; color: #fff; text-align: center; padding: 4.5rem 1.25rem; margin-bottom: 2.5rem; overflow: visible; }
.ahb-hero::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(rgba(15,23,42,.45), rgba(15,23,42,.65)); }
.ahb-hero__inner { position: relative; max-width: 760px; margin: 0 auto; }
.ahb-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 .75rem; }
.ahb-hero p { color: #f1f5f9; font-size: 1.1rem; margin: 0 0 1rem; }
.ahb-hero--small { padding: 3rem 1.25rem; }
.ahb-hero__intro { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: var(--ahb-radius); padding: 1.25rem 1.5rem; margin-top: 1rem; text-align: left; }
.ahb-hero__intro p { font-size: 1rem; margin: 0 0 .5rem; }
.ahb-hero__intro a:not(.ahb-btn) { color: #fff; font-weight: 700; text-decoration: underline; }
.ahb-weather { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.95); color: var(--ahb-text); border-radius: 999px; padding: .25rem 1.25rem .25rem .5rem; margin-top: 1rem; }
.ahb-weather strong { color: var(--ahb-primary); font-size: 1.4rem; }
.ahb-weather span { text-transform: capitalize; color: var(--ahb-muted); }

/* Recherche de commune */
.ahb-citysearch { position: relative; display: flex; gap: .5rem; background: #fff; border-radius: 999px; padding: .4rem; max-width: 560px; margin: 1.5rem auto 0; box-shadow: 0 10px 25px rgba(0,0,0,.15); }
.ahb .ahb-citysearch input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: .6rem 1rem; font-size: 1rem; color: var(--ahb-text); outline: none; }
.ahb-autocomplete { position: absolute; top: calc(100% + 6px); left: 0; right: 0; list-style: none; margin: 0; padding: .25rem 0; background: #fff; border-radius: var(--ahb-radius); box-shadow: var(--ahb-shadow); text-align: left; z-index: 50; }
.ahb-autocomplete a { display: block; padding: .55rem 1rem; color: var(--ahb-text); text-decoration: none; }
.ahb-autocomplete li.is-active a, .ahb-autocomplete a:hover { background: var(--ahb-bg-alt); }

/* Sections */
.ahb-section { margin: 0 0 3rem; }
.ahb-section--alt { background: var(--ahb-bg-alt); border-radius: var(--ahb-radius); padding: 2rem 1.5rem; }
.ahb-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ahb-section__head h2 { margin: 0; }

/* Boutons */
.ahb .ahb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: 8px; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none !important; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.ahb .ahb-btn--primary { background: var(--ahb-primary) !important; border-color: var(--ahb-primary) !important; color: #fff !important; }
.ahb .ahb-btn--primary:hover { background: var(--ahb-primary-dark) !important; }
.ahb .ahb-btn--cta { background: var(--ahb-cta); color: #fff !important; }
.ahb .ahb-btn--cta:hover { background: #00224f; }
.ahb .ahb-btn--outline { border-color: var(--ahb-primary); color: var(--ahb-primary) !important; background: #fff; }
.ahb .ahb-btn--outline:hover { background: var(--ahb-primary); color: #fff !important; }
.ahb .ahb-btn--lg { padding: .85rem 1.4rem; font-size: 1.05rem; }
.ahb .ahb-btn--sm { padding: .4rem .8rem; font-size: .85rem; }
.ahb .ahb-citysearch .ahb-btn { border-radius: 999px; }

/* Grilles et cartes */
.ahb-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ahb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ahb-grid { grid-template-columns: repeat(3, 1fr); } .ahb-grid--cities { grid-template-columns: repeat(4, 1fr); } }
.ahb-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .ahb-grid--2 { grid-template-columns: repeat(2, 1fr); } }

.ahb-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ahb-border); border-radius: var(--ahb-radius); overflow: hidden; box-shadow: var(--ahb-shadow); transition: transform .15s, box-shadow .15s; }
.ahb-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.12); }
.ahb-card--promoted { border-color: var(--ahb-yellow); box-shadow: 0 0 0 2px rgba(245,158,11,.35), var(--ahb-shadow); }
.ahb-card__img { position: relative; display: block; aspect-ratio: 8 / 5; background: var(--ahb-bg-alt); }
.ahb-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ahb-badge { position: absolute; top: .75rem; left: .75rem; background: rgba(255,255,255,.95); color: var(--ahb-text); font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.ahb-badge--promoted { left: auto; right: .75rem; background: var(--ahb-yellow); color: #1e293b; }
.ahb-card__body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.ahb-card__meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .875rem; margin-bottom: .4rem; min-height: 1.4em; }
.ahb-card__title { font-size: 1.1rem; margin: 0 0 .4rem; }
.ahb-card__title a { color: var(--ahb-text); text-decoration: none; }
.ahb-card__title a:hover { color: var(--ahb-primary); }
.ahb-card__desc { font-size: .9rem; margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ahb-card__actions { display: flex; gap: .5rem; margin-top: auto; }
.ahb-card__actions .ahb-btn { flex: 1; padding: .5rem; font-size: .875rem; }
.ahb-rating small { color: var(--ahb-muted); }
.ahb-city-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ahb-muted); background: var(--ahb-bg-alt); padding: .15rem .5rem; border-radius: 4px; }

/* Communes */
.ahb-city { position: relative; display: block; border-radius: var(--ahb-radius); overflow: hidden; aspect-ratio: 16 / 10; background: #334155; text-decoration: none; }
.ahb-city img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ahb-city:hover img { transform: scale(1.05); }
.ahb-city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(15,23,42,.75)); }
.ahb-city__name { position: absolute; left: 1rem; bottom: .9rem; z-index: 1; color: #fff; font-size: 1.3rem; font-weight: 700; }
.ahb-city__count { position: absolute; right: 1rem; bottom: 1rem; z-index: 1; color: #e2e8f0; font-size: .85rem; }
.ahb-columns { list-style: none; margin: 1rem 0 0; padding: 1.25rem; background: #fff; border-radius: var(--ahb-radius); columns: 2; column-gap: 2rem; }
@media (min-width: 768px) { .ahb-columns { columns: 3; } }
@media (min-width: 1024px) { .ahb-columns { columns: 4; } }
.ahb-columns li { break-inside: avoid; margin-bottom: .35rem; }
.ahb-columns small { color: var(--ahb-muted); }
.ahb-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.ahb-chip { display: inline-block; padding: .45rem 1rem; border: 1px solid var(--ahb-border); border-radius: 999px; background: #fff; color: var(--ahb-text) !important; text-decoration: none; }
.ahb-chip:hover { border-color: var(--ahb-primary); color: var(--ahb-primary) !important; }
.ahb-chip small { color: var(--ahb-muted); }

/* Onglets de type */
.ahb-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.ahb-tab { padding: .4rem .9rem; border: 1px solid var(--ahb-border); border-radius: 999px; font-size: .875rem; text-decoration: none; color: var(--ahb-text) !important; background: #fff; }
.ahb-tab.is-active, .ahb-tab:hover { background: var(--ahb-primary); border-color: var(--ahb-primary); color: #fff !important; }

/* Filtres */
.ahb-filters { background: #fff; border: 1px solid var(--ahb-border); border-radius: var(--ahb-radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.ahb-filters__row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.ahb-field { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; font-weight: 600; color: var(--ahb-muted); min-width: 150px; flex: 1 1 150px; }
.ahb-field--grow { flex: 2 1 220px; }
.ahb-field--small { flex: 0 1 110px; min-width: 90px; }
.ahb .ahb-field input, .ahb .ahb-field select { font-size: .95rem; padding: .5rem .6rem; border: 1px solid var(--ahb-border); border-radius: 8px; background: #fff; color: var(--ahb-text); width: 100%; }
.ahb-filters__more { margin-top: .75rem; }
.ahb-filters__more summary { cursor: pointer; font-weight: 600; color: var(--ahb-text); }
.ahb-filters__checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .35rem 1rem; margin-top: .6rem; font-size: .9rem; }
.ahb-filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; }
.ahb-check { font-size: .9rem; }

/* Résultats */
.ahb-results__count { font-weight: 600; color: var(--ahb-muted); margin: 0 0 1rem; }
.ahb-sponsored { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px dashed var(--ahb-border); }
.ahb-sponsored__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ahb-muted); margin: 0 0 .75rem; }
.ahb-empty { text-align: center; padding: 2.5rem 1rem; background: var(--ahb-bg-alt); border-radius: var(--ahb-radius); }
.ahb-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.ahb-pagination a, .ahb-pagination span { display: inline-block; min-width: 2.4rem; padding: .45rem .7rem; text-align: center; border: 1px solid var(--ahb-border); border-radius: 8px; text-decoration: none; background: #fff; }
.ahb-pagination .current { background: var(--ahb-primary); border-color: var(--ahb-primary); color: #fff; }

/* Carte */
.ahb-map { width: 100%; border-radius: var(--ahb-radius); border: 1px solid var(--ahb-border); background: #e5e7eb; z-index: 0; }
.ahb-map .leaflet-popup-content a { font-weight: 600; }

/* Fiche */
.ahb-single__header h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 .4rem; }
.ahb-single__sub { font-size: 1.1rem; color: var(--ahb-muted); margin: 0 0 .75rem; }
.ahb-single__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; margin-bottom: 1.75rem; }
.ahb-single__facts a { color: var(--ahb-body); }
.ahb-single__top, .ahb-single__bottom { display: grid; gap: 1.75rem; grid-template-columns: 1fr; margin-bottom: 2rem; align-items: start; }
@media (min-width: 900px) { .ahb-single__top { grid-template-columns: 1fr 1fr; } .ahb-single__bottom { grid-template-columns: 1fr 1fr; } .ahb-single__bottom--full { grid-template-columns: 1fr; } }
.ahb-single__photo { margin: 0; border-radius: var(--ahb-radius); overflow: hidden; box-shadow: var(--ahb-shadow); background: #fff; }
.ahb-single__photo img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.ahb-credit { font-size: .8rem; color: #5e5e5e; padding: .5rem .75rem; margin: 0; }
.ahb-credit a { color: #5e5e5e; text-decoration: underline; }
.ahb-gmaps { font-family: Roboto, Arial, sans-serif; white-space: nowrap; }
.ahb-panel { background: #fff; border: 1px solid var(--ahb-border); border-radius: var(--ahb-radius); padding: 1.5rem; box-shadow: var(--ahb-shadow); }
.ahb-panel h2 { font-size: 1.35rem; padding-bottom: .5rem; border-bottom: 1px solid var(--ahb-border); }
.ahb-lead { font-size: 1.05rem; }
.ahb-features, .ahb-capacity { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .4rem 1rem; }
.ahb-features .ahb-icon { color: var(--ahb-primary); }
.ahb-capacity { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.ahb-capacity strong { color: var(--ahb-text); font-size: 1.2rem; }
.ahb-panel__cta { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ahb-border); }
.ahb-score { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; margin-bottom: 1rem; }
.ahb-score__global { display: flex; flex-direction: column; }
.ahb-score__value { font-size: 3.5rem; font-weight: 800; line-height: 1; color: var(--ahb-text); }
.ahb-score__count { color: var(--ahb-muted); font-weight: 600; }
.ahb-bars { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: .4rem; }
.ahb-bar { display: grid; grid-template-columns: 2.2rem 1fr 3rem; align-items: center; gap: .6rem; font-size: .9rem; }
.ahb-bar__track { height: 10px; background: #f0e6da; border-radius: 5px; overflow: hidden; }
.ahb-bar__track span { display: block; height: 100%; background: #e07a5f; }
.ahb-bar span:last-child { text-align: right; color: var(--ahb-muted); }
.ahb-guide { background: var(--ahb-bg-alt); border-radius: var(--ahb-radius); padding: 1rem 1.25rem; margin-bottom: 2.5rem; font-size: 1.05rem; }
.ahb-guide a { font-weight: 700; }
.ahb-content { background: #fff; border-radius: var(--ahb-radius); }

/* Points d'intérêt et FAQ */
.ahb-poi { background: #fff; border-left: 4px solid var(--ahb-primary); border-radius: 8px; padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; }
.ahb-poi strong { color: var(--ahb-text); font-size: 1.1rem; }
.ahb-poi__cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--ahb-primary); }
.ahb-poi p { margin: 0 0 .5rem; font-size: .92rem; }
.ahb-poi .ahb-btn { align-self: flex-start; }
.ahb-faq { max-width: 820px; margin-left: auto; margin-right: auto; }
.ahb-faq__item { border-bottom: 1px solid var(--ahb-border); padding: 1rem 0; }
.ahb-faq__item h3 { display: flex; gap: .5rem; align-items: center; }
.ahb-faq__item h3 .ahb-icon { color: var(--ahb-primary); }
.ahb-faq__item p { margin: 0 0 0 1.6rem; }
.ahb .ahb-grid + .ahb-center, .ahb .ahb-grid + p { margin-top: 1.5rem; }

/* Vignettes : cadre de hauteur fixe, image recadrée (une photo en portrait ne doit pas étirer la carte). */
.ahb .ahb-card__img, .ahb .ahb-city { position: relative; overflow: hidden; height: auto; min-height: 0; }
.ahb .ahb-card__img img, .ahb .ahb-city img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.ahb .ahb-card__img .ahb-badge { z-index: 1; }
.ahb .ahb-single__photo img { width: 100%; height: auto !important; aspect-ratio: 8 / 5; object-fit: cover; }

/* Espace partenaires */
.ahb-portal__nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.ahb-tab--logout { margin-left: auto; }
.ahb-portal__auth { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ahb-portal__auth { grid-template-columns: 1fr 1fr; } }
.ahb-portal__narrow { max-width: 640px; }
.ahb-portal .ahb-panel { margin-bottom: 1.5rem; }
.ahb-panel--danger { border-color: #fecaca; }
.ahb-form .ahb-field { margin-bottom: .9rem; }
.ahb-form textarea, .ahb .ahb-field textarea { font-size: .95rem; padding: .5rem .6rem; border: 1px solid var(--ahb-border); border-radius: 8px; width: 100%; font-family: inherit; }
.ahb-form__grid { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.ahb-field__error { color: #b91c1c; font-weight: 600; font-size: .85rem; }
.ahb-check { display: block; margin: .5rem 0; }
.ahb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ahb-notice { border-left: 4px solid var(--ahb-primary); background: #f0fdf4; padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1.25rem; }
.ahb-notice p { margin: 0 0 .25rem; }
.ahb-notice--error { border-color: #b91c1c; background: #fef2f2; }
.ahb-notice--warning { border-color: #d97706; background: #fffbeb; }
.ahb-notice form { display: inline; }
.ahb-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--ahb-radius); overflow: hidden; }
.ahb-table th, .ahb-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--ahb-border); text-align: left; vertical-align: top; }
.ahb-table th { background: var(--ahb-bg-alt); font-size: .85rem; }
.ahb-table__actions { white-space: nowrap; }
@media (max-width: 700px) { .ahb-table thead { display: none; } .ahb-table td { display: block; border: 0; padding: .3rem .8rem; } .ahb-table tr { display: block; border-bottom: 1px solid var(--ahb-border); padding: .5rem 0; } }
.ahb-stat { display: flex; flex-direction: column; text-decoration: none; color: var(--ahb-text) !important; }
.ahb-stat__value { font-size: 2.4rem; font-weight: 800; color: var(--ahb-primary); line-height: 1.1; }
.ahb-thumb { border-radius: 8px; max-width: 260px; height: auto; }
.ahb-gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ahb-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; height: auto !important; }
.ahb-gallery--edit label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; }
.ahb-claim { margin-top: 1rem; font-size: .9rem; }
