/* =========================================================
   Grégory Béguelin — styles principaux
   ========================================================= */

/* ---------- Polices (auto-hébergées) ---------- */

@font-face { font-family: "Archivo"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2"); }

/* ---------- Variables ---------- */
:root {
	--c-text: #111;
	--c-muted: #555;
	--c-line: #111;
	--c-line-soft: #d6d6d6;
	--c-bg: #fff;
	--c-bg-soft: #f3f3f1;
	--c-accent: #7b9a5b;

    --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--container: 1140px;
	--gutter: clamp(20px, 4vw, 40px);
	--space-section: clamp(28px, 4vw, 44px);

	--fs-hero: clamp(2.5rem, 6.2vw, 4.4rem);
	--fs-h2: clamp(1.6rem, 3vw, 2.05rem);
	--fs-h3: 1.2rem;
	--fs-body: 1.0625rem;
	--fs-small: 0.875rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.5;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; padding: .6em 1em; background: var(--c-text); color: #fff; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Composants ---------- */
.kicker {
	display: flex; align-items: center; gap: 1.25rem;
	margin-bottom: 1.25rem;
	font-size: var(--fs-small); font-weight: 600;
	letter-spacing: .08em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--c-accent); flex: none; }

.btn {
	display: inline-flex; align-items: center; gap: .6rem;
	padding: .9rem 1.5rem;
	border: 1.5px solid var(--c-text);
	font-weight: 600; font-size: .95rem;
	background: transparent; color: var(--c-text);
	transition: background .2s, color .2s;
}
.btn:hover { background: var(--c-text); color: #fff; }

.arrow { color: var(--c-accent); display: inline-flex; transition: transform .2s; }
a:hover .arrow { transform: translateX(4px); }
.gb-icon--arrow { color: var(--c-accent); }

.link-more { display: inline-flex; align-items: center; gap: .6rem; font-size: .95rem; }
.link-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.accent-line { display: block; width: 22px; height: 2px; background: var(--c-accent); margin-top: 1.25rem; }

/* ---------- En-tête ---------- */
.site-header { border-bottom: 1px solid var(--c-line); }
.site-header__inner { display: flex; align-items: center; gap: 2rem; min-height: 70px; }
.site-logo { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; white-space: nowrap; }
.site-logo--small { font-size: 1rem; }
.site-nav { margin-left: auto; margin-right: auto; }
.site-nav .menu, .site-footer__nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.site-nav a { font-size: .95rem; padding-block: .25rem; border-bottom: 1.5px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { border-color: var(--c-accent); }

.lang-switch { display: flex; gap: .4rem; font-size: .9rem; }
.lang-switch a { color: var(--c-muted); }
.lang-switch a.is-current { color: var(--c-text); font-weight: 700; border-bottom: 1.5px solid var(--c-accent); }

.nav-toggle { display: none; }

@media (max-width: 899px) {
	.site-header__inner { gap: 1rem; }
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		order: 3; width: 42px; height: 42px; margin-left: .25rem;
		border: 0; background: none; cursor: pointer; padding: 0;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 22px; height: 2px; background: var(--c-text); position: relative; transition: transform .2s, background .2s;
	}
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -7px; }
	.nav-toggle__bars::after { top: 7px; }
	.nav-open .nav-toggle__bars { background: transparent; }
	.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

	.lang-switch { margin-left: auto; }
	.site-nav {
		position: fixed; inset: 70px 0 0 0; z-index: 50;
		background: var(--c-bg); padding: 2rem var(--gutter);
		transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s;
		margin: 0;
	}
	.nav-open .site-nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav a { display: block; font-size: 1.5rem; font-weight: 600; padding: .75rem 0; border-bottom: 1px solid var(--c-line-soft); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); border-top: 1px solid var(--c-line); }
.site-main > .section:first-child { border-top: 0; }
.section__title { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section__head .section__title { margin-bottom: 0; }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--gap-lg { gap: 2.5rem 1.5rem; }
.grid--ruled { gap: 0; }
.grid--ruled > * { padding: 0 1.5rem; border-left: 1px solid var(--c-line-soft); }
.grid--ruled > *:first-child { padding-left: 0; border-left: 0; }
.grid--ruled > *:last-child { padding-right: 0; }

@media (max-width: 899px) {
	.grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
	.grid--ruled > * { padding: 0 1.25rem 0 0; border-left: 0; }
}
@media (max-width: 599px) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.grid--ruled > * { padding: 1.25rem 0 0; border-top: 1px solid var(--c-line-soft); }
	.grid--ruled > *:first-child { padding-top: 0; border-top: 0; }
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding-block: clamp(32px, 5vw, 48px); }
.hero__title { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 13ch; margin-bottom: 1.25rem; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 34em; margin-bottom: 1.75rem; }
.hero__mark { width: clamp(160px, 22vw, 260px); color: var(--c-text); }
@media (max-width: 760px) {
	.hero { grid-template-columns: 1fr; }
	.hero__mark { display: none; }
}

/* ---------- Prestations ---------- */
.card-service { display: flex; flex-direction: column; gap: .75rem; }
.card-service__title { font-size: var(--fs-h3); }
.card-service__text { font-size: .93rem; color: var(--c-text); flex: 1; }

/* ---------- Projets ---------- */
.card-project__link { display: block; }
.card-project__media { aspect-ratio: 900 / 390; background: var(--c-bg-soft); overflow: hidden; }
.card-project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-project__link:hover img { transform: scale(1.02); }
.card-project__body { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-top: .75rem; }
.card-project__title { font-size: var(--fs-h3); }
.card-project__meta { font-size: var(--fs-small); margin: .2rem 0 0; }

/* ---------- Offres ---------- */
.card-offer__title { font-size: var(--fs-h3); margin-bottom: .35rem; }
.card-offer__text { font-size: .93rem; min-height: 3em; }
.card-offer__price { font-size: 1.3rem; font-weight: 700; margin-top: 1rem; }

/* ---------- Guides ---------- */
.list-guides { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line-soft); }
.row-guide a {
	display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 1rem;
	padding: .55rem 0; border-bottom: 1px solid var(--c-line-soft);
}
.row-guide time { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); padding-left: .4rem; }
.row-guide__title { font-weight: 700; font-size: 1.05rem; }
.row-guide a:hover .row-guide__title { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599px) {
	.row-guide a { grid-template-columns: 1fr auto; row-gap: .2rem; }
	.row-guide time { grid-column: 1 / -1; padding-left: 0; }
}

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 0; }
.about__media { padding-right: 1.75rem; border-right: 1px solid var(--c-line-soft); }
.about__media img { width: 100%; aspect-ratio: 7 / 4; object-fit: cover; filter: grayscale(1); }
.about__content { padding-left: 1.75rem; }
.about__content .section__title { margin-bottom: 1rem; }
.about__sign { font-size: .95rem; }
@media (max-width: 760px) {
	.about { grid-template-columns: 1fr; gap: 1.5rem; }
	.about__media { padding: 0; border: 0; }
	.about__content { padding: 0; }
}

/* ---------- CTA ---------- */
.cta {
	display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
	padding-block: var(--space-section); border-top: 1px solid var(--c-line);
}
.cta__title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 0; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--c-line); margin-top: 0; }
.site-footer__inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; padding-block: 1rem; }
.site-footer__tagline { font-size: var(--fs-small); margin: 0; }
.site-footer__nav { margin-left: auto; }
.site-footer__nav .menu { gap: 1.25rem; flex-wrap: wrap; }
.site-footer__nav a { font-size: var(--fs-small); }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__legal { display: flex; gap: 1.5rem; padding-bottom: 1.25rem; font-size: .8rem; color: var(--c-muted); }
@media (max-width: 760px) {
	.site-footer__nav { margin-left: 0; width: 100%; }
}

/* ---------- Pages intérieures ---------- */
.page-header { max-width: 46rem; margin-bottom: 2rem; }
.page-title { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 1rem; }
.page-lead { font-size: 1.2rem; margin-bottom: 1.5rem; }
.project-hero { margin: 0 0 2.5rem; }
.project-hero img { width: 100%; }
.entry-footer { margin-top: 3rem; }

/* Contenu éditeur */
.entry-content { max-width: 46rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 1.65rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.6em; }
.entry-content a { text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content li + li { margin-top: .35em; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 1.25rem; border-left: 2px solid var(--c-accent); font-size: 1.15rem; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: var(--fs-small); color: var(--c-muted); margin-top: .5rem; }
.entry-content .alignwide { max-width: none; width: min(100vw - 2 * var(--gutter), var(--container)); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--c-line-soft); }
.entry-content .wp-block-button__link { display: inline-flex; padding: .9rem 1.5rem; border: 1.5px solid var(--c-text); background: none; color: var(--c-text); border-radius: 0; font-weight: 600; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--c-text); color: #fff; }

/* Formulaires (Contact Form 7, WPForms…) */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select {
	width: 100%; padding: .8rem .9rem; font: inherit; color: inherit;
	border: 1px solid #bbb; border-radius: 0; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--c-text); }
button[type="submit"], input[type="submit"] {
	padding: .9rem 1.5rem; font: inherit; font-weight: 600; cursor: pointer;
	border: 1.5px solid var(--c-text); background: var(--c-text); color: #fff; border-radius: 0;
}

/* Pagination */
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; gap: .5rem; }
.pagination .page-numbers { padding: .4rem .75rem; border: 1px solid var(--c-line-soft); font-size: .9rem; }
.pagination .page-numbers.current { border-color: var(--c-text); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
