/*
Theme Name: MR Construction
Theme URI: https://thoughtful-turquoise-bear.192-95-19-108.cpanel.site
Author: Système Intérieur MR
Description: Thème sur mesure pour Système Intérieur MR — Construction et rénovation commerciale et résidentielle. Design sombre navy avec accent bleu électrique.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mr-construction
Tags: construction, business, one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ========================================
   1. VARIABLES / DESIGN SYSTEM
   ======================================== */
:root {
	--mr-blue: #2A5CE6;
	--mr-blue-dark: #1E48BE;
	--mr-blue-light: #4A78F0;
	--mr-navy: #0B0F1A;
	--mr-navy-soft: #121A2E;
	--mr-navy-mid: #0F1729;
	--mr-slate: #3A3F4C;
	--mr-grey-text: #AAB1C0;
	--mr-grey-light: #F5F6F8;
	--mr-white: #FFFFFF;

	--mr-font-head: 'Oswald', 'Arial Narrow', sans-serif;
	--mr-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	--mr-container: 1200px;
	--mr-radius: 4px;
	--mr-section-pad: 100px;
	--mr-header-h: 76px;
}

/* ========================================
   2. RESET / BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--mr-font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--mr-navy-mid);
	background: var(--mr-white);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--mr-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--mr-blue-dark); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--mr-font-head);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 .5em;
	color: var(--mr-navy-mid);
}

h1 { font-size: clamp(38px, 5.5vw, 64px); text-transform: uppercase; letter-spacing: -.5px; }
h2 { font-size: clamp(28px, 3.5vw, 40px); text-transform: uppercase; }
h3 { font-size: 21px; }

p { margin: 0 0 1.2em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }

.mr-container {
	width: 100%;
	max-width: var(--mr-container);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed; top: 10px; left: 10px;
	width: auto; height: auto; clip: auto;
	background: var(--mr-blue); color: #fff;
	padding: 10px 18px; z-index: 9999; border-radius: var(--mr-radius);
}

/* ========================================
   3. BOUTONS
   ======================================== */
.mr-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 28px;
	font-family: var(--mr-font-body);
	font-size: 16px;
	font-weight: 700;
	border-radius: var(--mr-radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
	line-height: 1.2;
}

.mr-btn:hover { transform: translateY(-1px); }

.mr-btn-primary {
	background: var(--mr-blue);
	color: var(--mr-white);
	border-color: var(--mr-blue);
}
.mr-btn-primary:hover { background: var(--mr-blue-dark); border-color: var(--mr-blue-dark); color: #fff; }

.mr-btn-outline {
	background: transparent;
	color: var(--mr-white);
	border-color: var(--mr-slate);
}
.mr-btn-outline:hover { background: rgba(42,92,230,.15); border-color: var(--mr-blue); color: #fff; }

.mr-btn-outline-dark {
	background: transparent;
	color: var(--mr-navy-mid);
	border-color: rgba(15,23,41,.25);
}
.mr-btn-outline-dark:hover { border-color: var(--mr-blue); color: var(--mr-blue); }

.mr-btn-sm { padding: 11px 20px; font-size: 15px; }

/* ========================================
   4. HEADER
   ======================================== */
.mr-header {
	background: var(--mr-white);
	border-bottom: 1px solid rgba(15,23,41,.08);
	position: sticky;
	top: 0;
	z-index: 500;
}
body.admin-bar .mr-header { top: 32px; }

.mr-header-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: var(--mr-header-h);
	max-width: 1500px;
	margin: 0 auto;
	padding: 10px 24px;
	flex-wrap: nowrap;
}

.mr-logo { flex-shrink: 0; }
.mr-logo-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}
.mr-logo-img {
	max-height: 46px;
	width: auto;
	flex-shrink: 0;
}
.mr-logo-text {
	font-family: var(--mr-font-head);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--mr-navy-mid);
	letter-spacing: .3px;
	white-space: nowrap;
}

.mr-rbq-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mr-blue);
	background: rgba(42,92,230,.07);
	border: 1px solid rgba(42,92,230,.25);
	border-radius: 999px;
	white-space: nowrap;
}

.mr-nav {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	justify-content: center;
}
.mr-nav ul {
	display: flex;
	align-items: center;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: nowrap;
}
.mr-nav a {
	font-size: 15px;
	font-weight: 500;
	color: var(--mr-navy-mid);
	padding: 6px 0;
	position: relative;
	white-space: nowrap;
}
.mr-nav a:hover,
.mr-nav .current-menu-item > a { color: var(--mr-blue); }
.mr-nav .current-menu-item > a::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0;
	height: 2px; background: var(--mr-blue);
}
.mr-nav ul ul {
	display: none;
	position: absolute;
	background: #fff;
	border: 1px solid rgba(15,23,41,.1);
	border-radius: var(--mr-radius);
	box-shadow: 0 10px 30px rgba(11,15,26,.12);
	padding: 10px 0;
	min-width: 250px;
	flex-direction: column;
	gap: 0;
	z-index: 600;
}
.mr-nav li { position: relative; }
.mr-nav li:hover > ul { display: flex; }
.mr-nav ul ul li a { display: block; padding: 9px 20px; }

.mr-header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.mr-header-phone {
	display: inline-flex; align-items: center; gap: 7px;
	font-weight: 600; font-size: 15px; color: var(--mr-navy-mid);
	white-space: nowrap;
}
.mr-header-phone:hover { color: var(--mr-blue); }
.mr-header-cta .mr-btn { white-space: nowrap; }

/* Menu mobile toggle */
.mr-menu-toggle {
	display: none;
	margin-left: auto;
	background: transparent;
	border: 1px solid rgba(15,23,41,.2);
	border-radius: var(--mr-radius);
	padding: 9px 12px;
	cursor: pointer;
}
.mr-menu-toggle span {
	display: block; width: 22px; height: 2px;
	background: var(--mr-navy-mid); margin: 4px 0;
	transition: .2s;
}

/* ========================================
   5. HERO
   ======================================== */
.mr-hero {
	position: relative;
	background: var(--mr-navy);
	background-size: cover;
	background-position: center;
	color: var(--mr-white);
	padding: 130px 0 90px;
	overflow: hidden;
}
.mr-hero::before {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(11,15,26,.97) 0%, rgba(11,15,26,.88) 45%, rgba(11,15,26,.55) 100%);
}
.mr-hero > .mr-container { position: relative; z-index: 2; }
.mr-hero-inner { max-width: 780px; }

.mr-hero h1 { color: var(--mr-white); margin-bottom: 26px; }
.mr-hero h1 .mr-accent { color: var(--mr-blue); }

.mr-hero-lead {
	font-size: 19px;
	color: var(--mr-grey-text);
	max-width: 580px;
	margin-bottom: 36px;
}

.mr-badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 20px;
	margin-bottom: 30px;
	font-size: 15px;
	font-weight: 500;
	color: var(--mr-blue-light);
	background: var(--mr-navy-soft);
	border: 1px solid rgba(42,92,230,.45);
	border-radius: 999px;
}

.mr-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.mr-trust {
	display: flex; flex-wrap: wrap; gap: 34px;
	padding-top: 28px;
	border-top: 1px solid rgba(255,255,255,.12);
	max-width: 780px;
}
.mr-trust-item {
	display: flex; align-items: center; gap: 10px;
	font-size: 15px; color: var(--mr-grey-text);
}
.mr-trust-item svg { flex-shrink: 0; color: var(--mr-blue); }

/* ========================================
   6. SECTIONS GÉNÉRIQUES
   ======================================== */
.mr-section { padding: var(--mr-section-pad) 0; }
.mr-section-light { background: var(--mr-grey-light); }
.mr-section-dark { background: var(--mr-navy); color: var(--mr-grey-text); }
.mr-section-dark h2, .mr-section-dark h3 { color: var(--mr-white); }

.mr-eyebrow {
	display: block;
	font-family: var(--mr-font-body);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--mr-blue);
	margin-bottom: 14px;
}

.mr-section-head { max-width: 720px; margin-bottom: 56px; }
.mr-section-head.mr-center { margin-left: auto; margin-right: auto; text-align: center; }
.mr-section-head p { font-size: 18px; color: #5C6373; margin-bottom: 0; }
.mr-section-dark .mr-section-head p { color: var(--mr-grey-text); }

/* ========================================
   7. GRILLE DE SERVICES
   ======================================== */
.mr-grid { display: grid; gap: 26px; }
.mr-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mr-grid-2 { grid-template-columns: repeat(2, 1fr); }

.mr-card {
	background: var(--mr-white);
	border: 1px solid rgba(15,23,41,.09);
	border-radius: 6px;
	padding: 34px 30px;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	display: flex;
	flex-direction: column;
}
.mr-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(11,15,26,.10);
	border-color: rgba(42,92,230,.4);
}
.mr-card-icon {
	width: 54px; height: 54px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(42,92,230,.09);
	border-radius: 6px;
	font-size: 26px;
	margin-bottom: 20px;
}
.mr-card h3 { margin-bottom: 12px; }
.mr-card p { color: #5C6373; font-size: 16px; flex-grow: 1; }
.mr-card-link {
	font-weight: 700; font-size: 15px;
	display: inline-flex; align-items: center; gap: 7px;
	margin-top: 8px;
}
.mr-card-link:hover { gap: 11px; }

.mr-section-dark .mr-card {
	background: var(--mr-navy-soft);
	border-color: rgba(255,255,255,.09);
}
.mr-section-dark .mr-card p { color: var(--mr-grey-text); }

.mr-section-footer { margin-top: 50px; text-align: center; }

/* ========================================
   8. BLOC À PROPOS (2 colonnes)
   ======================================== */
.mr-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}
.mr-split-media { position: relative; }
.mr-split-media img { border-radius: 6px; width: 100%; }
.mr-stat {
	position: absolute; bottom: -28px; left: -28px;
	background: var(--mr-blue); color: #fff;
	padding: 24px 30px; border-radius: 6px;
	box-shadow: 0 14px 36px rgba(42,92,230,.35);
}
.mr-stat-num {
	font-family: var(--mr-font-head);
	font-size: 42px; font-weight: 700; line-height: 1;
	display: block;
}
.mr-stat-label { font-size: 14px; font-weight: 600; letter-spacing: .5px; }

.mr-checklist { list-style: none; padding: 0; margin: 0 0 30px; }
.mr-checklist li {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 9px 0; font-weight: 600;
}
.mr-checklist svg { flex-shrink: 0; color: var(--mr-blue); margin-top: 3px; }

/* ========================================
   9. CTA FINALE
   ======================================== */
.mr-cta {
	background: var(--mr-navy);
	background-size: cover;
	background-position: center;
	position: relative;
	padding: 110px 0;
	text-align: center;
	color: #fff;
}
.mr-cta::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(11,15,26,.93), rgba(11,15,26,.97));
}
.mr-cta > .mr-container { position: relative; z-index: 2; }
.mr-cta h2 { color: #fff; }
.mr-cta p { color: var(--mr-grey-text); font-size: 19px; max-width: 640px; margin: 0 auto 34px; }
.mr-cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ========================================
   10. PAGE INTERNE (header de page)
   ======================================== */
.mr-page-hero {
	background: var(--mr-navy);
	color: #fff;
	padding: 90px 0 70px;
	text-align: center;
}
.mr-page-hero h1 { color: #fff; margin-bottom: 14px; }
.mr-breadcrumb { font-size: 15px; color: var(--mr-grey-text); }
.mr-breadcrumb a { color: var(--mr-blue-light); }

.mr-page-content { padding: 80px 0 100px; }
.mr-page-content .mr-container { max-width: 900px; }
.mr-page-content h2 { margin-top: 1.6em; }
.mr-page-content h2:first-child { margin-top: 0; }
.mr-page-content ul li { margin-bottom: 8px; }

/* Décalage des ancres pour ne pas passer sous l'en-tête collant */
html { scroll-behavior: smooth; }
.mr-page-content h2[id],
.mr-page-content h3[id] { scroll-margin-top: calc(var(--mr-header-h) + 24px); }

/* ========================================
   11. FOOTER
   ======================================== */
.mr-footer {
	background: var(--mr-navy);
	color: var(--mr-grey-text);
	padding: 76px 0 0;
	font-size: 15px;
}
.mr-footer h4 {
	color: #fff; font-family: var(--mr-font-body);
	font-size: 15px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 1.2px;
	margin-bottom: 20px;
}
.mr-footer a { color: var(--mr-grey-text); }
.mr-footer a:hover { color: var(--mr-blue-light); }
.mr-footer ul { list-style: none; padding: 0; margin: 0; }
.mr-footer ul li { margin-bottom: 10px; }

.mr-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1.2fr 1fr 1.4fr;
	gap: 48px;
	padding-bottom: 56px;
}
.mr-footer-logo img { max-height: 46px; margin-bottom: 20px; }
.mr-footer-about p { margin-bottom: 20px; }
.mr-footer-contact li {
	display: flex; align-items: flex-start; gap: 10px;
}
.mr-footer-contact svg { flex-shrink: 0; color: var(--mr-blue); margin-top: 4px; }

.mr-footer-bottom {
	border-top: 1px solid rgba(255,255,255,.1);
	padding: 26px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	font-size: 14px;
}

/* ========================================
   12. FORMULAIRES / DIVERS
   ======================================== */
input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], textarea, select {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid rgba(15,23,41,.2);
	border-radius: var(--mr-radius);
	font-family: var(--mr-font-body);
	font-size: 16px;
	background: #fff;
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--mr-blue);
	box-shadow: 0 0 0 3px rgba(42,92,230,.15);
}
input[type="submit"], button[type="submit"] {
	background: var(--mr-blue); color: #fff;
	border: none; padding: 15px 30px;
	font-weight: 700; font-size: 16px;
	border-radius: var(--mr-radius); cursor: pointer;
}
input[type="submit"]:hover, button[type="submit"]:hover { background: var(--mr-blue-dark); }

/* ========================================
   13. RESPONSIVE
   ======================================== */
@media (max-width: 1400px) {
	.mr-nav ul { gap: 18px; }
	.mr-nav a { font-size: 14px; }
}

@media (max-width: 1240px) {
	.mr-rbq-badge { display: none; }
	.mr-logo-text { font-size: 17px; }
	.mr-logo-img { max-height: 40px; }
}

@media (max-width: 1080px) {
	.mr-header-phone { display: none; }
	.mr-nav ul { gap: 15px; }
}

@media (max-width: 960px) {
	:root { --mr-section-pad: 68px; }

	.mr-header-inner { flex-wrap: wrap; }
	.mr-menu-toggle { display: block; }
	.mr-nav {
		display: none;
		flex: 1 1 100%;
		width: 100%;
		margin: 14px 0 0;
		order: 10;
	}
	.mr-nav.is-open { display: block; }
	.mr-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		border-top: 1px solid rgba(15,23,41,.1);
	}
	.mr-nav ul li { border-bottom: 1px solid rgba(15,23,41,.07); }
	.mr-nav ul li a { display: block; padding: 14px 2px; font-size: 16px; }
	.mr-nav ul ul {
		display: flex; position: static;
		border: none; box-shadow: none;
		padding: 0 0 8px 16px; min-width: 0;
	}
	.mr-header-cta { display: none; }

	.mr-hero { padding: 80px 0 64px; }
	.mr-grid-3, .mr-grid-2 { grid-template-columns: 1fr 1fr; }
	.mr-split { grid-template-columns: 1fr; gap: 56px; }
	.mr-stat { left: 16px; bottom: -22px; padding: 18px 24px; }
	.mr-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 620px) {
	body { font-size: 16px; }
	.mr-grid-3, .mr-grid-2 { grid-template-columns: 1fr; }
	.mr-hero-actions .mr-btn,
	.mr-cta-actions .mr-btn { width: 100%; justify-content: center; }
	.mr-trust { flex-direction: column; gap: 16px; }
	.mr-footer-grid { grid-template-columns: 1fr; }
	.mr-footer-bottom { flex-direction: column; text-align: center; }
	.mr-hero-lead { font-size: 17px; }
}
