/*
 * Thème Green Circle : styles complémentaires à theme.json.
 * Chaque bloc « is-style-… » correspond à un style choisi dans l'éditeur
 * (panneau de droite > Styles).
 */

:root {
	--gc-rayon: 12px;
	--gc-rayon-grand: 18px;
	--gc-coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
	--gc-certificat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M9 14l-2 7 5-3 5 3-2-7'/%3E%3C/svg%3E");
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Lien d'évitement (accessibilité) */
.skip-link.screen-reader-text:focus {
	background: #fff;
	color: var(--wp--preset--color--bleu);
}

/* ---------- En-tête ---------- */

.gc-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	background: var(--wp--preset--color--blanc);
	border-bottom: 1px solid var(--wp--preset--color--bordure);
}

.gc-header .gc-logo img,
.gc-header-transparent .gc-logo img {
	height: 44px;
	width: auto;
}

/* En-tête transparent posé sur la photo d'accueil */
.gc-header-transparent {
	position: absolute;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 50;
	background: transparent;
}

.gc-header-transparent .wp-block-navigation .wp-block-navigation-item__content,
.gc-header-transparent .wp-block-navigation .wp-block-navigation__submenu-icon,
.gc-header-transparent .wp-block-navigation .wp-block-navigation__responsive-container-open {
	color: #fff !important;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.gc-header-transparent .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.gc-header-transparent .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--texte) !important;
	text-shadow: none;
}

.gc-header-transparent .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--vert-logo);
}

.wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--bordure) !important;
	border-radius: 10px;
	padding: 0.4rem 0;
	min-width: 230px !important;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.45rem 1rem;
}

/* ---------- Accueil : grande photo ---------- */

.gc-hero {
	min-height: 100vh;
	min-height: 100svh;
}

.gc-hero .wp-block-cover__image-background {
	object-position: 50% 60%;
}

.gc-hero h1 {
	text-wrap: balance;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.gc-hero .gc-chevron {
	display: inline-block;
	margin-top: 1.5rem;
	width: 44px;
	height: 44px;
	border: 2px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	position: relative;
	animation: gc-rebond 2.4s ease-in-out infinite;
}

.gc-hero .gc-chevron::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 42%;
	width: 12px;
	height: 12px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translate(-50%, -50%) rotate(45deg);
}

@keyframes gc-rebond {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
	.gc-hero .gc-chevron { animation: none; }
}

@media (max-width: 781px) {
	.gc-hero .wp-block-cover__image-background {
		object-position: 45% 70%;
	}
}

/* ---------- Cartes et encadrés ---------- */

.wp-block-group.is-style-carte,
.wp-block-group.is-style-carte-accent {
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--bordure);
	border-radius: var(--gc-rayon);
	padding: 1.25rem;
}

.wp-block-group.is-style-carte-accent {
	border-color: var(--wp--preset--color--bleu);
}

.wp-block-group.is-style-encadre-bleu,
.wp-block-group.is-style-encadre-vert,
.wp-block-group.is-style-encadre-gris {
	border-radius: var(--gc-rayon);
	padding: 1rem 1.25rem;
}

.wp-block-group.is-style-encadre-bleu {
	background: var(--wp--preset--color--bleu-teinte);
	color: var(--wp--preset--color--bleu-fonce);
}

.wp-block-group.is-style-encadre-vert {
	background: var(--wp--preset--color--vert-teinte);
	color: var(--wp--preset--color--vert-fonce);
}

.wp-block-group.is-style-encadre-gris {
	background: var(--wp--preset--color--surface);
}

.wp-block-group.is-style-encadre-bleu :where(h2, h3, h4) { color: var(--wp--preset--color--bleu-fonce); }
.wp-block-group.is-style-encadre-vert :where(h2, h3, h4) { color: var(--wp--preset--color--vert-fonce); }

.wp-block-group.is-style-bandeau-vert {
	background: var(--wp--preset--color--vert-teinte);
	border-radius: var(--gc-rayon-grand);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	text-align: center;
}

/* Carte produit cliquable (grille de l'accueil) */
.gc-produit {
	height: 100%;
	transition: border-color 0.15s ease;
}

.gc-produit:hover {
	border-color: var(--wp--preset--color--vert) !important;
}

.gc-produit .wp-block-image img {
	height: 72px;
	width: 100%;
	object-fit: contain;
}

.gc-produit p a {
	color: var(--wp--preset--color--texte);
	text-decoration: none;
}

.gc-produit p a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.gc-produit {
	position: relative;
}

/* Icône dans un carré arrondi (cartes de services) */
.gc-icone {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--vert-teinte);
	color: var(--wp--preset--color--vert-fonce);
	margin: 0 0 0.75rem;
}

.gc-icone.bleu {
	background: var(--wp--preset--color--bleu-teinte);
	color: var(--wp--preset--color--bleu-fonce);
}

.gc-icone svg {
	width: 20px;
	height: 20px;
}

/* ---------- Textes ---------- */

p.is-style-surtitre {
	font-size: var(--wp--preset--font-size--petit);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--vert-fonce);
	margin-bottom: 0.25rem;
}

p.is-style-pastille,
p.is-style-pastille-bleue {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	background: var(--wp--preset--color--vert-teinte);
	color: var(--wp--preset--color--vert-fonce);
	margin: 0;
}

p.is-style-pastille-bleue {
	background: var(--wp--preset--color--bleu-teinte);
	color: var(--wp--preset--color--bleu-fonce);
	font-weight: 600;
	font-size: 0.75rem;
	padding: 0.25rem 0.75rem;
}

p.is-style-cloture {
	font-size: var(--wp--preset--font-size--grand);
	font-weight: 600;
	text-align: center;
	line-height: 1.35;
	text-wrap: balance;
}

p.is-style-date-bleue {
	color: var(--wp--preset--color--bleu-fonce);
	font-weight: 600;
	font-size: 0.8125rem;
}

/* ---------- Accroches numérotées (1, 2, 3) ---------- */

.wp-block-group.is-style-accroches {
	counter-reset: gc-accroche;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	max-width: 560px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.wp-block-group.is-style-accroches > p {
	counter-increment: gc-accroche;
	position: relative;
	padding-left: 2.6rem;
	margin: 0;
}

.wp-block-group.is-style-accroches > p::before {
	content: counter(gc-accroche);
	position: absolute;
	left: 0;
	top: 0;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	background: var(--wp--preset--color--vert-teinte);
	color: var(--wp--preset--color--vert-fonce);
	font-weight: 700;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Étapes numérotées (méthodologie) ---------- */

.wp-block-group.is-style-etapes {
	counter-reset: gc-etape;
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 0.75rem;
}

.wp-block-group.is-style-etapes > p {
	counter-increment: gc-etape;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: var(--wp--preset--color--surface);
	border-radius: 10px;
	padding: 0.75rem 0.9rem;
	margin: 0 !important;
	font-size: 0.95rem;
	line-height: 1.35;
}

.wp-block-group.is-style-etapes > p::before {
	content: counter(gc-etape);
	flex: none;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var(--wp--preset--color--bleu);
	color: #fff;
	font-weight: 700;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

p.is-style-etape-cle {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: var(--wp--preset--color--vert-teinte);
	border: 1px solid var(--wp--preset--color--vert);
	border-radius: 10px;
	padding: 0.85rem 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--vert-fonce);
}

p.is-style-etape-cle::before {
	content: "";
	flex: none;
	width: 1.4rem;
	height: 1.4rem;
	background: currentColor;
	-webkit-mask: var(--gc-certificat) center / contain no-repeat;
	mask: var(--gc-certificat) center / contain no-repeat;
}

/* ---------- Liste à coches ---------- */

ul.is-style-coches {
	list-style: none;
	padding-left: 0;
}

ul.is-style-coches li {
	position: relative;
	padding-left: 1.7rem;
	margin: 0.35rem 0;
}

ul.is-style-coches li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1rem;
	height: 1rem;
	background: var(--wp--preset--color--vert);
	-webkit-mask: var(--gc-coche) center / contain no-repeat;
	mask: var(--gc-coche) center / contain no-repeat;
}

/* ---------- Boutons ---------- */

.wp-block-button.is-style-secondaire .wp-block-button__link {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--texte);
	border: 1px solid var(--wp--preset--color--bordure);
}

.wp-block-button.is-style-secondaire .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--vert);
	color: var(--wp--preset--color--vert-fonce);
}

/* ---------- Images ---------- */

.wp-block-image.is-style-avatar img {
	border-radius: 50%;
	aspect-ratio: 1;
	object-fit: cover;
}

.gc-equipe .wp-block-image {
	margin-bottom: 0.4rem;
}

.gc-blasons .wp-block-image img {
	height: 64px;
	width: auto;
}

/* ---------- Pied de page ---------- */

.gc-footer a {
	color: inherit;
	text-decoration: none;
}

.gc-footer a:hover {
	text-decoration: underline;
}

.gc-footer .gc-logo img {
	height: 48px;
	width: auto;
}

.gc-liste-simple {
	list-style: none;
}

.gc-liste-simple li {
	margin: 0.3rem 0;
}

@media (max-width: 600px) {
	.gc-bouton-entete {
		display: none !important;
	}
}

/* Initiales en attendant les photos de l'équipe */
.gc-initiales {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--wp--preset--color--bleu-teinte);
	color: var(--wp--preset--color--bleu-fonce);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 0.4rem !important;
}

.gc-membre {
	width: 84px;
	text-align: center;
}

.gc-membre .wp-block-image img {
	width: 72px;
	height: 72px;
}

.gc-membre .wp-block-image {
	margin: 0 auto 0.4rem;
	display: flex;
	justify-content: center;
}

.gc-membre p {
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0;
}

/* Icône provisoire pour un produit sans logo */
.gc-logo-provisoire {
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
}

.gc-logo-provisoire span.carre {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--wp--preset--gradient--degrade-marque);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.03em;
}

/* Titre lu par Google et les lecteurs d'écran, mais masqué à l'affichage (le logo fait office de titre) */
.gc-titre-masque {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
