/* SECOND ŒUVRE by BEST : feuille de style principale */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }

:root {
	--c-teal: #4c8281;       /* vert d'eau du logo (décor, bordures) */
	--c-teal-dark: #3a6665;  /* texte et fonds portant du texte blanc (contraste ≥ 6:1) */
	--c-grey: #55595a;
	--c-ink: #000;
	--c-text: #2b2e2f;
	--c-paper: #fff;
	--c-mist: #f4f7f7;
	--c-line: #dde5e5;
	--font: "Lato", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--pad: clamp(1.25rem, 5vw, 4rem);
	--wrap: 1240px;
	--wrap-narrow: 800px;
	--header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--c-paper);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	overflow-wrap: break-word;
}
.site-main { flex: 1; }

img, video, iframe, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--c-teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--c-ink); }
:focus-visible { outline: 3px solid var(--c-teal-dark); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.2; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important;
	top: .5rem; left: .5rem; z-index: 1000;
	width: auto; height: auto; margin: 0; padding: .75rem 1rem;
	clip: auto; overflow: visible;
	background: var(--c-ink); color: #fff;
	text-decoration: none; font-weight: 700;
}

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.container--narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--pad)); }
.nowrap { white-space: nowrap; }

/* En-tête */
.site-header { background: var(--c-paper); border-bottom: 1px solid var(--c-line); position: relative; z-index: 50; }
.site-header__inner {
	max-width: var(--wrap); margin-inline: auto; padding: .5rem var(--pad);
	min-height: var(--header-h);
	display: flex; align-items: center; gap: 1.25rem;
}
.site-header__brand { display: block; flex: none; line-height: 0; }
.site-header__brand img { display: block; width: auto; height: 3.5rem; }
.site-header__phone {
	margin-left: auto; flex: none;
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .6rem 1rem; min-height: 2.75rem;
	background: var(--c-ink); color: #fff;
	border-radius: 3px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.site-header__phone:hover { background: var(--c-grey); color: #fff; }
.site-header__phone svg { width: 1.1rem; height: 1.1rem; flex: none; }

/* Navigation principale */
.primary-nav { margin-left: auto; }
.primary-nav + .site-header__phone { margin-left: 0; }
.primary-nav__list, .primary-nav__list ul { list-style: none; margin: 0; padding: 0; }
.primary-nav__list { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.primary-nav a { display: block; padding: .5rem 0; color: var(--c-ink); font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--c-teal-dark); text-decoration: underline; text-decoration-thickness: 2px; }
.primary-nav li { position: relative; }
.primary-nav .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 14rem; padding: .5rem 1rem;
	background: var(--c-paper); border: 1px solid var(--c-line); box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
	display: none;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }

.nav-toggle {
	display: none; flex: none; width: 2.75rem; height: 2.75rem; padding: 0;
	background: var(--c-paper); border: 1px solid var(--c-ink); border-radius: 3px; cursor: pointer;
	align-items: center; justify-content: center;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 1.25rem; height: 2px; background: var(--c-ink); content: ""; position: relative;
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Accueil */
.hero { background: var(--c-mist); border-bottom: 1px solid var(--c-line); border-left: 10px solid var(--c-grey); }
.hero__inner { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero__eyebrow { margin: 0 0 .5rem; color: var(--c-teal-dark); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; }
.hero__title { margin: 0 0 .6rem; font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.25rem); }
.hero__lead { margin: 0 0 1.5rem; max-width: 40rem; color: var(--c-grey); font-size: 1.1875rem; }

.actions { display: flex; flex-wrap: wrap; gap: .875rem; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	min-height: 3.25rem; padding: .5rem 1.25rem;
	border: 0; border-radius: 3px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
	overflow-wrap: anywhere;
}
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: var(--c-grey); color: #fff; }
.btn--light { background: #fff; color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }
.btn--light:hover { background: var(--c-mist); color: var(--c-ink); }

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section__title { margin: 0 0 1.25rem; font-size: 1.5rem; }
.section__title::before { content: ""; display: block; width: 2.25rem; height: 3px; margin-bottom: .8rem; background: var(--c-teal); }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.services__item { padding: 1.1rem 1.25rem; background: var(--c-mist); border-left: 4px solid var(--c-teal); font-weight: 700; color: var(--c-ink); }

.contact { background: var(--c-teal-dark); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.contact .section__title { color: #fff; }
.contact .section__title::before { background: #fff; }
.contact a { color: #fff; }
.contact a:hover { color: #fff; text-decoration-thickness: 2px; }
.contact :focus-visible { outline-color: #fff; }
.contact__address { font-style: normal; }

/* Pages intérieures */
.page-header { padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; }
.page-title { margin: 0; font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.page-description { margin-top: .75rem; color: var(--c-grey); }
.entry-meta { margin: .5rem 0 0; color: var(--c-grey); font-size: .95rem; }
.entry-thumb { margin-bottom: 1.5rem; }
.entry-content { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 2rem; font-size: 1.5rem; }
.entry-content h3 { margin-top: 1.5rem; font-size: 1.25rem; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .5rem; border: 1px solid var(--c-line); text-align: left; }
.entry-content blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 4px solid var(--c-teal); color: var(--c-grey); }
.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--c-mist); }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, .wp-block-image figure { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--c-grey); }
.entry-content::after { content: ""; display: table; clear: both; }

.post-list { display: grid; gap: 2rem; padding-block: 1rem 2rem; }
.post-summary { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--c-line); }
.post-summary:not(:has(.post-summary__thumb)) { grid-template-columns: minmax(0, 1fr); }
.post-summary__thumb img { display: block; width: 100%; }
.post-summary__title { margin: 0; font-size: 1.35rem; }
.post-summary__title a { color: var(--c-ink); text-decoration: none; }
.post-summary__title a:hover { color: var(--c-teal-dark); text-decoration: underline; }
.post-summary__excerpt p { margin: .5rem 0 0; }

.pagination, .post-navigation, .page-links { padding-bottom: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; }
.pagination .nav-links { justify-content: flex-start; }
.page-numbers { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--c-line); text-decoration: none; }
.page-numbers.current { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

.search-form { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1rem; }
.search-form label { flex: 1 1 14rem; }
.search-field { width: 100%; min-height: 3rem; padding: .5rem .75rem; border: 1px solid var(--c-grey); border-radius: 3px; font: inherit; }
.search-submit { min-height: 3rem; padding: .5rem 1.25rem; background: var(--c-ink); color: #fff; border: 0; border-radius: 3px; font: inherit; font-weight: 700; cursor: pointer; }
.search-submit:hover { background: var(--c-grey); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--c-line); background: var(--c-paper); color: var(--c-grey); font-size: .95rem; }
.site-footer__inner { max-width: var(--wrap); margin-inline: auto; padding: 2.5rem var(--pad) 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0; }
.site-footer__name { font-weight: 700; color: var(--c-ink); }
.site-footer a { color: var(--c-ink); }
.site-footer a:hover { color: var(--c-teal-dark); }
.footer-nav__list { list-style: none; margin: 0; padding: 0; }
.site-footer__copy { padding: 1rem var(--pad); border-top: 1px solid var(--c-line); text-align: center; font-size: .875rem; }

/* Tablette et mobile : menu replié uniquement si le JavaScript est actif (bouton non masqué) */
@media (max-width: 900px) {
	.site-header__inner { flex-wrap: wrap; }
	.nav-toggle:not([hidden]) { display: inline-flex; margin-left: auto; }
	.nav-toggle:not([hidden]) ~ .site-header__phone { margin-left: 0; }
	.nav-toggle:not([hidden]) ~ .primary-nav { display: none; order: 10; width: 100%; margin: 0; }
	.nav-toggle[aria-expanded="true"] ~ .primary-nav { display: block; }
	.primary-nav__list { flex-direction: column; gap: 0; padding-block: .5rem; }
	.primary-nav a { padding: .75rem 0; border-top: 1px solid var(--c-line); }
	.primary-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
	.site-header__phone { margin-left: auto; }
}

@media (max-width: 600px) {
	body { font-size: 1rem; }
	.site-header__brand img { height: 3rem; }
	.site-header__phone-text { display: none; }
	.site-header__phone { padding: .6rem .8rem; }
	.hero { border-left-width: 8px; }
	.actions { flex-direction: column; }
	.actions .btn { width: 100%; }
	.post-summary { grid-template-columns: minmax(0, 1fr); }
	.alignleft, .alignright { float: none; display: block; margin: 0 auto 1rem; }
}

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