/* =========================================================
   GHG Systems — styles complémentaires à theme.json
   Chargé en front et dans l'éditeur. Aucune dépendance externe.
   ========================================================= */

:root {
	--ghg-ease: cubic-bezier(.2, .7, .2, 1);
	--ghg-gold: var(--wp--preset--color--gold);
	--ghg-navy: var(--wp--preset--color--navy);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }

/* Garde-fou : aucun élément ne doit créer de défilement horizontal.
   « clip » (et non « hidden ») préserve l'en-tête collant. */
html, body { overflow-x: clip; max-width: 100%; }
img, video, iframe, embed, object, svg, table { max-width: 100%; }
pre, .wp-block-table { overflow-x: auto; }
.wp-block-table table { min-width: 0; }
img { height: auto; max-width: 100%; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }

/* Lien d'évitement (accessibilité) */
.ghg-skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	padding: .75rem 1.25rem; background: var(--ghg-gold); color: var(--ghg-navy);
	font-weight: 700; text-decoration: none;
}
.ghg-skip-link:focus { top: 1rem; }

/* ---------- Éléments récurrents ---------- */

.ghg-eyebrow {
	display: flex; align-items: center; gap: .875rem;
	font-size: var(--wp--preset--font-size--xs); font-weight: 700;
	letter-spacing: .24em; text-transform: uppercase;
	color: var(--wp--preset--color--gold-text);
}
.ghg-eyebrow::before {
	content: ""; width: 40px; height: 1px; background: currentColor; flex: none;
	transform-origin: left;
}
.has-navy-background-color .ghg-eyebrow,
.ghg-on-dark .ghg-eyebrow { color: var(--ghg-gold); }

.ghg-lead { font-size: var(--wp--preset--font-size--lg); }

/* Boutons : variantes */
.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45);
}
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { border-color: var(--ghg-gold); color: var(--ghg-gold); background: transparent; }
.wp-block-button.is-style-outline-dark .wp-block-button__link {
	background: transparent; color: var(--ghg-navy); border: 1px solid var(--ghg-navy);
}
.wp-block-button.is-style-outline-dark .wp-block-button__link:hover { background: var(--ghg-navy); color: #fff; }
.wp-block-button.is-style-navy .wp-block-button__link { background: var(--ghg-navy); color: #fff; }
.wp-block-button.is-style-navy .wp-block-button__link:hover { background: var(--wp--preset--color--navy-soft); }
.wp-block-button__link { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ghg-ease); }
.wp-block-button__link:active { transform: translateY(1px); }

/* ---------- En-tête ---------- */

.ghg-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--ghg-navy);
	border-bottom: 1px solid rgba(201,161,74,.35);
	transition: box-shadow .3s, padding .3s var(--ghg-ease);
}
.admin-bar .ghg-header { top: var(--wp-admin--admin-bar--height, 32px); }
.ghg-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(5, 12, 28, .7); }
.ghg-header > .wp-block-group { transition: padding .3s var(--ghg-ease); }
.ghg-header.is-stuck > .wp-block-group { padding-top: .75rem !important; padding-bottom: .75rem !important; }

.ghg-brand { display: flex; align-items: center; gap: .875rem; text-decoration: none; color: #fff; }
.ghg-brand:hover { color: #fff; }
.ghg-brand__mark {
	width: 44px; height: 44px; flex: none; display: grid; place-items: center;
	border: 1.5px solid var(--ghg-gold); color: var(--ghg-gold);
	font-family: var(--wp--preset--font-family--display); font-size: 1.375rem; font-weight: 700;
	transition: background-color .3s, color .3s;
}
.ghg-brand:hover .ghg-brand__mark { background: var(--ghg-gold); color: var(--ghg-navy); }
.ghg-brand__name { display: block; font-family: var(--wp--preset--font-family--display); font-size: 1.625rem; font-weight: 600; letter-spacing: .04em; line-height: 1.1; }
.ghg-brand__name, .ghg-brand__tag { white-space: nowrap; }
@media (max-width: 420px) {
	.ghg-brand__tag { display: none; }
	.ghg-brand__name { font-size: 1.375rem; }
	.ghg-nav__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.ghg-brand { min-width: 0; }
.ghg-brand__tag { display: block; font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: #C9B98F; }
.ghg-brand img { max-height: 48px; width: auto; }

.ghg-nav { position: static; }
.ghg-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; font-size: var(--wp--preset--font-size--sm); font-weight: 500; }
.ghg-nav__list a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: #D9DEE8; text-decoration: none; transition: color .25s; }
.ghg-nav__list a:hover, .ghg-nav__list a[aria-current] { color: #fff; }
.ghg-nav__list li:not(.ghg-nav-cta) a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
	background: var(--ghg-gold); transform: scaleX(0); transform-origin: right;
	transition: transform .35s var(--ghg-ease);
}
.ghg-nav__list li:not(.ghg-nav-cta) a:hover::after,
.ghg-nav__list li:not(.ghg-nav-cta) a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.ghg-nav-cta a { background: var(--ghg-gold); color: var(--ghg-navy) !important; font-weight: 700; padding: 0 1.4rem; transition: background-color .25s; }
.ghg-nav-cta a:hover { background: #D8B565; }
.ghg-nav__toggle { display: none; }

/* Sous-menus (deuxième niveau dans Apparence › Menus) */
.ghg-nav__list .has-children { position: relative; }
.ghg-nav__list .has-children > a::before {
	content: ""; order: 2; width: 6px; height: 6px; margin-left: .5rem; margin-top: -3px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.ghg-nav__list .has-children > a { gap: 0; }
.ghg-nav__list a.is-ancestor { color: #fff; }
.ghg-nav__sub {
	list-style: none; margin: 0; padding: .5rem 0; position: absolute; top: 100%; left: -1rem; min-width: 15rem; z-index: 10;
	background: var(--ghg-navy); border: 1px solid rgba(201,161,74,.35); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6);
	visibility: hidden; opacity: 0; transform: translateY(6px);
	transition: opacity .2s, transform .25s var(--ghg-ease), visibility 0s .25s;
}
.ghg-nav__list .has-children:hover > .ghg-nav__sub,
.ghg-nav__list .has-children:focus-within > .ghg-nav__sub { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .25s var(--ghg-ease); }
.ghg-nav__sub a { display: flex; padding: 0 1rem; min-height: 44px; white-space: nowrap; }
.ghg-nav__sub a::after { display: none; }
.ghg-nav__sub a:hover { background: var(--wp--preset--color--navy-soft); }

/* Mobile : bouton Menu + panneau déroulant (sans JS, le menu reste affiché en liste). */
@media (max-width: 960px) {
	.ghg-js .ghg-nav__toggle {
		display: inline-flex; align-items: center; gap: .625rem; min-height: 44px; padding: 0 .875rem;
		background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); font: inherit; font-weight: 600; cursor: pointer;
	}
	.ghg-nav__bars, .ghg-nav__bars::before, .ghg-nav__bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ghg-ease), background-color .2s; }
	.ghg-nav__bars::before, .ghg-nav__bars::after { content: ""; position: absolute; left: 0; }
	.ghg-nav__bars::before { top: -6px; }
	.ghg-nav__bars::after { top: 6px; }
	.ghg-nav.is-open .ghg-nav__bars { background: transparent; }
	.ghg-nav.is-open .ghg-nav__bars::before { transform: translateY(6px) rotate(45deg); }
	.ghg-nav.is-open .ghg-nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.ghg-js .ghg-nav__list {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.5rem 1.5rem;
		background: var(--ghg-navy); border-bottom: 1px solid rgba(201,161,74,.35);
		font-size: 1.125rem; visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .25s, transform .3s var(--ghg-ease), visibility 0s .3s;
	}
	.ghg-js .ghg-nav.is-open .ghg-nav__list { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ghg-ease); }
	.ghg-js .ghg-nav__list li { border-bottom: 1px solid rgba(255,255,255,.08); }
	.ghg-js .ghg-nav__list a { width: 100%; min-height: 52px; box-sizing: border-box; }
	.ghg-js .ghg-nav__list .ghg-nav-cta { border: 0; margin-top: 1rem; }
	.ghg-js .ghg-nav__list .ghg-nav-cta a { justify-content: center; }
	.ghg-js .ghg-nav__list li:not(.ghg-nav-cta) a::after { bottom: 0; }
	.ghg-js .ghg-nav__sub {
		position: static; visibility: visible; opacity: 1; transform: none; min-width: 0;
		background: transparent; border: 0; box-shadow: none; padding: 0 0 .5rem 1rem; font-size: 1rem;
	}
	.ghg-js .ghg-nav__sub li { border: 0; }
	.ghg-js .ghg-nav__sub a { min-height: 44px; padding: 0; color: #B9C2D3; }
	.ghg-js .ghg-nav__list .has-children > a::before { display: none; }
}

/* ---------- Fil d'Ariane ---------- */

.ghg-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .375rem; font-size: var(--wp--preset--font-size--sm); }
.ghg-breadcrumbs li { display: flex; align-items: center; gap: .375rem; color: inherit; }
.ghg-breadcrumbs li + li::before { content: "›"; opacity: .6; }
.ghg-breadcrumbs a { color: inherit; text-decoration: none; opacity: .8; }
.ghg-breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.ghg-breadcrumbs [aria-current] { opacity: 1; font-weight: 600; }

/* ---------- Hero ---------- */

.ghg-hero { position: relative; overflow: hidden; isolation: isolate; }
.ghg-hero::before {
	/* Lignes de grille dorées très discrètes, purement décoratives */
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(201,161,74,.07) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(201,161,74,.07) 1px, transparent 1px);
	background-size: 88px 88px;
	mask-image: radial-gradient(ellipse 70% 80% at 85% 40%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 40%, #000 0%, transparent 75%);
}
.ghg-hero h1 { color: #fff; }
.ghg-hero .ghg-lead { color: var(--wp--preset--color--on-navy); max-width: 34rem; }

.ghg-commitments { border: 1px solid rgba(201,161,74,.45); }
.ghg-commitment { display: flex; gap: 1.125rem; align-items: flex-start; }
.ghg-commitment__icon {
	flex: none; width: 38px; height: 38px; display: grid; place-items: center;
	border: 1px solid var(--ghg-gold);
}
.ghg-commitment__icon svg { width: 18px; height: 18px; stroke: var(--ghg-gold); }
.ghg-commitment strong { display: block; color: #fff; }
.ghg-commitment span { color: #B9C2D3; font-size: var(--wp--preset--font-size--sm); }
.ghg-commitment p { margin: 0; }

/* ---------- Cartes de services ---------- */

.ghg-card {
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: #fff; border: 1px solid var(--wp--preset--color--line);
	transition: transform .4s var(--ghg-ease), box-shadow .4s var(--ghg-ease), border-color .4s;
}
.ghg-card::before {
	content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
	background: var(--ghg-gold); transform-origin: left; transition: transform .5s var(--ghg-ease);
}
.ghg-card:hover, .ghg-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px -28px rgba(14, 31, 61, .45);
}
.ghg-card__icon svg { width: 40px; height: 40px; stroke: var(--ghg-navy); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ghg-card h3 { margin-top: 0; }
.ghg-card h3 a { color: inherit; text-decoration: none; }
/* Toute la carte cliquable sans imbriquer de liens */
.ghg-card h3 a::after { content: ""; position: absolute; inset: 0; }
.ghg-card .ghg-more { margin-top: auto; font-weight: 700; font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--gold-text); }
.ghg-more::after { content: "→"; display: inline-block; margin-left: .375rem; transition: transform .3s var(--ghg-ease); }
.ghg-card:hover .ghg-more::after { transform: translateX(5px); }

/* ---------- Étapes de méthode ---------- */

.ghg-step { position: relative; padding-top: 1.5rem; }
.ghg-step::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ghg-navy);
	transform-origin: left;
}
.ghg-step .ghg-step__num {
	font-family: var(--wp--preset--font-family--display); font-size: 2.75rem; font-weight: 600; line-height: 1;
	color: var(--wp--preset--color--gold-text); margin: 0; font-variant-numeric: lining-nums;
}
.ghg-step h3 { font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--lg); font-weight: 700; margin: .75rem 0 .5rem; }
.ghg-step p { color: var(--wp--preset--color--muted); font-size: 1rem; margin: 0; }

/* ---------- Articles ---------- */

.ghg-post-card { position: relative; }
.ghg-post-card .wp-block-post-featured-image { overflow: hidden; margin: 0; aspect-ratio: 16 / 10; background: var(--wp--preset--color--sand); }
.ghg-post-card .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ghg-ease); }
.ghg-post-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.ghg-post-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.ghg-post-card .wp-block-post-terms a { position: relative; z-index: 1; }

.ghg-prose > * + h2 { margin-top: 2.75rem; }
.ghg-prose > * + h3 { margin-top: 2rem; }
.ghg-prose h2 { font-size: clamp(1.875rem, 3vw, 2.375rem); }
.ghg-prose a { text-underline-offset: 3px; }
.ghg-prose ul li::marker { color: var(--ghg-gold); }

.ghg-author-box { border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }

/* ---------- FAQ ---------- */

.ghg-faq .wp-block-details summary {
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
	font-weight: 700; font-size: var(--wp--preset--font-size--lg); color: var(--ghg-navy);
}
.ghg-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.ghg-faq .wp-block-details summary::after {
	content: "+"; flex: none; font-family: var(--wp--preset--font-family--display); font-size: 1.75rem; line-height: 1;
	color: var(--wp--preset--color--gold-text); transition: transform .3s var(--ghg-ease);
}
.ghg-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.ghg-faq .wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); }

/* ---------- Formulaires ---------- */

.ghg-form { display: grid; gap: 1.125rem; }
.ghg-form p { margin: 0; }
.ghg-form .ghg-row { display: grid; gap: 1.125rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ghg-form label { display: block; font-size: var(--wp--preset--font-size--sm); font-weight: 600; margin-bottom: .375rem; }
.ghg-form input, .ghg-form textarea, .ghg-form select {
	width: 100%; box-sizing: border-box; min-height: 52px; padding: .75rem 1rem;
	font: inherit; color: var(--wp--preset--color--ink); background: #fff;
	border: 1px solid #C9C3B3; border-radius: 0; transition: border-color .2s, box-shadow .2s;
}
.ghg-form textarea { min-height: 160px; resize: vertical; }
.ghg-form input:focus, .ghg-form textarea:focus, .ghg-form select:focus {
	outline: none; border-color: var(--ghg-navy); box-shadow: 0 0 0 3px rgba(201,161,74,.45);
}
.ghg-form button {
	justify-self: start; min-height: 52px; padding: 0 1.875rem; border: 0; cursor: pointer;
	background: var(--ghg-navy); color: #fff; font: inherit; font-weight: 700; transition: background-color .25s;
}
.ghg-form button:hover { background: var(--wp--preset--color--navy-soft); }
.ghg-form .ghg-consent { display: flex; gap: .625rem; align-items: flex-start; font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--muted); }
.ghg-form .ghg-consent input { width: 20px; min-height: 20px; height: 20px; margin-top: .2rem; flex: none; }
.ghg-form .ghg-consent label { font-weight: 400; margin: 0; }
.ghg-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ghg-notice { padding: 1rem 1.25rem; border-left: 3px solid var(--ghg-gold); background: var(--wp--preset--color--sand); }
.ghg-notice.is-error { border-left-color: #B3261E; }

/* Newsletter sur fond marine */
.ghg-newsletter .ghg-form label { color: #D9DEE8; }
.ghg-newsletter .ghg-form input[type="email"] { background: var(--wp--preset--color--navy-soft); border-color: rgba(255,255,255,.35); color: #fff; }
.ghg-newsletter .ghg-form input[type="email"]::placeholder { color: #8E99AE; }
.ghg-newsletter .ghg-form button { background: var(--ghg-gold); color: var(--ghg-navy); }
.ghg-newsletter .ghg-form button:hover { background: #D8B565; }
.ghg-newsletter .ghg-inline { display: flex; flex-wrap: wrap; gap: .75rem; }
.ghg-newsletter .ghg-inline input { flex: 1 1 260px; width: auto; }
.ghg-newsletter small { color: #A9B3C6; }

/* ---------- Pied de page ---------- */

.ghg-footer a { color: #D9DEE8; text-decoration: none; }
.ghg-footer a:hover { color: var(--ghg-gold); }
.ghg-footer .ghg-footer__title { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--ghg-gold); margin: 0 0 .5rem; font-family: var(--wp--preset--font-family--body); }
.ghg-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ghg-footer address { font-style: normal; display: grid; gap: .5rem; }

/* ---------- Mise en page du contenu ---------- */

/* Les sections pleine largeur s'enchaînent sans espace parasite */
.wp-block-post-content > .alignfull { margin-block: 0; }
.ghg-page-content > :first-child:not(.alignfull) { margin-top: var(--wp--preset--spacing--60); }
.ghg-page-content > :last-child:not(.alignfull) { margin-bottom: var(--wp--preset--spacing--60); }
.ghg-page-content > h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 2.5rem; }

.ghg-hero--page > .ghg-lead { max-width: 1200px; }
.ghg-hero--page .ghg-lead p, .ghg-hero--page p.ghg-lead { max-width: 46rem; }
.ghg-hero--page .wp-block-post-excerpt__excerpt { margin: 0; }
.ghg-hero--page .ghg-breadcrumbs { color: #B9C2D3; }
.ghg-hero--page .wp-block-post-terms a { color: var(--ghg-gold); }
.ghg-on-dark h2, .ghg-on-dark h3 { color: #fff; }

.ghg-commitments__title { font-family: var(--wp--preset--font-family--display); font-size: 1.625rem; font-weight: 600; color: #fff; margin: 0; }

.ghg-feature { position: relative; padding-top: 1.5rem; }
.ghg-feature::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 2px; background: var(--ghg-gold); transform-origin: left; }
.ghg-feature h3 { font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--lg); font-weight: 700; margin: 0 0 .5rem; }
.ghg-feature p { margin: 0; color: var(--wp--preset--color--muted); font-size: 1rem; }

.ghg-panel { background: #fff; border: 1px solid var(--wp--preset--color--line); }
.ghg-panel h3 { margin-top: 0; }
.ghg-panel ul { margin: 0; padding-left: 1.25rem; display: grid; gap: .625rem; }
.ghg-panel li::marker { color: var(--ghg-gold); }

.ghg-cta { text-align: center; }
.ghg-cta .ghg-lead { color: var(--wp--preset--color--muted); }
.ghg-cta__line { display: block; width: 56px; height: 1px; margin: 0 auto; background: var(--ghg-gold); transform-origin: center; }

.ghg-contact-details { font-style: normal; display: grid; gap: .5rem; }
.ghg-contact-aside .ghg-contact-details a { font-weight: 600; text-decoration: none; color: var(--ghg-navy); }
.ghg-contact-aside .ghg-contact-details a:hover { color: var(--wp--preset--color--gold-text); }
.ghg-hours { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--sm); }

.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: .5rem .875rem; min-width: 44px; text-align: center; }
.wp-block-query-pagination .current { background: var(--ghg-navy); color: #fff; }

/* =========================================================
   MOBILE (≤ 640 px) : une colonne, moins de cadres, plus d'air
   ========================================================= */
@media (max-width: 640px) {
	body { --wp--style--root--padding-left: 1.25rem; --wp--style--root--padding-right: 1.25rem; }

	/* Toutes les grilles passent sur une colonne, quelle que soit la version de WordPress */
	.is-layout-grid, .ghg-grid, .wp-block-post-template.is-layout-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
	.ghg-hero .is-layout-grid { gap: 2.75rem !important; }
	.ghg-grid { gap: 2.25rem !important; }
	.ghg-stagger.ghg-grid { gap: 0 !important; }
	.ghg-section-head { margin-bottom: 1.75rem; }
	.ghg-section-head h1, .ghg-section-head h2 { font-size: clamp(1.875rem, 8vw, 2.25rem); }

	/* Bandeau d'accueil : boutons pleine largeur, engagements sans cadre */
	.ghg-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.ghg-hero .wp-block-button, .ghg-hero .wp-block-button__link { width: 100%; }
	.ghg-commitments {
		background: transparent !important; border: 0; padding: 1.75rem 0 0 !important;
		border-top: 1px solid rgba(201,161,74,.45);
	}

	/* Cartes de services : listes aérées séparées par un filet doré, sans boîte */
	.ghg-card {
		background: transparent; border: 0; border-top: 1px solid var(--wp--preset--color--line);
		padding: 2rem 0 !important; box-shadow: none !important; transform: none !important;
	}
	.ghg-card::before { left: 0; right: auto; width: 48px; top: -1px; height: 2px; }
	.ghg-card__icon svg { width: 32px; height: 32px; }
	.ghg-grid > .ghg-card:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }

	/* Prestations et étapes */
	.ghg-feature, .ghg-step { padding-top: 1.25rem; padding-bottom: 1.75rem; }
	.ghg-step { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: .75rem; align-items: baseline; }
	.ghg-step .ghg-step__num { grid-row: span 2; font-size: 2.25rem; }
	.ghg-step h3 { margin-top: 0; }
	.ghg-step p:not(.ghg-step__num) { grid-column: 2; }

	/* Panneaux (liste, formulaire) : plus de cadre blanc */
	.ghg-panel {
		background: transparent; border: 0; padding: 1.75rem 0 0 !important;
		border-top: 2px solid var(--ghg-gold);
	}
	.ghg-contact-aside { padding-bottom: 2.5rem; }
	.ghg-form button { justify-self: stretch; width: 100%; }

	/* FAQ, appel à l'action, newsletter */
	.ghg-faq .wp-block-details summary { font-size: 1.0625rem; }
	.ghg-cta .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.ghg-cta .wp-block-button__link { width: 100%; }
	.ghg-newsletter .wp-block-button, .ghg-newsletter .wp-block-button__link { width: 100%; }

	/* Articles */
	.ghg-post-card { padding-bottom: 2rem; }
	.ghg-author-box { flex-wrap: wrap !important; }

	/* Pied de page */
	.ghg-footer .is-layout-grid { gap: 2rem !important; }
}

/* =========================================================
   ANIMATIONS
   Activées uniquement si JavaScript est présent (classe
   .ghg-anim posée sur <html>) ET si le visiteur n'a pas
   demandé à réduire les animations. Sans JS : tout est visible.
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {

	/* Entrée du hero au chargement (CSS pur, pas d'attente du JS) */
	@keyframes ghg-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
	@keyframes ghg-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
	@keyframes ghg-fade { from { opacity: 0; } to { opacity: 1; } }

	.ghg-hero .ghg-eyebrow::before { animation: ghg-draw .9s var(--ghg-ease) .1s both; }
	.ghg-hero .ghg-eyebrow { animation: ghg-fade .8s ease .05s both; }
	.ghg-hero h1 { animation: ghg-rise 1s var(--ghg-ease) .15s both; }
	.ghg-hero .ghg-lead { animation: ghg-rise 1s var(--ghg-ease) .3s both; }
	.ghg-hero .wp-block-buttons { animation: ghg-rise 1s var(--ghg-ease) .45s both; }
	.ghg-hero .ghg-commitments { animation: ghg-rise 1.1s var(--ghg-ease) .55s both; }
	.ghg-hero::before { animation: ghg-fade 2s ease .2s both; }

	/* Révélation au défilement */
	.ghg-anim .ghg-reveal {
		opacity: 0; transform: translateY(28px);
		transition: opacity .9s var(--ghg-ease), transform .9s var(--ghg-ease);
		transition-delay: var(--ghg-delay, 0s);
	}
	.ghg-anim .ghg-reveal.is-visible { opacity: 1; transform: none; }

	/* Révélation en cascade des enfants d'une grille */
	.ghg-anim .ghg-stagger > * {
		opacity: 0; transform: translateY(24px);
		transition: opacity .8s var(--ghg-ease), transform .8s var(--ghg-ease);
	}
	.ghg-anim .ghg-stagger.is-visible > * { opacity: 1; transform: none; }
	.ghg-anim .ghg-stagger.is-visible > :nth-child(2) { transition-delay: .12s; }
	.ghg-anim .ghg-stagger.is-visible > :nth-child(3) { transition-delay: .24s; }
	.ghg-anim .ghg-stagger.is-visible > :nth-child(4) { transition-delay: .36s; }
	.ghg-anim .ghg-stagger.is-visible > :nth-child(n+5) { transition-delay: .48s; }

	/* Filets dorés qui se dessinent */
	.ghg-anim .ghg-reveal .ghg-eyebrow::before,
	.ghg-anim .ghg-reveal.ghg-eyebrow::before { transform: scaleX(0); transition: transform 1s var(--ghg-ease) .2s; }
	.ghg-anim .ghg-reveal.is-visible .ghg-eyebrow::before,
	.ghg-anim .ghg-reveal.is-visible.ghg-eyebrow::before { transform: scaleX(1); }

	.ghg-anim .ghg-stagger .ghg-step::before { transform: scaleX(0); transition: transform 1.1s var(--ghg-ease); }
	.ghg-anim .ghg-stagger.is-visible .ghg-step::before { transform: scaleX(1); }
	.ghg-anim .ghg-stagger .ghg-feature::before { transform: scaleX(0); transition: transform .9s var(--ghg-ease) .3s; }
	.ghg-anim .ghg-stagger.is-visible .ghg-feature::before { transform: scaleX(1); }
	.ghg-anim .ghg-reveal .ghg-cta__line { transform: scaleX(0); transition: transform 1s var(--ghg-ease) .2s; }
	.ghg-anim .ghg-reveal.is-visible .ghg-cta__line { transform: scaleX(1); }
	.ghg-anim .ghg-stagger .ghg-card::before { transform: scaleX(0); }
	.ghg-anim .ghg-stagger.is-visible .ghg-card::before { transform: scaleX(1); transition-delay: .35s; }
}

/* Impression : pas d'animation, pas d'éléments fixes */
@media print {
	.ghg-header { position: static; }
	.ghg-anim .ghg-reveal, .ghg-anim .ghg-stagger > * { opacity: 1 !important; transform: none !important; }
	.ghg-newsletter, .ghg-skip-link { display: none; }
}

/* Liens dans les bandeaux marine */
.ghg-hero--page .wp-block-post-author-name a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(201,161,74,.6); }
.ghg-hero--page .wp-block-post-author-name a:hover { color: var(--ghg-gold); }
.ghg-author-box .wp-block-post-author-name a { color: var(--ghg-navy); text-decoration: none; }
