/*
Theme Name: iMasterWeb 2026
Theme URI: https://www.imasterweb.com/
Author: iMasterWeb
Description: Thème blocs de la refonte iMasterWeb (design « Build. Host. Grow. ») : fond crème, vert #0E6E57, Instrument Sans et IBM Plex Mono. Squelette : en-tête, pied de page, modèles et page de commande.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.0.5
License: Propriétaire
Text Domain: imasterweb-2026
*/

/* Les styles viennent de theme.json ; ce fichier ne garde que les détails que theme.json ne sait pas exprimer. */

::selection { background: #C9E4DA; }

.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1 0 auto; }

/* Étiquette « eyebrow » en mono majuscules (classe à ajouter sur un paragraphe) */
.is-style-eyebrow, .imw-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* En-tête collant, bordure fine */
.imw-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--wp--preset--color--line); }
.imw-header .wp-block-navigation a { text-decoration: none; }
.imw-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }

/* Bouton secondaire (contour) */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line-strong);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }

/* Carte (groupe avec la classe imw-card) */
.imw-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 14px; }

/* Bande sombre d'emphase */
.imw-dark a { color: var(--wp--preset--color--accent-on-dark); }

/* Le formulaire de commande prend toute la largeur utile sur sa page */
.imw-commande-page .imw-order { max-width: 760px; }

@media (max-width: 781px) {
	.imw-header .wp-block-buttons { display: none; }
}

/* Contenus par langue (classe posée sur <body> par functions.php) */
body.imw-lang-fr .imw-only-en, body:not(.imw-lang-fr) .imw-only-fr { display: none !important; }

/* Logo */
.imw-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wp--preset--color--ink); }
.imw-logo__word { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.imw-logo__word span { color: var(--wp--preset--color--accent); }
.imw-dark .imw-logo { color: #fff; }
.imw-dark .imw-logo__word span { color: var(--wp--preset--color--accent-on-dark); }

/* Sélecteur de langue */
.imw-lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; font: 500 12px/1 var(--wp--preset--font-family--mono); }
.imw-lang__item { padding: 5px 8px; border-radius: 999px; color: var(--wp--preset--color--muted); text-decoration: none; }
.imw-lang__item.is-current { background: var(--wp--preset--color--ink); color: #fff; }
.imw-lang a.imw-lang__item:hover { color: var(--wp--preset--color--accent); }

/* Formulaires Contact Form 7 aux couleurs du thème */
.wpcf7 form { display: grid; gap: 14px; }
.wpcf7 label { display: grid; gap: 6px; color: var(--wp--preset--color--ink); font-size: 14px; font-weight: 500; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 input[type=url], .wpcf7 select, .wpcf7 textarea {
	width: 100%; padding: 11px 12px; border: 1px solid var(--wp--preset--color--line-strong); border-radius: 9px; background: #fff; color: var(--wp--preset--color--ink); font: inherit; box-sizing: border-box;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 1px; border-color: var(--wp--preset--color--accent); }
.wpcf7 textarea { min-height: 150px; }
.wpcf7 input[type=submit] { justify-self: start; padding: 12px 22px; border: 0; border-radius: 9px; background: var(--wp--preset--color--accent); color: #fff; font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--wp--preset--color--accent-press); }
.wpcf7 p { margin: 0; }

/* Emplacements d'images (à remplacer) : cadre hachuré avec dimensions conseillées */
.imw-ph { position: relative; display: grid; place-items: center; text-align: center; padding: 16px; border: 1.5px dashed var(--wp--preset--color--line-strong); border-radius: 14px;
	background: repeating-linear-gradient(135deg, #F0EEE8 0 12px, #F6F4EF 12px 24px); color: var(--wp--preset--color--muted); font: 500 12.5px/1.5 var(--wp--preset--font-family--mono); }
.imw-ph strong { display: block; color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--sans); font-size: 14px; margin-bottom: 4px; }
.imw-ph--16x10 { aspect-ratio: 16 / 10; }
.imw-ph--4x3 { aspect-ratio: 4 / 3; }
.imw-ph--1x1 { aspect-ratio: 1 / 1; }
.imw-ph--3x2 { aspect-ratio: 3 / 2; }

/* Cartes de services */
.imw-service { transition: border-color .15s ease, transform .15s ease; }
.imw-service:hover { border-color: var(--wp--preset--color--accent); transform: translateY(-2px); }
.imw-service a { text-decoration: none; }

/* Grilles de l'accueil */
.imw-services, .imw-grid3, .imw-steps { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.imw-service, .imw-step { padding: 22px; }
.imw-service h3, .imw-step h3 { margin: 6px 0 8px; font-size: 19px; }
.imw-service__mark { width: 34px; height: 34px; fill: none; stroke: var(--wp--preset--color--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: var(--wp--preset--color--tint); border-radius: 9px; padding: 4px; }
.imw-service__text, .imw-step p:last-child { font-size: 14.5px; margin: 0; }
.imw-service__more { margin: 12px 0 0; font-weight: 600; font-size: 14px; }
.imw-work { margin: 0; }
.imw-work figcaption { margin-top: 8px; font-size: 14px; color: var(--wp--preset--color--ink); font-weight: 500; }
.imw-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.imw-points li { display: grid; gap: 2px; padding-left: 26px; position: relative; }
.imw-points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 3px; background: var(--wp--preset--color--accent); }
.imw-points strong { color: var(--wp--preset--color--ink); }
@media (max-width: 900px) { .imw-services, .imw-grid3, .imw-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .imw-services, .imw-grid3, .imw-steps { grid-template-columns: 1fr; } }

/* Pied de page */
.imw-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.imw-footer__brand p { font-size: 14px; max-width: 34ch; }
.imw-footer ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.imw-footer a { text-decoration: none; }
.imw-footer a:hover { text-decoration: underline; }
.imw-footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 18px; border-top: 1px solid #2C3234; font-size: 12.5px; color: var(--wp--preset--color--muted); }
.imw-footer .imw-lang { border-color: #2C3234; }
.imw-footer .imw-lang__item.is-current { background: #fff; color: var(--wp--preset--color--ink); }
@media (max-width: 900px) { .imw-footer__grid { grid-template-columns: 1fr 1fr; } .imw-footer__brand { grid-column: 1 / -1; } }

/* Pages de services */
.imw-svc .imw-svc-hero, .imw-svc .imw-svc-features, .imw-svc .imw-svc-section { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto; }
.imw-svc-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: var(--wp--preset--spacing--l) 0; }
.imw-svc-hero h1 { font-size: var(--wp--preset--font-size--heading); margin: 6px 0 14px; }
.imw-svc-hero__intro { font-size: 18px; margin: 0 0 20px; }
.imw-svc-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: var(--wp--preset--spacing--l) !important; }
.imw-svc-section { padding: var(--wp--preset--spacing--m) 0; border-top: 1px solid var(--wp--preset--color--line); }
.imw-svc-section h2 { font-size: 28px; margin: 0 0 12px; max-width: 68ch; }
.imw-svc-section p { font-size: 17px; line-height: 1.7; max-width: 68ch; }
@media (max-width: 900px) { .imw-svc-hero { grid-template-columns: 1fr; gap: 24px; } .imw-svc-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .imw-svc-features { grid-template-columns: 1fr; } }
