/*
Theme Name: Oscar Consulting
Theme URI: https://oscar-consulting.com/
Author: Oscar Consulting
Description: Thème léger pour le site d'Oscar Consulting. Conseil, management de transition et formation dans la céramique, le réfractaire et les minéraux industriels.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oscar-consulting
*/

/* ---------- Bases ---------- */
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
main { margin-block-start: 0; }

/* ---------- En-tête ---------- */
.site-header { border-bottom: 1px solid #e6e3dd; background: #fff; padding-top: 12px; padding-bottom: 12px; }
.site-header .site-logo-img img { height: 56px; width: auto; }
.main-nav { font-weight: 500; font-size: 1rem; gap: 6px 26px; }
.main-nav a { color: var(--wp--preset--color--encre); text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--wp--preset--color--vert-fonce); }
.btn-small .wp-block-button__link { padding: 0.6rem 1.1rem; font-size: 1rem; }

/* ---------- Bandes ---------- */
.band { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.band-sable { background: var(--wp--preset--color--sable); }
.band-sombre { background: var(--wp--preset--color--anthracite); color: #f1efe9; }
.band-sombre h2, .band-sombre h3 { color: #f1efe9; }
.band-vert { background: var(--wp--preset--color--vert); color: #fff; }
.band-vert h2, .band-vert a { color: #fff; }
.band-vert a:hover { color: #e9f7ec; }
.band-trait { border-top: 1px solid #e6e3dd; }

.kicker { font-weight: 600; color: var(--wp--preset--color--bleu-lien); font-size: 0.9375rem; margin-bottom: 0.5rem; }
.lead { font-size: 1.1875rem; color: #3d4348; max-width: 62ch; }
.muted { color: #5a6066; font-size: 0.9375rem; }
.band-sombre .muted { color: #aab2b6; }

/* ---------- Image de tête ---------- */
.hero-photo img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 30%; border-radius: 14px; display: block; }
.about-photo img { width: 100%; height: 320px; object-fit: cover; object-position: 22% 50%; border-radius: 14px; display: block; }

/* ---------- Chiffres clés ---------- */
.stats { border-bottom: 1px solid #e6e3dd; padding-top: 28px; padding-bottom: 28px; }
.stat-num { font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: 2.1rem; line-height: 1.1; margin: 0; }
.stat-label { font-size: 0.9375rem; color: #5a6066; margin: 0; }
.stat-vert .stat-num { color: var(--wp--preset--color--vert); }
.stat-bleu .stat-num { color: var(--wp--preset--color--bleu-lien); }
.stat-orange .stat-num { color: #b86400; }

/* ---------- Cartes ---------- */
.card { border: 1px solid #e6e3dd; border-radius: 12px; padding: 26px; background: #fff; }
.card > * + * { margin-top: 0.75rem; }
.card h3 { margin-top: 0.5rem; }
.accent-vert, .accent-bleu, .accent-orange { position: relative; }
.accent-vert::before, .accent-bleu::before, .accent-orange::before { content: ""; display: block; width: 52px; height: 6px; border-radius: 3px; margin-bottom: 14px; }
.accent-vert::before { background: var(--wp--preset--color--vert); }
.accent-bleu::before { background: var(--wp--preset--color--bleu); }
.accent-orange::before { background: var(--wp--preset--color--orange); }
.card.top-vert { border-top: 5px solid var(--wp--preset--color--vert); }
.card.top-bleu { border-top: 5px solid var(--wp--preset--color--bleu); }
.card.top-orange { border-top: 5px solid var(--wp--preset--color--orange); }

/* ---------- Logos clients ---------- */
.logo-tile { height: 110px; border: 1px solid #3a4246; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 14px; }
.logo-tile.is-dark { background: transparent; }
.logo-tile figure, .logo-box figure { margin: 0; }
.logo-tile img { max-height: 76px; max-width: 100%; width: auto; object-fit: contain; }
.logo-box { height: 84px; border: 1px solid #ece8e1; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; }
.logo-box.is-dark { background: var(--wp--preset--color--anthracite); }
.logo-box img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
.sim-logo img { height: 84px; width: auto; background: #fff; padding: 12px 18px; border-radius: 10px; box-sizing: content-box; }

/* ---------- Étapes ---------- */
.step { border-top: 4px solid var(--wp--preset--color--vert); padding-top: 14px; }
.step.is-bleu { border-top-color: var(--wp--preset--color--bleu); }
.step.is-orange { border-top-color: var(--wp--preset--color--orange); }
.step-title { font-family: var(--wp--preset--font-family--archivo); font-weight: 700; font-size: 1.2rem; margin: 0; }
.step p:not(.step-title) { font-size: 0.9375rem; color: #4a5056; margin-top: 0.25rem; }

.big-step { border-top: 1px solid #e6e3dd; padding-top: 24px; padding-bottom: 8px; }
.big-step .num { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: 1.5rem; margin: 0; background: var(--wp--preset--color--vert); }
.big-step.is-bleu .num { background: var(--wp--preset--color--bleu); }
.big-step.is-orange .num { background: var(--wp--preset--color--orange); color: #1d2124; }

/* ---------- Listes ---------- */
.clean-list { padding-left: 1.2em; }
.clean-list li + li { margin-top: 0.35rem; }

/* ---------- Parcours ---------- */
.timeline-row { border-top: 1px solid #e6e3dd; padding-top: 12px; padding-bottom: 4px; }
.timeline-row .when { font-family: var(--wp--preset--font-family--archivo); font-weight: 700; margin: 0; }

/* ---------- Contact ---------- */
.big-phone { font-size: 1.5rem; font-weight: 700; white-space: nowrap; }
.wpcf7 label { display: block; font-weight: 600; margin-bottom: 1rem; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea {
	display: block; width: 100%; box-sizing: border-box; min-height: 48px; margin-top: 6px; padding: 10px 12px;
	border: 1px solid #8a8f94; border-radius: 8px; font: 400 1rem/1.4 var(--wp--preset--font-family--inter); color: #23272b; background: #fff;
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid var(--wp--preset--color--bleu); outline-offset: 1px; }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; font-size: 0.9375rem; }
.wpcf7 input[type=submit] {
	background: var(--wp--preset--color--vert); color: #fff; border: 0; border-radius: 8px; min-height: 52px; padding: 0 28px;
	font: 600 1.0625rem var(--wp--preset--font-family--inter); cursor: pointer;
}
.wpcf7 input[type=submit]:hover { background: var(--wp--preset--color--vert-fonce); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--wp--preset--color--anthracite); color: #c9cfd2; font-size: 0.875rem; padding-top: 28px; padding-bottom: 28px; }
.site-footer a { color: #c9cfd2; }
.site-footer a:hover { color: #fff; }
.footer-links a { margin-right: 18px; display: inline-block; }

/* ---------- Articles ---------- */
.post-list .wp-block-post { border-top: 1px solid #e6e3dd; padding-top: 18px; }

/* ---------- Petits écrans ---------- */
@media (max-width: 781px) {
	.hero-photo img { height: 300px; }
	.logo-tile { height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
