/*
Theme Name: Anaïs Mathieu Immobilier
Theme URI: https://www.facebook.com/anaismathieuimmobilier
Author: Anaïs Mathieu
Description: Thème sur mesure pour Anaïs Mathieu, conseillère en immobilier iad France dans le Livradois-Forez. Page d'accueil, blog, formulaire de contact.
Version: 1.4.7
Requires at least: 6.0
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: anais-mathieu
*/

:root {
	--am-ink: #26343B;
	--am-text: #44555B;
	--am-muted: #5C6B6E;
	--am-teal: #3D6F78;
	--am-terra: #B4532F;
	--am-cream: #FBF7F1;
	--am-sand: #EFE4D6;
	--am-line: #EADFD1;
	--am-white: #ffffff;
	--am-radius: 20px;
	--am-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--am-font);
	color: var(--am-ink);
	background-color: var(--am-cream);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--am-teal); }
a:hover { color: var(--am-terra); }
h1, h2, h3 { margin: 0; color: var(--am-ink); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100; top: 8px; left: 8px;
	padding: 10px 16px; background: var(--am-white); color: var(--am-ink);
}

/* Texture bois */
.am-bois { background-image: url("assets/img/bois-naturel.webp?v=1.4.5"); background-size: 800px auto; }
.am-bois--fonce { background-color: var(--am-sand); background-blend-mode: multiply; }

.am-container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.am-section { padding-top: 80px; padding-bottom: 80px; }

.am-eyebrow {
	margin: 0 0 10px; font-size: 17px; font-weight: 600; letter-spacing: 0.1em;
	text-transform: uppercase; color: var(--am-terra);
}
.am-h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.2; }

.am-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600;
	text-decoration: none; font-family: inherit; font-size: 16px; cursor: pointer;
	border: 2px solid transparent; transition: background-color .2s, color .2s;
}
.am-btn--terra { background: var(--am-terra); color: var(--am-white); }
.am-btn--terra:hover { background: #9A4526; color: var(--am-white); }
.am-btn--outline { border-color: var(--am-teal); color: var(--am-teal); background: transparent; }
.am-btn--outline:hover { background: var(--am-teal); color: var(--am-white); }
.am-btn--cream { background: var(--am-cream); color: var(--am-teal); min-height: 48px; padding: 0 24px; }

/* En-tête */
.am-header {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50;
	background: rgba(251, 247, 241, 0.96); border-bottom: 1px solid #EADFD1;
}
.am-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.am-brand { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; color: var(--am-ink); }
.am-brand:hover { color: var(--am-ink); }
.am-brand__name { font-weight: 700; font-size: 20px; }
.am-brand__title { font-size: 13px; color: var(--am-muted); }
.am-header__actions { display: flex; align-items: center; gap: 12px; }
.am-phone {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
	border-radius: 999px; background: var(--am-terra); color: var(--am-white);
	text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.am-phone:hover { color: var(--am-white); background: #9A4526; }
.am-burger {
	width: 48px; height: 48px; border-radius: 50%; border: 1px solid #D9CBB8; background: var(--am-white);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--am-ink); flex: 0 0 auto;
}
.am-menu {
	position: absolute; top: 100%; left: 0; right: 0; background: var(--am-teal);
	box-shadow: 0 20px 40px rgba(38, 52, 59, 0.25);
}
.am-menu[hidden] { display: none; }
.am-menu ul {
	list-style: none; margin: 0 auto; max-width: 1200px; padding: 32px 24px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 32px;
}
.am-menu a {
	display: flex; align-items: center; min-height: 48px; color: var(--am-cream); text-decoration: none;
	font-size: 18px; font-weight: 500; border-bottom: 1px solid rgba(251, 247, 241, 0.15);
}
.am-menu a:hover { color: var(--am-white); }

/* Présentation */
.am-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 64px; }
.am-hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.am-hero__text .am-eyebrow { margin: 0; }
.am-hero h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.15; font-weight: 700; }
.am-hero__lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--am-text); max-width: 580px; }
.am-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.am-hero__photo { flex: 1 1 280px; min-width: 0; display: flex; justify-content: center; }
.am-hero__photo img {
	display: block; width: 240px; height: 240px; border-radius: 50%; object-fit: cover;
	border: 6px solid var(--am-white); box-shadow: 0 12px 32px rgba(38, 52, 59, 0.14);
}

/* Services */
.am-services { background: var(--am-white); }
.am-services__head { max-width: 640px; margin-bottom: 40px; }
.am-grid { display: grid; gap: 20px; }
.am-grid--services { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.am-card {
	background-color: var(--am-cream); border-radius: var(--am-radius); padding: 30px;
	border: 1px solid var(--am-line); display: flex; flex-direction: column; gap: 12px;
}
.am-card h3 { font-size: 21px; }
.am-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--am-muted); text-align: justify; hyphens: auto; }

/* Biens vendus */
.am-sold__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.am-sold__head a { font-weight: 600; }
.am-grid--sold { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.am-sold-card { background: var(--am-white); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 20px rgba(38, 52, 59, 0.06); margin: 0; }
.am-sold-card__img { position: relative; }
.am-sold-card__img img { display: block; width: 100%; height: 170px; object-fit: cover; }
.am-badge {
	position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px;
	background: var(--am-teal); color: var(--am-white); font-size: 12px; font-weight: 600;
}
.am-sold-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.am-sold-card__body h3 { font-size: 17px; }
.am-sold-card__body p { margin: 0; font-size: 14px; color: var(--am-muted); }

/* Avis */
.am-reviews { background: var(--am-teal); color: var(--am-cream); }
.am-reviews__inner { display: flex; flex-direction: column; gap: 44px; }
.am-reviews .am-h2 { color: var(--am-white); }
.am-grid--stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.am-stat { border: 1px solid rgba(251, 247, 241, 0.25); border-radius: 18px; padding: 24px; }
.am-stat__num { margin: 0; font-size: 40px; font-weight: 700; color: var(--am-white); line-height: 1.2; }
.am-stat__label { margin: 4px 0 0; font-size: 15px; color: #F1F5F4; }
.am-grid--quotes { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.am-quote {
	margin: 0; background: var(--am-white); color: var(--am-ink); border-radius: var(--am-radius);
	padding: 30px; display: flex; flex-direction: column; gap: 14px;
}
.am-quote { transition: transform .25s ease, box-shadow .25s ease; }
.am-quote:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 18px 40px rgba(20, 35, 40, 0.28); }
@media (prefers-reduced-motion: reduce) { .am-quote, .am-quote:hover { transition: none; transform: none; } }
.am-quote__stars { color: var(--am-terra); font-size: 20px; letter-spacing: 4px; }
.am-quote blockquote { margin: 0; font-size: 17px; line-height: 1.65; }
.am-quote figcaption { font-size: 14px; color: var(--am-muted); }
.am-reviews .am-btn--cream { align-self: flex-start; }

/* Contact */
.am-contact__inner { display: flex; flex-wrap: wrap; gap: 48px; }
.am-contact__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.am-contact__intro .am-eyebrow { margin: 0; }
.am-contact__intro p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--am-text); }
.am-contact__phone { font-size: 26px; font-weight: 700; color: var(--am-ink); text-decoration: none; }
.am-contact__mail { font-size: 17px; }
.am-form {
	flex: 999 1 460px; min-width: 0; background: var(--am-white); border: 1px solid var(--am-line);
	border-radius: var(--am-radius); padding: 32px; display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}
.am-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.am-form input[type="text"], .am-form input[type="tel"], .am-form input[type="email"], .am-form select, .am-form textarea {
	min-height: 46px; border: 1px solid #CFC2B0; border-radius: 10px; padding: 0 12px;
	font: inherit; font-weight: 400; background: var(--am-white); color: var(--am-ink); width: 100%;
}
.am-form textarea { padding: 12px; min-height: 120px; resize: vertical; }
.am-form input:focus, .am-form select:focus, .am-form textarea:focus { outline: 2px solid var(--am-teal); outline-offset: 1px; }
.am-form__full { grid-column: 1 / -1; }
.am-form__consent { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-size: 13px !important; font-weight: 400 !important; line-height: 1.5; color: var(--am-muted); }
.am-form__consent input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
.am-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.am-form button { grid-column: 1 / -1; border: none; }
.am-notice { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.am-notice--ok { background: #E6F0EE; color: #24494F; }
.am-notice--err { background: #F8E5DE; color: #7A3219; }

/* FAQ */
.am-faq__inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.am-faq__list { display: flex; flex-direction: column; gap: 12px; }
.am-faq__item { background: var(--am-white); border-radius: 16px; border: 1px solid var(--am-line); }
.am-faq__item summary {
	list-style: none; cursor: pointer; min-height: 64px; padding: 18px 22px; display: flex;
	justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; font-weight: 600;
}
.am-faq__item summary::-webkit-details-marker { display: none; }
.am-faq__item summary::after { content: "+"; font-size: 24px; color: var(--am-terra); line-height: 1; }
.am-faq__item[open] summary::after { content: "\2212"; }
.am-faq__item p { margin: 0; padding: 0 22px 22px; font-size: 15px; line-height: 1.7; color: var(--am-muted); }

/* Communes */
.am-cities .am-section { padding-top: 72px; padding-bottom: 72px; }
.am-cities__head { max-width: 720px; margin-bottom: 28px; }
.am-cities__head .am-h2 { font-size: clamp(26px, 3.5vw, 34px); }
.am-grid--cities { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); column-gap: 40px; row-gap: 0; }
.am-city {
	display: flex; align-items: center; min-height: 48px; font-size: 17px; font-weight: 400;
	letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.35; color: #1E2427; text-decoration: none;
}
.am-city strong { font-weight: 700; }
.am-city__name { white-space: nowrap; }
.am-city:hover { color: var(--am-terra); }

/* Pied de page */
.am-footer { background: #2A4F56; color: var(--am-white); }
.am-footer a { color: var(--am-white); }
.am-footer a:hover { color: var(--am-cream); }
.am-footer__inner { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 36px; }
.am-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.am-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.am-footer__name { font-size: 20px; font-weight: 700; }
.am-footer__small { font-size: 14px; }
.am-footer__title { font-weight: 600; }
.am-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.35); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.am-footer__links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.am-footer__legal { margin: 0; font-size: 12px; line-height: 1.6; }

/* Blog et pages */
.am-page { padding-top: 64px; padding-bottom: 80px; }
.am-page__inner { max-width: 820px; margin: 0 auto; }
.am-page h1 { font-size: clamp(30px, 4.5vw, 42px); line-height: 1.2; margin-bottom: 24px; }
.am-content { font-size: 17px; line-height: 1.75; color: var(--am-text); }
.am-content h2 { font-size: 28px; margin: 40px 0 16px; }
.am-content h3 { font-size: 22px; margin: 32px 0 12px; }
.am-content img { border-radius: 14px; }
.am-meta { font-size: 14px; color: var(--am-muted); margin-bottom: 24px; }
.am-grid--posts { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.am-post-card { background: var(--am-white); border: 1px solid var(--am-line); border-radius: var(--am-radius); overflow: hidden; display: flex; flex-direction: column; }
.am-post-card img { display: block; width: 100%; height: 190px; object-fit: cover; }
.am-post-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.am-post-card h2 { font-size: 20px; line-height: 1.35; }
.am-post-card h2 a { color: var(--am-ink); text-decoration: none; }
.am-post-card h2 a:hover { color: var(--am-terra); }
.am-post-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--am-muted); }
.am-pagination { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }


/* Page Mes services */
.am-page-hero { padding-top: 64px; padding-bottom: 40px; }
.am-page-hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.1; }
.am-services-page__block { background: var(--am-white); }
.am-services-page__block--bois { background-color: transparent; }
.am-narrow { max-width: none; }
.am-container.am-narrow { max-width: 1200px; }
.am-container.am-narrow > * { max-width: none; }
.am-narrow--left { margin-bottom: 32px; }
.am-step { display: inline-block; margin-bottom: 12px; font-size: 15px; font-weight: 700; color: var(--am-teal); letter-spacing: 0.08em; }
.am-services-page__block .am-h2 { margin-bottom: 20px; }
.am-content p { margin: 0 0 14px; }
.am-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--am-text); }
.am-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.am-link-arrow { font-weight: 600; }
.am-note {
	display: flex; gap: 14px; align-items: flex-start; margin-top: 36px; padding: 20px 22px;
	background: var(--am-cream); border: 1px solid var(--am-line); border-radius: 16px;
}
.am-note svg { flex: 0 0 auto; margin-top: 2px; }
.am-note p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--am-text); }
.am-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 40px; }
.am-gallery__item { margin: 0; border-radius: 14px; overflow: hidden; background: var(--am-sand); }
.am-gallery__item img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.am-grid--features { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.am-feature { background: var(--am-white); border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.am-feature h3 { font-size: 19px; }
.am-feature p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--am-muted); }
.am-cta { background: var(--am-teal); }
.am-cta__inner { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.am-cta__title { margin: 0; font-size: clamp(22px, 3vw, 28px); font-weight: 700; color: var(--am-white); max-width: 620px; }
.am-cta .am-actions { margin-top: 0; }
@media (max-width: 800px) { .am-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.am-sold-types { max-width: none; margin: 20px 0 0; font-size: 18px; line-height: 1.7; color: var(--am-text); }
.am-quote[hidden] { display: none; }
.am-fade .am-quote { animation: am-fade .5s ease; }
@keyframes am-fade { from { opacity: 0; } to { opacity: 1; } }
.am-sales-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); column-gap: 40px; }
.am-sales-list li { padding: 12px 0; border-bottom: 1px solid var(--am-line); font-size: 17px; color: var(--am-ink); }

/* Page Contact */
.am-contact-card-wrap { padding-bottom: 56px; }
.am-home-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #D9CBB8; background: var(--am-white); display: inline-flex; align-items: center; justify-content: center; color: var(--am-ink); flex: 0 0 auto; }
.am-home-btn:hover { color: var(--am-terra); }
.am-contact-card { background: var(--am-white); border: 1px solid var(--am-line); border-radius: var(--am-radius); padding: 36px 40px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 10px 30px rgba(38, 52, 59, 0.06); }
.am-contact-card__name { margin: 0; font-size: 28px; font-weight: 700; color: var(--am-ink); }
.am-contact-card__title { margin: 2px 0 0; font-size: 16px; color: var(--am-muted); }
.am-contact-card__links { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.am-contact-card__links a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--am-ink); text-decoration: none; overflow-wrap: anywhere; }
.am-contact-card__phone { font-size: 26px; font-weight: 700; }
.am-contact-card__mail { font-size: 24px; font-weight: 600; }
.am-contact-card svg { flex: 0 0 auto; }
.am-map { border-radius: var(--am-radius); overflow: hidden; border: 1px solid #E2CFB4; height: 420px; }
.am-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.am-map__credit { margin: 10px 0 0; font-size: 13px; color: var(--am-muted); }
@media (max-width: 600px) { .am-contact-card { padding: 24px; } .am-contact-card__phone { font-size: 22px; } .am-contact-card__mail { font-size: 18px; } }

/* Page Estimer ma maison */
.am-subtitle { margin: 0; font-size: 22px; font-weight: 600; color: var(--am-teal); }
.am-content--large { font-size: 19px; }
.am-list { margin: 0 0 14px; padding-left: 22px; }
.am-perimetre { padding-top: 56px; padding-bottom: 56px; }
.am-contact--separe { background: var(--am-white); border-top: 1px solid var(--am-line); }
.am-contact--separe .am-form { background: #F3E6D3; border-color: #E2CFB4; }
.am-perimetre .am-note { margin-top: 0; flex-direction: column; gap: 10px; padding: 28px 32px; }
.am-perimetre .am-note .am-eyebrow { margin: 0; font-size: 17px; line-height: 1.5; color: var(--am-terra); }
.am-perimetre .am-note p { font-size: 19px; line-height: 1.7; }

@media (max-width: 600px) {
	.am-section { padding-top: 56px; padding-bottom: 56px; }
	.am-hero__inner { padding-top: 40px; gap: 32px; }
	.am-phone__label { display: none; }
	.am-phone { padding: 0 14px; }
	.am-form { padding: 22px; }
}
