/**
 * TEO Advisory : guides SEO + navigation (v2.2)
 * Charte : Inter + Cormorant Garamond, encre #0b1d2a, or #b08d57
 */

/* ——— Typographie globale du site (homogénéité) ——— */
body,
button,
input,
select,
textarea {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ——— Navigation globale (header + footer) ——— */
/* Header pleine largeur : logo collé à gauche, menu sur une seule ligne */
.site-header .ast-builder-grid-row,
.main-header-bar .ast-container {
	max-width: 100% !important;
	padding-left: clamp(1.25rem, 3vw, 3rem) !important;
	padding-right: clamp(1.25rem, 3vw, 3rem) !important;
}

.ast-desktop .main-header-menu {
	flex-wrap: nowrap !important;
}

.main-header-bar-navigation .main-header-menu > .menu-item > .menu-link {
	white-space: nowrap;
}

/* Liens du menu : encre, survol et page courante en or (palette premium) */
.main-header-bar-navigation .main-header-menu .menu-item > .menu-link {
	color: #0b1d2a !important;
	font-weight: 500;
}

.main-header-bar-navigation .main-header-menu .menu-item > .menu-link:hover,
.main-header-bar-navigation .main-header-menu .current-menu-item > .menu-link,
.main-header-bar-navigation .main-header-menu .current-menu-ancestor > .menu-link {
	color: #b08d57 !important;
}

/* Sous-menus premium : panneau encre, filet or, animation d'ouverture */
.ast-desktop .main-header-menu .sub-menu {
	background: #0b1d2a !important;
	border: 1px solid rgba(212, 185, 138, 0.18) !important;
	border-top: 2px solid #b08d57 !important;
	box-shadow: 0 28px 60px rgba(11, 29, 42, 0.3) !important;
	padding: 12px 0 !important;
	min-width: 300px;
}

.ast-desktop .main-header-menu .menu-item > .sub-menu {
	display: block !important;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	pointer-events: none;
	transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.ast-desktop .main-header-menu .menu-item:hover > .sub-menu,
.ast-desktop .main-header-menu .menu-item.focus > .sub-menu,
.ast-desktop .main-header-menu .menu-item:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.ast-desktop .main-header-menu .sub-menu .menu-link {
	color: #f4f1ea !important;
	background: transparent !important;
	font-size: 0.88rem;
	font-weight: 400;
	position: relative;
	transition: color 0.2s ease, padding-left 0.25s ease, background 0.2s ease;
}

.ast-desktop .main-header-menu .sub-menu .menu-item + .menu-item > .menu-link {
	border-top: 1px solid rgba(212, 185, 138, 0.1);
}

.ast-desktop .main-header-menu .sub-menu .menu-link::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 0;
	height: 1px;
	background: #d4b98a;
	transition: width 0.25s ease;
}

.ast-desktop .main-header-menu .sub-menu .menu-link:hover {
	background: rgba(212, 185, 138, 0.07) !important;
	color: #d4b98a !important;
	padding-left: 2.1rem !important;
}

.ast-desktop .main-header-menu .sub-menu .menu-link:hover::before {
	width: 1.4rem;
}

#astra-footer-menu .menu-item > a {
	color: #122c3f;
}

#astra-footer-menu .menu-item > a:hover,
#astra-footer-menu .current-menu-item > a {
	color: #b08d57 !important;
}

.main-header-menu .sub-menu .menu-link > .ast-icon.icon-arrow,
.main-header-menu .sub-menu .menu-link > .ast-arrow-svg {
	display: none !important;
}

.main-header-menu .sub-menu .menu-link {
	padding: 0.72rem 1.6rem !important;
	line-height: 1.45 !important;
	white-space: normal !important;
}

.main-header-bar-navigation .main-header-menu > .menu-item > .menu-link {
	padding: 0 0.85rem;
	font-size: 0.92rem;
}

.ast-header-break-point .main-header-menu .sub-menu {
	background: #faf8f4 !important;
	border-left: 2px solid #d4b98a !important;
}

.ast-header-break-point .main-header-menu .sub-menu .menu-link {
	padding: 0.65rem 1rem !important;
	color: #122c3f !important;
}

.site-footer .footer-nav-wrap .astra-footer-horizontal-menu,
.site-footer .footer-nav-wrap .astra-footer-tablet-horizontal-menu {
	justify-content: flex-start !important;
	display: flex !important;
	flex-wrap: wrap;
	gap: 0.15rem 0;
}

#astra-footer-menu {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

#astra-footer-menu .menu-item > a {
	padding: 0.35rem 0.75rem !important;
	line-height: 1.5 !important;
}

@media (max-width: 921px) {
	.site-footer .footer-nav-wrap .astra-footer-tablet-horizontal-menu {
		justify-content: flex-start !important;
	}
}

/* Bouton header « Prendre contact » : palette or premium */
.ast-header-button-1 .ast-custom-button {
	background: #b08d57 !important;
	border-color: #b08d57 !important;
	color: #fff !important;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-radius: 0;
	padding: 12px 26px;
	transition: all 0.25s ease;
}

.ast-header-button-1 .ast-custom-button:hover {
	background: #d4b98a !important;
	border-color: #d4b98a !important;
	color: #0b1d2a !important;
}

/* Burger mobile : palette encre/or */
.ast-header-break-point .main-header-menu-toggle,
.ast-mobile-menu-trigger-fill,
.menu-toggle {
	background: #0b1d2a !important;
	color: #d4b98a !important;
	border-radius: 0 !important;
}

/* ——— Pages guides : reset boîtes Astra ——— */
.teo-guide-page.ast-plain-container #page .site-content {
	background: #faf8f4;
	padding-top: 0;
	padding-bottom: 0;
}

.teo-guide-page .site-content > .ast-container {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.teo-guide-page #primary {
	margin: 0;
	width: 100%;
	max-width: none;
}

.teo-guide-page article.ast-article-single,
.teo-guide-page article.ast-article-post {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
}

.teo-guide-page .entry-header {
	display: none !important;
}

.teo-guide-page .entry-content {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.teo-guide-page .entry-content::before,
.teo-guide-page .entry-content::after {
	display: none;
}

/* ——— Shell ——— */
.teo-guide-shell {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	color: #122c3f;
	line-height: 1.65;
}

/* Menu blanc/or sur header transparent (toutes pages à hero sombre) */
body.ast-theme-transparent-header .main-header-menu > .menu-item > .menu-link {
	color: #f4f1ea !important;
}

body.ast-theme-transparent-header .main-header-menu > .menu-item > .menu-link:hover,
body.ast-theme-transparent-header .main-header-menu > .current-menu-item > .menu-link,
body.ast-theme-transparent-header .main-header-menu > .current-menu-ancestor > .menu-link {
	color: #d4b98a !important;
}

body.ast-theme-transparent-header .main-header-menu .sub-menu {
	background: #0b1d2a !important;
	border-color: rgba(212, 185, 138, 0.18) !important;
	border-top-color: #b08d57 !important;
}

body.ast-theme-transparent-header .main-header-menu .sub-menu .menu-link {
	color: #f4f1ea !important;
}

body.ast-theme-transparent-header .main-header-menu .sub-menu .menu-link:hover {
	background: rgba(212, 185, 138, 0.07) !important;
	color: #d4b98a !important;
}

body.ast-theme-transparent-header .ast-mobile-svg-icon,
body.ast-theme-transparent-header .menu-toggle-icon {
	color: #d4b98a;
	fill: #d4b98a;
}

/* Hero full-bleed, aéré comme la home */
.teo-guide-hero {
	background-color: #0b1d2a;
	background-image:
		linear-gradient(100deg, rgba(8, 20, 30, 0.96) 0%, rgba(11, 29, 42, 0.88) 50%, rgba(11, 29, 42, 0.55) 100%),
		url("/wp-content/uploads/2025/06/pexels-photo-32647482-32647482-scaled.jpg");
	background-size: cover;
	background-position: center 30%;
	color: #fff;
	padding: 0 24px;
	position: relative;
}

.teo-guide-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 80% 60% at 90% 10%, rgba(212, 185, 138, 0.12), transparent 55%);
	pointer-events: none;
}

.teo-guide-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1120px;
	margin: 0 auto;
	padding: clamp(120px, 16vh, 150px) 0 clamp(70px, 10vh, 100px);
}

.teo-guide-hero__inner::before {
	content: "";
	display: block;
	width: 64px;
	height: 1px;
	background: #d4b98a;
	margin-bottom: 30px;
}

.teo-guide-hero__title {
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(2.2rem, 4.5vw, 3.6rem);
	font-weight: 500;
	line-height: 1.1;
	margin: 0 0 28px;
	color: #fff;
	letter-spacing: -0.01em;
	max-width: 820px;
}

.teo-guide-hero__lede {
	font-size: 1.08rem;
	font-weight: 300;
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
	max-width: 640px;
}

/* Corps */
.teo-guide-body {
	padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 1.5rem) clamp(3.5rem, 7vw, 6rem);
}

.teo-guide-body__container {
	max-width: 1120px;
	margin: 0 auto;
}

.teo-guide-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

/* Sans sommaire : article centré */
.teo-guide-layout:not(.teo-guide-layout--with-aside) .teo-guide-article {
	max-width: 860px;
	margin: 0 auto;
	width: 100%;
}

@media (min-width: 960px) {
	.teo-guide-layout--with-aside {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 2rem;
		align-items: start;
	}
}

.teo-guide-article {
	background: #fff;
	border: 1px solid #e6e1d8;
	box-shadow: 0 18px 50px rgba(11, 29, 42, 0.05);
	padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.35rem, 3vw, 2.75rem);
	min-width: 0;
}

/* Sommaire latéral */
.teo-guide-aside {
	margin-bottom: 1rem;
}

@media (min-width: 960px) {
	.teo-guide-aside {
		margin-bottom: 0;
		position: sticky;
		top: 1.25rem;
	}
}

.teo-guide-aside .teo-pillar-nav,
.teo-pillar-nav {
	background: #fff;
	border: 1px solid #e6e1d8;
	padding: 1.15rem 1.25rem;
	margin: 0;
	box-shadow: 0 10px 30px rgba(11, 29, 42, 0.04);
}

.teo-pillar-nav p {
	margin: 0;
}

.teo-pillar-nav p strong {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	color: #b08d57;
	font-weight: 600;
}

.teo-pillar-nav ul {
	list-style: none;
	margin: 0.85rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.teo-pillar-nav li {
	margin: 0;
}

.teo-pillar-nav a {
	display: block;
	padding: 0.5rem 0.65rem;
	text-decoration: none;
	color: #122c3f;
	font-weight: 500;
	font-size: 0.9rem;
	line-height: 1.35;
	transition: background 0.15s ease, color 0.15s ease;
}

.teo-pillar-nav a:hover {
	background: #faf8f4;
	color: #b08d57;
}

/* Typo contenu */
.teo-guide-article h2 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.75rem;
	font-weight: 600;
	color: #0b1d2a;
	margin: 2.25rem 0 0.85rem;
	padding-top: 0;
	line-height: 1.25;
	letter-spacing: 0;
	border: none;
}

.teo-guide-article h2:first-child {
	margin-top: 0;
}

.teo-guide-article h3 {
	font-size: 1.12rem;
	font-weight: 600;
	color: #0b1d2a;
	margin: 1.9rem 0 0.7rem;
	line-height: 1.4;
}

.teo-guide-article h3:first-child {
	margin-top: 0;
}

.teo-guide-article hr {
	border: none;
	border-top: 1px solid #e6e1d8;
	margin: 1.8rem 0;
}

.teo-guide-article p {
	font-size: 1.02rem;
	line-height: 1.78;
	color: #3a4a57;
	margin: 0 0 1.1rem;
}

.teo-guide-article ul,
.teo-guide-article ol {
	margin: 0.5rem 0 1.25rem;
	padding-left: 1.35rem;
}

.teo-guide-article li {
	font-size: 1.02rem;
	line-height: 1.7;
	color: #3a4a57;
	margin-bottom: 0.45rem;
}

.teo-guide-article a {
	color: #96743f;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(176, 141, 87, 0.4);
}

.teo-guide-article a:hover {
	color: #b08d57;
	text-decoration-color: #b08d57;
}

.teo-guide-article strong {
	color: #0b1d2a;
	font-weight: 600;
}

.teo-guide-article em {
	color: #5c6b78;
}

/* CTA */
.teo-pillar-cta {
	background: #0b1d2a;
	border-left: 2px solid #b08d57;
	padding: 1.65rem 1.75rem;
	margin: 2rem 0;
	color: #fff;
}

.teo-pillar-cta p {
	color: rgba(255, 255, 255, 0.92);
	margin: 0 0 0.5rem;
}

.teo-pillar-cta strong {
	color: #fff;
	font-size: 1.08rem;
	display: block;
	margin-bottom: 0.25rem;
}

.teo-pillar-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 0.85rem;
}

.teo-pillar-cta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.6rem;
	font-weight: 500;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: all 0.25s ease;
}

.teo-pillar-cta__actions a:first-child,
.teo-pillar-cta a:first-of-type {
	background: #b08d57;
	color: #fff !important;
}

.teo-pillar-cta__actions a:first-child:hover {
	background: #d4b98a;
	color: #0b1d2a !important;
}

.teo-pillar-cta__actions a:last-child:not(:only-child),
.teo-pillar-cta a:not(:first-of-type) {
	background: transparent;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.teo-pillar-cta__actions a:last-child:hover {
	border-color: #d4b98a;
	color: #d4b98a !important;
}

/* FAQ */
.teo-pillar-faq {
	margin: 0.5rem 0 0;
}

.teo-pillar-faq dt {
	font-weight: 600;
	color: #0b1d2a;
	margin: 1rem 0 0;
	padding: 0.85rem 1rem;
	background: #faf8f4;
	border: 1px solid #e6e1d8;
	font-size: 0.98rem;
	line-height: 1.45;
}

.teo-pillar-faq dd {
	margin: 0 0 0.75rem;
	padding: 0.85rem 1rem 1rem;
	background: #fff;
	border: 1px solid #e6e1d8;
	border-top: none;
	font-size: 0.98rem;
	line-height: 1.65;
	color: #3a4a57;
}

.teo-pillar-related {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e6e1d8;
}

.teo-pillar-related ul {
	list-style: none;
	padding: 0;
	margin: 0.65rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.teo-pillar-related a {
	font-weight: 500;
}

.teo-pillar-updated {
	font-size: 0.85rem;
	color: #8a8276;
	margin-top: 2rem;
	line-height: 1.5;
}

/* Formulaires */
.teo-guide-article .wpforms-container {
	margin-top: 1.25rem;
}

/* Blog archive — cartes articles */
.teo-guide-page .ast-row {
	gap: 1.5rem;
}

body.blog .post,
body.archive .post {
	background: #fff;
	padding: 1.5rem;
	box-shadow: 0 10px 30px rgba(11, 29, 42, 0.05);
	border: 1px solid #e6e1d8;
}

body.blog .entry-title a,
body.archive .entry-title a {
	color: #0b1d2a;
	font-weight: 600;
}

body.blog .entry-title a:hover,
body.archive .entry-title a:hover {
	color: #b08d57;
}

@media (max-width: 959px) {
	.teo-guide-hero__inner {
		padding: 100px 0 60px;
	}

	.teo-guide-article {
		padding: 1.35rem 1.15rem 1.75rem;
	}
}
