/*
Theme Name: SECOND ŒUVRE by BEST - Page d'attente
Description: Page d'attente « Site en construction » de SECOND ŒUVRE by BEST. Toutes les adresses du site renvoient vers l'accueil tant que ce thème est actif. Réalisé par VITRINEWEB.
Author: VITRINEWEB
Version: 1.2.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: secondoeuvre-attente
*/

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

:root {
	--sob-teal: #4c8281;      /* vert d'eau du logo */
	--sob-teal-dark: #3a6665; /* survol, liens sur fond clair */
	--sob-grey: #55595a;      /* gris du carré « by » */
	--sob-ink: #000000;       /* noir du logo */
	--sob-text: #2b2e2f;
	--sob-paper: #ffffff;
	--sob-mist: #f4f7f7;
	--sob-line: #dde5e5;
	--sob-font: "Lato", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sob-pad: clamp(1.25rem, 5vw, 4rem);
	--sob-wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

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

.sob a { color: var(--sob-teal-dark); }
.sob a:focus-visible { outline: 3px solid var(--sob-teal); outline-offset: 3px; border-radius: 2px; }

.sob-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 1. HAUT DE PAGE : logo + bloc chantier */
.sob-hero {
	flex: 1;
	width: 100%;
	max-width: var(--sob-wrap);
	margin: 0 auto;
	padding: clamp(2.5rem, 7vh, 5.5rem) var(--sob-pad);
	display: grid;
	grid-template-columns: minmax(240px, 400px) minmax(0, 1fr);
	gap: clamp(2.5rem, 7vw, 6.5rem);
	align-items: center;
}

.sob-brand { margin: 0; }
.sob-brand img { display: block; width: 100%; height: auto; }

/* Bloc « Site en construction » : vert uniforme, rappel gris du carré « by » */
.sob-chantier {
	background: var(--sob-teal);
	color: #fff;
	padding: clamp(1.5rem, 2.6vw, 2rem) clamp(1.75rem, 4vw, 3.25rem);
	border-left: 10px solid var(--sob-grey);
	margin-bottom: clamp(1.5rem, 2.6vw, 1.9rem);
}
.sob-chantier p { margin: 0; }
.sob-chantier-titre {
	font-weight: 700;
	font-size: clamp(1.6rem, 2.7vw, 2.3rem);
	line-height: 1.1;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.sob-chantier-texte {
	margin-top: .55rem !important;
	font-weight: 700;
	font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
}

.sob h1 {
	margin: 0 0 .45rem;
	font-weight: 400;
	font-size: clamp(1.75rem, 2.6vw, 2.2rem);
	line-height: 1.15;
	color: var(--sob-ink);
}
.sob-lead { margin: 0 0 1.4rem; color: var(--sob-grey); }

.sob-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
	gap: .875rem;
}
.sob-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	height: 54px;
	padding: 0 1.1rem;
	border-radius: 3px;
	font-size: 1.0625rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.sob-btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.sob .sob-btn--tel { background: var(--sob-ink); color: #fff; letter-spacing: .03em; }
.sob .sob-btn--tel:hover { background: var(--sob-grey); }
.sob .sob-btn--mail { background: #fff; color: var(--sob-ink); box-shadow: inset 0 0 0 1px var(--sob-ink); }
.sob .sob-btn--mail:hover { background: var(--sob-mist); }

/* 2. ZONE D'INFORMATIONS : sur blanc, séparée par un simple filet */
.sob-infos-inner {
	max-width: var(--sob-wrap);
	margin: 0 auto;
	padding: clamp(3rem, 7vw, 5rem) var(--sob-pad) clamp(3.5rem, 8vw, 5.5rem);
	display: grid;
	grid-template-columns: 1.35fr 1fr 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	position: relative;
}
.sob-infos-inner::before {
	content: "";
	position: absolute;
	top: 0;
	left: var(--sob-pad);
	right: var(--sob-pad);
	border-top: 1px solid var(--sob-line);
}
.sob-col h2 {
	margin: 0 0 1rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--sob-ink);
}
.sob-col h2::before {
	content: "";
	display: block;
	width: 2.25rem;
	height: 2px;
	background: var(--sob-teal);
	margin-bottom: .9rem;
}
.sob-col p { margin: 0; }
.sob-nw { white-space: nowrap; }
.sob-intro { margin-bottom: .8rem !important; }

.sob-services {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .3rem 1.5rem;
}
.sob-services li { display: flex; align-items: baseline; gap: .6rem; font-weight: 700; color: var(--sob-ink); }
.sob-services li::before {
	content: "";
	flex: none;
	width: .5rem;
	height: .5rem;
	border-radius: 2px;
	background: var(--sob-teal);
	transform: translateY(-.12em);
}

.sob-address { font-style: normal; }
.sob-address .sob-name { font-weight: 700; color: var(--sob-ink); }
.sob-address a { color: var(--sob-ink); text-decoration-color: var(--sob-teal); text-underline-offset: 3px; }
.sob-address a:hover { color: var(--sob-teal-dark); }

.sob-footer {
	background: var(--sob-paper);
	border-top: 1px solid var(--sob-line);
	padding: 1rem var(--sob-pad);
	font-size: .875rem;
	color: var(--sob-grey);
	text-align: center;
}
.sob-footer p { margin: 0; }

/* Tablette */
@media (max-width: 960px) {
	.sob-hero { grid-template-columns: 1fr; gap: 2.25rem; padding-top: 2.5rem; }
	.sob-brand { width: min(250px, 55vw); margin: 0 auto; }
	.sob-infos-inner { grid-template-columns: 1fr 1fr; }
	.sob-infos-inner .sob-col:first-child { grid-column: 1 / -1; }
}

/* Téléphone */
@media (max-width: 600px) {
	body.sob { font-size: 1rem; }
	.sob-hero { padding-top: 1.75rem; padding-bottom: 2.25rem; gap: 1.5rem; }
	.sob-brand { width: min(170px, 46vw); }
	.sob-chantier { border-left-width: 8px; padding: 1.35rem 1.4rem 1.35rem 1.5rem; margin-bottom: 1.4rem; }
	.sob-chantier-titre { letter-spacing: .05em; }
	.sob-actions { grid-template-columns: 1fr; }
	.sob-infos-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.75rem; padding-bottom: 3rem; }
	.sob-services { grid-template-columns: 1fr; }
}

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