/*
Theme Name: Alterio Partners 2026
Theme URI: https://alteriopartners.com
Author: Alterio Partners
Description: Thème par blocs du site Alterio Partners, aligné sur le design system Alterio (logo officiel, navy #254061, orange #FD9806, Raleway / Open Sans). Baseline : « Vos systèmes à la hauteur de vos fonds. »
Version: 2.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: Propriétaire — Alterio Partners
Text Domain: alterio-partners-2026
*/

/* ---------- En-tête ---------- */
.ap-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid #e2e6eb;
}
body.admin-bar .ap-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ap-header { top: 46px; } }
.ap-header .wp-block-site-logo img,
.ap-header .ap-logo img { height: 46px; width: auto; display: block; }
.ap-header .wp-block-navigation .wp-block-navigation-item__content { padding: 0.5rem 0; }
.ap-header .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.ap-header .wp-block-navigation-item__content:hover { color: #254061; box-shadow: inset 0 -2px 0 #fd9806; }
.ap-header .wp-block-navigation__submenu-container { border: 1px solid #e2e6eb !important; border-radius: 8px; padding: 0.5rem 0 !important; box-shadow: 0 6px 24px rgba(37, 64, 97, 0.14); min-width: 260px !important; }
.ap-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.5rem 1rem !important; box-shadow: none !important; }
.ap-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: #f5f5f5; }

/* ---------- Titres de section ---------- */
.ap-eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 0 !important;
}
.ap-eyebrow--hero { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.16em; }
.ap-rule {
	width: 56px !important;
	max-width: 56px !important;
	height: 3px !important;
	border: 0 !important;
	border-radius: 999px;
	background: #fd9806 !important;
	opacity: 1 !important;
	margin-left: 0 !important;
}
.has-text-align-center + .ap-rule, .ap-rule.aligncenter { margin-left: auto !important; margin-right: auto !important; }

/* ---------- Cartes de services ---------- */
.ap-card {
	height: 100%;
	box-sizing: border-box;
	border: 1px solid #e2e6eb;
	border-top: 3px solid #fd9806;
	border-radius: 8px;
	box-shadow: var(--wp--preset--shadow--card);
	transition: transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ap-card:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lift); }
.ap-card .ap-card__link { margin-top: auto; }
.ap-card .ap-card__link a::after { content: " →"; }

/* ---------- Liste des enjeux ---------- */
ul.ap-enjeux { list-style: none; padding-left: 0; margin: 0; }
ul.ap-enjeux li {
	position: relative;
	padding: 0.875rem 0 0.875rem 2.25rem;
	border-bottom: 1px solid #e2e6eb;
	font-size: 1.0625rem;
	line-height: 1.55;
}
ul.ap-enjeux li:first-child { padding-top: 0; }
ul.ap-enjeux li:first-child::before { top: 0; }
ul.ap-enjeux li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.875rem;
	width: 1.375rem;
	height: 1.375rem;
	border-radius: 50%;
	background: #fd9806 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23254061' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.875rem no-repeat;
}

/* ---------- Arguments « Pourquoi Alterio » ---------- */
.ap-reason { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 1.375rem; }

/* ---------- Chiffres ---------- */
.ap-figure__value { line-height: 1 !important; }
.ap-figure__rule { width: 32px !important; max-width: 32px !important; height: 3px !important; background: #fd9806 !important; border: 0 !important; border-radius: 999px; opacity: 1 !important; margin: 0.875rem 0 0.75rem !important; }

/* ---------- Pied de page ---------- */
.ap-footer a { color: rgba(255, 255, 255, 0.78); }
.ap-footer a:hover { color: #ffbb5e; }
.ap-footer .ap-footer__list { list-style: none; padding: 0; margin: 0; }
.ap-footer .ap-footer__list li { margin: 0 0 0.5rem; }
.ap-footer .ap-logo img { height: 52px; width: auto; }

/* ---------- Divers ---------- */
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-block-image.ap-hero-visual img { border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .ap-card { transition: none; } .ap-card:hover { transform: none; } }
.ap-figure__value { margin: 0 !important; }
.ap-figure > * { margin-block: 0; }

/* ======================= v2.1 ======================= */

/* ---------- En-tête : sélecteur de langue, mobile ---------- */
.ap-header .ap-lang {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem;
	border: 1px solid #e2e6eb; border-radius: 999px;
	font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em;
	color: #254061; text-decoration: none;
}
.ap-header .ap-lang:hover { border-color: #fd9806; color: #254061; }
.ap-header .wp-block-button__link { white-space: nowrap; }
@media (max-width: 600px) {
	.ap-header .ap-logo img { height: 38px !important; }
	.ap-header__actions { gap: 0.75rem !important; }
	.ap-header .ap-header__cta .wp-block-button__link { padding: 0.5rem 0.875rem !important; font-size: 0.875rem; }
	.ap-header .ap-lang { min-width: 2rem; height: 2rem; }
}
@media (max-width: 380px) { .ap-header .ap-header__cta { display: none; } }

/* ---------- Pied de page ---------- */
.ap-footer .ap-nowrap { white-space: nowrap; }
.ap-footer .wp-block-heading { margin-bottom: 0.875rem; }

/* ---------- Haut de page intérieur ---------- */
.ap-hero .ap-lead { max-width: 46rem; margin-top: 1.5rem; }
.ap-lead { max-width: 52rem; }
.ap-hero h1 { max-width: 52rem; }

/* ---------- Étapes de démarche ---------- */
ol.ap-steps {
	list-style: none; counter-reset: ap-step; padding: 0; margin: var(--wp--preset--spacing--50) 0 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem;
}
ol.ap-steps > li {
	counter-increment: ap-step; position: relative; background: #fff; border: 1px solid #e2e6eb; border-radius: 8px;
	padding: 3.75rem 1.5rem 1.5rem; line-height: 1.55; color: var(--wp--preset--color--ink-soft); box-shadow: var(--wp--preset--shadow--card);
}
ol.ap-steps > li::before {
	content: counter(ap-step); position: absolute; top: 1.25rem; left: 1.5rem;
	width: 2rem; height: 2rem; border-radius: 50%; background: #fd9806; color: #254061;
	font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 0.9375rem;
	display: flex; align-items: center; justify-content: center;
}
ol.ap-steps > li strong { display: block; margin-bottom: 0.375rem; color: #254061; font-family: var(--wp--preset--font-family--heading); font-size: 1.1875rem; }
.has-grey-bg-background-color ol.ap-steps > li { box-shadow: none; }

/* ---------- Cartes statiques, outils, valeurs ---------- */
.ap-card--static:hover { transform: none; box-shadow: var(--wp--preset--shadow--card); }
ul.ap-tools { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
ul.ap-tools li { padding: 0.3125rem 0.75rem; border-radius: 999px; background: #d6e0ec; color: #254061; font-size: 0.875rem; font-weight: 600; }
.ap-note { margin-top: 1.5rem !important; }
.ap-value { border-top: 3px solid #fd9806; padding-top: 1.25rem; }
.ap-value h3 { margin-top: 0; margin-bottom: 0.5rem; }

/* ---------- Associés ---------- */
.ap-person .ap-person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 12px; display: block; }
.ap-person .ap-person__name { margin: 1.125rem 0 0.25rem; }
.ap-person .ap-person__role { margin: 0 0 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ap-person .ap-person__link a { font-weight: 700; color: #b86a04; }

/* ---------- Pages légales ---------- */
.ap-legal h2 { font-size: 1.375rem; margin-top: 2.25rem; margin-bottom: 0.5rem; }
.ap-legal h2:first-child { margin-top: 0; }
.ap-legal p { color: var(--wp--preset--color--ink-soft); }

/* ---------- Contact ---------- */
.ap-contact-card { padding: 2rem 1.75rem; }
.ap-contact-card a { color: #b86a04; font-weight: 600; }
.ap-form .wpforms-container { margin: 0 !important; }
.ap-form .wpforms-field-label, .ap-form .wpforms-field-sublabel { color: #254061 !important; }
.ap-form .wpforms-field-label { font-family: var(--wp--preset--font-family--heading) !important; font-weight: 700 !important; }
.ap-form input[type="text"], .ap-form input[type="email"], .ap-form select, .ap-form textarea {
	border: 1px solid #c9d3df !important; border-radius: 8px !important; padding: 0.75rem 0.875rem !important;
	font-family: var(--wp--preset--font-family--body) !important; font-size: 1rem !important; max-width: 100% !important; box-shadow: none !important;
}
.ap-form input:focus, .ap-form select:focus, .ap-form textarea:focus { border-color: #fd9806 !important; outline: 2px solid rgba(253, 152, 6, 0.25) !important; }
.ap-form .wpforms-submit {
	background: #fd9806 !important; color: #254061 !important; border: 0 !important; border-radius: 6px !important;
	padding: 0.875rem 1.75rem !important; font-family: var(--wp--preset--font-family--heading) !important; font-weight: 700 !important; font-size: 1rem !important; height: auto !important;
}
.ap-form .wpforms-submit:hover { background: #ffbb5e !important; }
.ap-form .wpforms-field-checkbox li label { font-size: 0.875rem !important; color: var(--wp--preset--color--ink-soft) !important; }
.ap-form .wpforms-field-checkbox a { color: #b86a04; }
.ap-form .wpforms-confirmation-container-full { background: #fff7eb !important; border: 1px solid #ffbb5e !important; color: #254061 !important; border-radius: 8px; }
