/* ==========================================================================
   Mandy Comptabilité — main.css
   Port fidèle du design Figma (React/Tailwind) vers CSS natif.
   ========================================================================== */

:root {
	--sky: #50abcc;
	--sky-hover: #3d95b8;
	--sky-light: #E6F4F9;
	--sky-faint: #EFF8FB;
	--black: #0A0A0A;
	--black-soft: #1a1a1a;
	--body: #3D3D3D;
	--muted: #4E7282;
	--bg: #F5FAFB;
	--border: rgba(80, 171, 204, 0.18);
	--border-dark: rgba(80, 171, 204, 0.3);
	--radius: 0.625rem;
	--font-display: 'Playfair Display', Georgia, serif;
	--font-body: 'Nunito', system-ui, -apple-system, sans-serif;
}

/* ── Base ──────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--body);
	background-color: var(--bg);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--black);
	margin: 0 0 1rem;
	line-height: 1.15;
	font-weight: 700;
}

a { color: var(--sky); text-decoration: none; }
a:focus-visible, button:focus-visible {
	outline: 2px solid var(--sky);
	outline-offset: 2px;
	border-radius: 4px;
}

.container { max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
.container-narrow { max-width: 46rem; }

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px; width: 1px;
	overflow: hidden; position: absolute !important;
}
.skip-link:focus {
	clip: auto; height: auto; width: auto;
	left: 1rem; top: 1rem; z-index: 100;
	background: #fff; padding: .5rem 1rem;
}

.icon { flex-shrink: 0; vertical-align: middle; }

/* ── Boutons ───────────────────────────────────────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: .95rem;
	border-radius: .5rem;
	padding: .875rem 1.75rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, box-shadow .2s, color .2s;
	line-height: 1.2;
}
.btn-sm { padding: .625rem 1.25rem; font-size: .875rem; }
.btn-lg { padding: .875rem 1.75rem; }
.btn-xl { padding: 1rem 2rem; }
.btn-block { justify-content: center; width: 100%; }

.btn-primary { background-color: var(--sky); color: #fff; }
.btn-primary:hover {
	background-color: var(--sky-hover);
	color: #fff;
	box-shadow: 0 8px 24px rgba(80, 171, 204, .35);
}

.btn-outline-sky { color: var(--sky); border-color: rgba(80, 171, 204, .33); }
.btn-outline-sky:hover { background-color: rgba(80, 171, 204, .09); border-color: var(--sky); }

.btn-outline-white { color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-outline-white:hover { border-color: rgba(255, 255, 255, .6); background-color: rgba(255, 255, 255, .05); color: #fff; }

/* ── Étiquettes / eyebrows ─────────────────────────────────────────────── */

.eyebrow {
	display: block;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--sky);
	margin-bottom: .75rem;
}
.eyebrow-pill {
	display: inline-block;
	border: 1px solid rgba(80, 171, 204, .33);
	padding: .25rem .75rem;
	border-radius: 999px;
	margin-bottom: 1.25rem;
}

.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--sky); }

/* ── En-tête ───────────────────────────────────────────────────────────── */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	transition: background-color .3s, box-shadow .3s, border-color .3s;
	border-bottom: 1px solid transparent;
	background: transparent;
}
.site-header.is-solid {
	background-color: rgba(245, 250, 251, .96);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	border-bottom-color: var(--border);
}

.header-inner {
	height: 4rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
/* Contraint tout logo (téléversé ou du thème) à 40px — évite les débordements. */
.brand img,
.brand-logo,
.brand .custom-logo {
	width: 40px !important;
	height: 40px !important;
	max-width: 40px;
	object-fit: contain;
}
#site-header .brand-name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.125rem;
	line-height: 1;
	color: #fff;
	white-space: nowrap;
	transition: color .3s;
}
#site-header.is-solid .brand-name { color: var(--black); }
@media (max-width: 639px) { .header-inner .brand-name { display: none; } }

.main-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
#site-header .nav-list a {
	font-family: var(--font-body);
	font-size: .875rem;
	font-weight: 700;
	color: rgba(255, 255, 255, .75);
	transition: color .2s;
}
#site-header.is-solid .nav-list a { color: var(--muted); }
/* États WordPress du menu (élément courant). */
#site-header .nav-list .current-menu-item > a,
#site-header .nav-list .current_page_item > a { color: var(--sky); }
.nav-list a:hover { color: var(--sky) !important; }

.header-cta { display: none; }

.menu-toggle {
	display: inline-flex;
	background: none; border: 0; padding: .25rem;
	color: #fff; cursor: pointer;
	transition: color .3s;
}
.site-header.is-solid .menu-toggle { color: var(--black); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline; }

.mobile-menu {
	background-color: rgba(245, 250, 251, .98);
	backdrop-filter: blur(4px);
	border-top: 1px solid var(--border);
	padding: 1rem 1.5rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.mobile-nav-list a { font-weight: 700; color: var(--black); padding: .25rem 0; display: block; }

@media (min-width: 768px) {
	.main-nav { display: block; }
	.header-cta { display: inline-flex; }
	.menu-toggle, .mobile-menu { display: none !important; }
}

/* Pages intérieures : en-tête toujours plein. */
body.is-inner .site-header {
	background-color: rgba(245, 250, 251, .96);
	border-bottom-color: var(--border);
}

/* ── Héros ─────────────────────────────────────────────────────────────── */

.hero {
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
	background-color: var(--bg);
}
@media (min-width: 768px) {
	.hero { grid-template-columns: 56% 44%; }
}

.hero-text {
	background-color: var(--black);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 6rem 2rem 4rem;
}
@media (min-width: 768px) { .hero-text { padding-inline: 4rem; } }

.hero-text-inner { max-width: 32rem; }

.hero-title {
	color: #fff;
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	line-height: 1.09;
	margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--sky); }

.hero-sub {
	font-size: 1.125rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, .65);
	margin: 0 0 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, .1);
}
.stat-n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
.stat-l {
	font-size: .75rem; font-weight: 700;
	color: rgba(255, 255, 255, .45);
	margin-top: .125rem; line-height: 1.3; max-width: 80px;
}

.hero-media {
	position: relative;
	overflow: hidden;
	min-height: 420px;
	background-color: var(--sky);
}

.parallax {
	position: absolute;
	inset: -12% 0;
	will-change: transform;
}
.parallax img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-tint { position: absolute; inset: 0; background-color: rgba(80, 171, 204, .09); }

.review-badge {
	position: absolute;
	bottom: 2rem; left: 1.5rem;
	background-color: rgba(255, 255, 255, .96);
	backdrop-filter: blur(4px);
	border-radius: 1rem;
	padding: 1rem;
	box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
	max-width: 215px;
}
.review-stars { display: flex; align-items: center; gap: 2px; margin-bottom: .5rem; color: var(--sky); }
.review-score { font-size: .75rem; margin-left: .375rem; font-weight: 700; color: var(--muted); }
.review-quote { font-size: .75rem; font-weight: 500; line-height: 1.4; color: var(--black); margin: 0; }
.review-meta { font-size: .625rem; margin: .375rem 0 0; font-weight: 700; color: var(--muted); }

/* ── Sections génériques ───────────────────────────────────────────────── */

.section { padding-block: 6rem; }
.section-services { background-color: var(--bg); }
.section-about { background-color: #fff; overflow: hidden; }
.section-testimonials { background-color: var(--sky-faint); }

.section-head { text-align: center; margin-bottom: 4rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.25rem); margin-bottom: 1rem; }
.section-head p {
	font-size: 1.125rem;
	max-width: 36rem;
	margin: 0 auto;
	color: var(--muted);
	line-height: 1.6;
}

/* ── Cartes ────────────────────────────────────────────────────────────── */

.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 768px) { .cards-grid.cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
	background-color: #fff;
	border: 1px solid var(--border);
	border-radius: 1rem;
	padding: 2rem;
	transition: transform .5s ease-out, box-shadow .3s ease-out, opacity .5s ease-out;
}

.service-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 8px 48px rgba(80, 171, 204, .18);
}
.service-card.color-black:hover { box-shadow: 0 8px 48px rgba(10, 10, 10, .12); }

.service-icon {
	width: 3rem; height: 3rem;
	border-radius: .75rem;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 1.25rem;
	transition: transform .3s;
	background-color: rgba(80, 171, 204, .09);
	color: var(--sky);
}
.service-card:hover .service-icon { transform: scale(1.1); }

.service-card.color-black .service-icon { background-color: rgba(10, 10, 10, .09); color: var(--black); }
.service-card.color-sky-hover .service-icon { background-color: rgba(61, 149, 184, .12); color: var(--sky-hover); }

.service-card h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.service-desc { font-size: .875rem; line-height: 1.6; margin: 0 0 1.25rem; color: var(--body); }

.service-features { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .5rem; }
.service-features li {
	display: flex; align-items: center; gap: .5rem;
	font-size: .75rem; color: var(--muted);
}
.service-features .icon { color: var(--sky); }
.service-card.color-black .service-features .icon { color: var(--black); }
.service-card.color-sky-hover .service-features .icon { color: var(--sky-hover); }

.card-footer { padding-top: 1.25rem; border-top: 1px solid rgba(0, 0, 0, .06); }
.card-link {
	display: inline-flex; align-items: center; gap: .375rem;
	font-size: .875rem; font-weight: 700;
	color: var(--sky);
	transition: gap .2s;
}
.service-card:hover .card-link { gap: .625rem; }
.service-card.color-black .card-link { color: var(--black); }
.service-card.color-sky-hover .card-link { color: var(--sky-hover); }

/* ── À propos ──────────────────────────────────────────────────────────── */

.about-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4rem;
	align-items: center;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-media { position: relative; order: 2; }
.about-text { order: 1; }
@media (min-width: 768px) {
	.about-media { order: 1; }
	.about-text { order: 2; }
}

.about-portrait {
	position: relative;
	height: 520px;
	border-radius: 1rem;
	overflow: hidden;
	background-color: var(--sky-light);
}
.about-portrait .parallax { inset: -8% 0; }
.about-portrait img { object-position: top; }

.name-badge {
	position: absolute;
	inset: auto 1.25rem 1.25rem;
	background-color: rgba(255, 255, 255, .95);
	backdrop-filter: blur(4px);
	border-radius: .75rem;
	padding: .75rem 1rem;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}
.name-badge-name { font-family: var(--font-display); font-weight: 700; font-size: .875rem; color: var(--black); }
.name-badge-role { font-size: .75rem; color: var(--muted); }

.about-inset {
	position: absolute;
	right: -1.25rem; bottom: -1.25rem;
	width: 9rem; height: 9rem;
	border-radius: .75rem;
	overflow: hidden;
	border: 4px solid #fff;
	box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
	display: none;
}
@media (min-width: 640px) { .about-inset { display: block; } }
.about-inset img { width: 100%; height: 100%; object-fit: cover; }

.about-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.25rem); margin-bottom: 1.5rem; line-height: 1.2; }
.about-text > p { margin: 0 0 1rem; line-height: 1.65; }
.about-text > p:last-of-type { margin-bottom: 2rem; }

.about-points {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	margin-bottom: 2.25rem;
}
.about-point { display: flex; gap: .75rem; }
.about-point > .icon { color: var(--sky); margin-top: .125rem; }
.about-point-title { font-weight: 700; font-size: .875rem; color: var(--black); }
.about-point-desc { font-size: .75rem; line-height: 1.5; margin-top: .125rem; color: var(--muted); }

/* ── Témoignages ───────────────────────────────────────────────────────── */

.testimonial-card { padding: 1.75rem; }
.testimonial-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 28px rgba(80, 171, 204, .14);
}
.testimonial-card .stars { margin-bottom: 1rem; }
.testimonial-quote {
	font-family: var(--font-display);
	font-style: italic;
	font-size: .95rem;
	line-height: 1.65;
	color: var(--black);
	margin: 0 0 1.25rem;
	padding: 0;
	border: 0;
}
.testimonial-name { font-weight: 700; font-size: .875rem; color: var(--black); }
.testimonial-role { font-size: .75rem; margin-top: .125rem; color: var(--muted); }

/* ── Bandeau CTA ───────────────────────────────────────────────────────── */

.section-cta {
	position: relative;
	overflow: hidden;
	background-color: var(--black);
	padding-block: 5rem;
}
.cta-blob {
	position: absolute;
	border-radius: 50%;
	background-color: var(--sky);
	opacity: .1;
	pointer-events: none;
}
.cta-blob-1 { top: -6rem; left: -6rem; width: 20rem; height: 20rem; }
.cta-blob-2 { bottom: -8rem; right: 3rem; width: 24rem; height: 24rem; }

.cta-inner { position: relative; max-width: 48rem; text-align: center; }
.cta-inner h2 {
	color: #fff;
	font-size: clamp(2rem, 4.5vw, 3rem);
	line-height: 1.2;
	margin-bottom: 1.25rem;
}
.cta-inner p {
	color: rgba(255, 255, 255, .6);
	font-size: 1.125rem;
	line-height: 1.65;
	max-width: 32rem;
	margin: 0 auto 2.5rem;
}
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ── Pied de page ──────────────────────────────────────────────────────── */

.site-footer {
	background-color: var(--black-soft);
	color: #fff;
	padding: 4rem 0 2rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	margin-bottom: 3rem;
}
@media (min-width: 768px) {
	.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-brand-head img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand .brand-name { color: #fff; }

.footer-tagline {
	color: rgba(255, 255, 255, .5);
	font-size: .875rem;
	line-height: 1.6;
	max-width: 20rem;
	margin: 0 0 1.25rem;
}

.footer-building {
	width: 100%; height: 7rem;
	border-radius: .75rem;
	overflow: hidden;
	margin-bottom: 1.25rem;
}
.footer-building img { width: 100%; height: 100%; object-fit: cover; }

.footer-contact { font-style: normal; display: grid; gap: .625rem; }
.footer-contact > div {
	display: flex; align-items: flex-start; gap: .625rem;
	font-size: .875rem; color: rgba(255, 255, 255, .55);
}
.footer-contact .icon { color: var(--sky); margin-top: .2rem; }
.footer-contact a { color: rgba(255, 255, 255, .55); }
.footer-contact a:hover { color: #fff; }

.footer-col h4 {
	font-family: var(--font-body);
	font-size: .625rem;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .4);
	margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.footer-col ul a {
	font-size: .875rem;
	color: rgba(255, 255, 255, .5);
	transition: color .2s;
}
.footer-col ul a:hover { color: #fff; }

.hours { display: grid; gap: .5rem; }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; }
.hours-row span { color: rgba(255, 255, 255, .4); }
.hours-row strong { color: rgba(255, 255, 255, .65); font-weight: 500; }

.tax-notice {
	margin-top: 1.25rem;
	padding: .75rem;
	border-radius: .5rem;
	background-color: rgba(80, 171, 204, .09);
	border: 1px solid rgba(80, 171, 204, .21);
}
.tax-notice-title { font-size: .75rem; font-weight: 700; color: var(--sky); margin: 0; }
.tax-notice-desc { font-size: .75rem; color: rgba(255, 255, 255, .5); margin: .125rem 0 0; }

.footer-bottom {
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, .1);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: .75rem;
	color: rgba(255, 255, 255, .3);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.footer-legal a { font-size: .75rem; color: rgba(255, 255, 255, .3); }
.footer-legal a:hover { color: rgba(255, 255, 255, .6); }

/* ── Animations d'apparition ───────────────────────────────────────────── */

.fade-in {
	opacity: 0;
	transform: translateY(2.5rem);
	transition: opacity .7s ease-out var(--delay, 0ms), transform .7s ease-out var(--delay, 0ms);
}
.fade-in.fade-in-x { transform: translateX(2rem); }
.fade-in.is-visible { opacity: 1; transform: none; }

/* Sans JS, tout reste visible. */
.no-js .fade-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.fade-in { opacity: 1; transform: none; transition: none; }
	.parallax { transform: none !important; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Pages intérieures ─────────────────────────────────────────────────── */

.inner-content { padding-top: 8rem; background: #fff; min-height: 60vh; }
.inner-content .section-head { text-align: left; margin-bottom: 2rem; }
.post-preview { margin-bottom: 3rem; }
.post-meta { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.entry-content a { text-decoration: underline; }

/* ── Pages Elementor : contenu pleine largeur sous l'en-tête fixe ─────── */
.elementor-page-content { padding-top: 0; }
body.is-inner .elementor-page-content { padding-top: 4rem; }

/* ── Widget héros dans Elementor ───────────────────────────────────────── */
.no-parallax { position: absolute; inset: 0; transform: none !important; }
.mandy-widget.hero { min-height: 100vh; }
.elementor-widget-mandy-hero, .elementor-widget-mandy-hero .elementor-widget-container { width: 100%; }
