/*
Theme Name: TARGA Assurance
Theme URI: https://54-167-27-21.nip.io/
Template: twentytwentyfive
Author: TARGA Assurance
Author URI: https://54-167-27-21.nip.io/
Description: Thème enfant de Twenty Twenty-Five, charte graphique inspirée de WAFA ASSURANCE pour l'agence TARGA ASSURANCE (Marrakech).
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.9
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: twentytwentyfive-targa
Tags: one-column, block-patterns, custom-colors, custom-logo, full-site-editing, wide-blocks
*/

/* ===== TARGA — Style overrides inspired by WAFA Assurance ===== */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Sticky header with shadow on scroll feel */
.wp-site-blocks > header,
header.wp-block-template-part {
	background: #ffffff;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Nav links — clean uppercase with hover underline */
.wp-block-navigation .wp-block-navigation-item__content {
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	transition: color 0.2s ease;
	padding: 8px 4px;
	position: relative;
}

.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary-dark) !important;
}

.wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 4px;
	right: 4px;
	bottom: 0;
	height: 2px;
	background: var(--wp--preset--color--primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.wp-block-navigation .wp-block-navigation-item__content:hover::after,
.wp-block-navigation .current-menu-item .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* Service cards — hover lift */
.wp-block-column.has-background {
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wp-block-column.has-background:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
	border-color: var(--wp--preset--color--primary) !important;
}

/* Buttons — pill shape, subtle hover scale */
.wp-block-button__link {
	transition: all 0.2s ease;
	box-shadow: 0 4px 14px rgba(55, 202, 113, 0.25);
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(55, 202, 113, 0.35);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Tables — clean with WAFA green header */
.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
}

.wp-block-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.wp-block-table tr:last-child td {
	border-bottom: none;
}

.wp-block-table td:first-child {
	background: var(--wp--preset--color--primary-light);
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	width: 40%;
}

/* Site logo sizing in header */
.wp-block-site-logo img {
	height: auto;
	max-height: 64px;
	width: auto;
}

/* Footer link hover */
footer.wp-block-template-part a:hover {
	color: var(--wp--preset--color--primary) !important;
	text-decoration: underline;
}

/* Page titles — add a green accent before */
.wp-block-post-title,
.entry-content > h1:first-child {
	position: relative;
	padding-bottom: 16px;
	margin-bottom: 32px;
}

.wp-block-post-title::after,
.entry-content > h1:first-child::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	height: 4px;
	background: var(--wp--preset--color--primary);
	border-radius: 2px;
}

/* Section heading separator — applied to h2 in content */
.entry-content h2 {
	margin-top: 2.5em;
}

/* List items — green checkmarks for unordered lists */
.entry-content ul:not(.is-style-no-bullets) {
	list-style: none;
	padding-left: 0;
}

.entry-content ul:not(.is-style-no-bullets) li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 10px;
}

.entry-content ul:not(.is-style-no-bullets) li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--wp--preset--color--primary);
	font-weight: 800;
	font-size: 1.1em;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Mobile tweaks */
@media (max-width: 768px) {
	.wp-block-cover h1 {
		font-size: 2rem !important;
	}
	.wp-block-site-logo img {
		max-height: 48px;
	}
}

