/*
Theme Name: SMARTEC
Theme URI: https://smartec-ingenierie.com/
Author: SMARTEC Ingénierie
Description: Thème léger (thème de blocs) pour SMARTEC Ingénierie : bureau d'études fluides, BIM et scan 3D.
Version: 0.1.9
Requires at least: 6.5
Tested up to: 6.8
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: smartec
*/

/* Habillage vague en fils */
.is-style-vague {
	background-color: var(--wp--preset--color--bleu-4);
	background-image:
		linear-gradient(90deg, rgba(12, 80, 97, .9) 0%, rgba(12, 80, 97, .62) 42%, rgba(12, 80, 97, 0) 68%),
		url(assets/img/vague-fils-blanc.svg),
		linear-gradient(135deg, #16728C 0%, #0C5061 62%, #073C49 100%);
	background-repeat: no-repeat;
	background-size: cover, max(1600px, 110%) auto, cover;
	background-position: center, center bottom -40px, center;
	color: #fff;
}
.is-style-vague-basse {
	background-color: var(--wp--preset--color--bleu-4);
	background-image: url(assets/img/vague-fils-blanc.svg), linear-gradient(135deg, #16728C 0%, #0C5061 62%, #073C49 100%);
	background-repeat: no-repeat;
	background-size: max(1600px, 110%) auto, cover;
	background-position: center bottom -300px, center;
	color: #fff;
}
.is-style-vague-claire {
	background-color: var(--wp--preset--color--glacier);
	background-image: url(assets/img/vague-fils.svg);
	background-repeat: no-repeat;
	background-size: max(1600px, 110%) auto;
	background-position: center bottom -60px;
}
.smartec-grad { height: 6px; background-image: linear-gradient(90deg, #32BFF2 0%, #0C5061 77%, #012128 100%); }

/* Cartes */
.is-style-carte {
	border: 1px solid var(--wp--preset--color--trait);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
}
.is-style-carte-trait {
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 12px;
}
.smartec-surtitre {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
ul.is-style-barre { list-style: none; padding-left: 0; }
ul.is-style-barre li { display: flex; align-items: baseline; gap: .5em; }
ul.is-style-barre li::before { content: "/"; flex: none; font-weight: 800; color: var(--wp--preset--color--bleu-3); }

/* En-tête */
.smartec-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.smartec-logo img { display: block; width: auto; }
.smartec-logo img:first-child { filter: drop-shadow(0 1px 2px rgba(7,60,73,.35)); }
.wp-block-navigation .smartec-cta a,
.wp-block-navigation-item.smartec-cta > a {
	background: var(--wp--preset--color--bleu-3);
	color: #fff;
	padding: 12px 18px;
	border-radius: 8px;
	font-weight: 600;
}
.wp-block-post-featured-image:empty { display: none; }
.wp-block-quote.is-style-plain { border: 0; padding: 0; margin: 0; }
.wp-block-quote cite { font-style: normal; color: var(--wp--preset--color--bleu-4); }
.wp-block-navigation .wp-block-navigation-item.smartec-cta .wp-block-navigation-item__content { color: #fff; }
.wp-block-navigation .wp-block-navigation-item.smartec-cta .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--bleu-4); }
/* Visuel des cartes activité : même hauteur pour l'image et l'emplacement provisoire */
.wp-block-column.is-style-carte > .wp-block-image,
.wp-block-column.is-style-carte > .has-glacier-background-color { height: 240px; min-height: 0 !important; margin: 0; overflow: hidden; }
.wp-block-column.is-style-carte > .wp-block-image img { width: 100%; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; display: block; }

/* Tablette : le menu reste à côté du logo */
@media (max-width: 1100px) {
	.wp-block-navigation { font-size: 15px; --wp--style--block-gap: 12px; }
	.wp-block-navigation .wp-block-navigation-item.smartec-cta .wp-block-navigation-item__content { padding: 10px 14px; }
}
