/*
Theme Name: ALTIVAX LearnHub
Description: Site vitrine d'ALTIVAX LearnHub. Les pages sont faites de blocs WordPress standard ; les classes « lh-… » (Avancé → Classes CSS) donnent la mise en forme des sections.
Version: 1.0.0
Author: ALTIVAX
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: altivax-learnhub
*/

:root {
  --lh-navy: #152332; --lh-navy2: #1e3044; --lh-teal: #128f8b; --lh-teal2: #0b6764; --lh-cyan: #36eee0;
  --lh-bg: #f4f7f9; --lh-line: #e2e8ee; --lh-text: #1c2b3a; --lh-muted: #5b6b7b; --lh-radius: 14px;
  --lh-max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--lh-text); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--lh-teal2); }
h1, h2, h3, h4 { color: var(--lh-navy); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.lh-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: .5rem 1rem; clip: auto; width: auto; height: auto; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.lh-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--lh-line); }
.lh-header .lh-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }
.lh-brand img { height: 46px; width: auto; display: block; }
.lh-nav { display: flex; align-items: center; gap: 1.6rem; }
.lh-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.lh-nav a { color: var(--lh-text); text-decoration: none; font-weight: 600; font-size: .97rem; }
.lh-nav a:hover, .lh-nav .current-menu-item > a { color: var(--lh-teal); }
.lh-menu-toggle { display: none; background: none; border: 1px solid var(--lh-line); border-radius: 8px; padding: .45rem .7rem; font: inherit; cursor: pointer; }
.lh-wrap { max-width: var(--lh-max); margin: 0 auto; padding: 0 24px; }

/* Buttons (also the WordPress Button block) */
.lh-btn, .wp-block-button__link { display: inline-block; padding: .8rem 1.4rem; border-radius: 10px; background: var(--lh-teal); color: #fff !important; font-weight: 700; text-decoration: none; border: 2px solid var(--lh-teal); transition: background .15s, transform .15s; }
.lh-btn:hover, .wp-block-button__link:hover { background: var(--lh-teal2); border-color: var(--lh-teal2); transform: translateY(-1px); }
.is-style-outline .wp-block-button__link, .lh-btn.ghost { background: transparent; color: var(--lh-teal2) !important; }
.is-style-outline .wp-block-button__link:hover { background: rgba(18, 143, 139, .08); }
.lh-btn.small { padding: .5rem 1rem; font-size: .92rem; }

/* ── Content ────────────────────────────────────────────────────────────── */
.lh-main > * { max-width: var(--lh-max); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.lh-main > .alignfull, .lh-main > .lh-section { max-width: none; padding-left: 0; padding-right: 0; }
.lh-page-title { padding-top: 3.2rem; padding-bottom: 1rem; }
.lh-page-title p { color: var(--lh-muted); font-size: 1.15rem; max-width: 720px; }
.lh-section { padding: clamp(3rem, 7vw, 5.5rem) 24px !important; margin: 0 !important; }
.lh-section > * { max-width: var(--lh-max); margin-left: auto !important; margin-right: auto !important; }
.lh-section.lh-alt { background: var(--lh-bg); }
.lh-section.lh-dark { background: linear-gradient(135deg, #152332 0%, #12403f 100%); color: #d8e3ea; }
.lh-section.lh-dark h1, .lh-section.lh-dark h2, .lh-section.lh-dark h3 { color: #fff; }
.lh-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem !important; font-weight: 700; color: var(--lh-teal) !important; margin-bottom: .6rem !important; }
.lh-dark .lh-kicker { color: var(--lh-cyan) !important; }
.lh-lead { font-size: 1.2rem; color: var(--lh-muted); max-width: 720px; }
.lh-dark .lh-lead { color: #b9cad6; }
.lh-center { text-align: center; }
.lh-center .lh-lead { margin-left: auto; margin-right: auto; }
.lh-center .wp-block-buttons { justify-content: center; }

/* Hero */
.lh-hero { padding-top: clamp(3rem, 7vw, 5rem) !important; }
.lh-hero .wp-block-columns { align-items: center; gap: 3rem; }
.lh-hero h1 span, .lh-hero h1 em { color: var(--lh-teal); font-style: normal; }
.lh-hero .lh-proof { font-size: .92rem; color: var(--lh-muted); margin-top: 1.2rem; }
.lh-hero .lh-proof strong { color: var(--lh-navy); }

/* Cards */
.lh-cards { gap: 1.4rem !important; }
.lh-cards > .wp-block-column, .lh-card { background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 1.6rem 1.5rem; transition: box-shadow .2s, transform .2s; }
.lh-cards > .wp-block-column:hover { box-shadow: 0 12px 32px rgba(21, 35, 50, .08); transform: translateY(-2px); }
.lh-alt .lh-cards > .wp-block-column { background: #fff; }
.lh-cards h3 { margin-top: .9rem; }
.lh-cards p { color: var(--lh-muted); font-size: .98rem; margin: 0; }
.lh-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(18, 143, 139, .1); display: flex; align-items: center; justify-content: center; margin: 0 !important; }
.lh-ic::before { content: ""; width: 24px; height: 24px; background: var(--lh-teal); -webkit-mask: var(--lh-icon) center / contain no-repeat; mask: var(--lh-icon) center / contain no-repeat; }
.lh-ic-course { --lh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H20v15H6.5A2.5 2.5 0 0 0 4 20.5zM6.5 18H20v3H6.5a1.5 1.5 0 0 1 0-3z'/%3E%3C/svg%3E"); }
.lh-ic-quiz { --lh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11l2 2 4-4M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lh-ic-chart { --lh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V10h3v10zm6.5 0V4h3v16zM17 20v-7h3v7z'/%3E%3C/svg%3E"); }
.lh-ic-award { --lh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8 14l-2 8 6-3 6 3-2-8z'/%3E%3C/svg%3E"); }
.lh-ic-family { --lh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='6' r='3'/%3E%3Ccircle cx='17' cy='8' r='2.5'/%3E%3Cpath d='M2 20c0-4 3-7 6-7s6 3 6 7zm12.5 0c0-2-.6-3.8-1.6-5.2.7-.5 1.4-.8 2.1-.8 2.5 0 5 2.4 5 6z'/%3E%3C/svg%3E"); }
.lh-ic-brand { --lh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 0 0 0 18c1 0 1.5-.7 1.5-1.5 0-.4-.2-.8-.4-1.1-.3-.3-.4-.6-.4-1 0-.8.7-1.4 1.5-1.4H16a5 5 0 0 0 5-5c0-4.4-4-8-9-8zM6.5 12a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm3-4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm3 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z'/%3E%3C/svg%3E"); }
.lh-ic-lang { --lh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm6.9 6h-3a15.7 15.7 0 0 0-1.4-3.6A8 8 0 0 1 18.9 8zM12 4c.8 1.2 1.5 2.5 1.9 4h-3.8c.4-1.5 1.1-2.8 1.9-4zM4.3 14a8.2 8.2 0 0 1 0-4h3.4a16.5 16.5 0 0 0 0 4zm.8 2h3a15.7 15.7 0 0 0 1.4 3.6A8 8 0 0 1 5.1 16zm3-8h-3a8 8 0 0 1 4.4-3.6C8 5.6 7.5 6.8 8.1 8zM12 20c-.8-1.2-1.5-2.5-1.9-4h3.8c-.4 1.5-1.1 2.8-1.9 4zm2.3-6H9.7a14.7 14.7 0 0 1 0-4h4.6a14.7 14.7 0 0 1 0 4zm.3 5.6c.6-1.1 1.1-2.3 1.4-3.6h3a8 8 0 0 1-4.4 3.6zm1.7-5.6a16.5 16.5 0 0 0 0-4h3.4a8.2 8.2 0 0 1 0 4z'/%3E%3C/svg%3E"); }
.lh-ic-shield { --lh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5z'/%3E%3C/svg%3E"); }
.lh-ic-support { --lh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a9 9 0 0 0-9 9v6a3 3 0 0 0 3 3h2v-8H5v-1a7 7 0 0 1 14 0v1h-3v8h3v1h-6v2h6a2 2 0 0 0 2-2v-9a9 9 0 0 0-9-9z'/%3E%3C/svg%3E"); }

/* Steps */
.lh-steps { counter-reset: lh-step; gap: 1.4rem !important; }
.lh-steps > .wp-block-column { position: relative; padding-top: 3.4rem; }
.lh-steps > .wp-block-column::before { counter-increment: lh-step; content: counter(lh-step); position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--lh-cyan); color: var(--lh-navy); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.lh-steps p { color: inherit; opacity: .85; }

/* Audience tags */
.lh-tags { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; list-style: none; padding: 0 !important; }
.lh-tags li { background: #fff; border: 1px solid var(--lh-line); border-radius: 99px; padding: .45rem 1rem; font-weight: 600; font-size: .95rem; }

/* Pricing */
.lh-pricing { gap: 1.2rem !important; }
.lh-pricing > .wp-block-column { background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 1.8rem 1.5rem; display: flex; flex-direction: column; }
.lh-pricing > .wp-block-column.lh-featured { border: 2px solid var(--lh-teal); box-shadow: 0 14px 40px rgba(18, 143, 139, .15); }
.lh-pricing .lh-users { font-size: 2.4rem; font-weight: 800; color: var(--lh-navy); margin: .2rem 0 0; line-height: 1; }
.lh-pricing .lh-unit { color: var(--lh-muted); font-size: .92rem; }
.lh-pricing .lh-price { font-size: 1.15rem; font-weight: 700; color: var(--lh-teal2); margin: 1rem 0; }
.lh-pricing ul { padding-left: 1.1rem; margin: 0 0 1.4rem; color: var(--lh-muted); font-size: .95rem; flex: 1; }
.lh-pricing .wp-block-buttons { margin-top: auto; }
.lh-pricing .wp-block-button, .lh-pricing .wp-block-button__link { width: 100%; text-align: center; }
.lh-badge { display: inline-block; background: var(--lh-cyan); color: var(--lh-navy); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .6rem; border-radius: 99px; }

/* FAQ (Details block) */
.lh-faq .wp-block-details { border-bottom: 1px solid var(--lh-line); padding: 1.1rem 0; }
.lh-faq summary { font-weight: 700; cursor: pointer; color: var(--lh-navy); font-size: 1.05rem; }
.lh-faq .wp-block-details p { color: var(--lh-muted); margin: .7rem 0 0; }

/* ── Lead forms ─────────────────────────────────────────────────────────── */
.alx-lead { background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: 0 16px 48px rgba(21, 35, 50, .08); color: var(--lh-text); }
.alx-lead h3 { margin-bottom: 1rem; }
.alx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.alx-lead label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; color: var(--lh-navy); }
.alx-lead .alx-wide, .alx-lead .alx-company { grid-column: 1 / -1; }
.alx-lead.alx-person .alx-company { display: none; }
.alx-lead input[type=text], .alx-lead input[type=email], .alx-lead input[type=tel], .alx-lead input[type=number], .alx-lead select, .alx-lead textarea {
  font: inherit; font-weight: 400; padding: .7rem .8rem; border: 1px solid #cfd8e0; border-radius: 9px; width: 100%; background: #fff; color: var(--lh-text); }
.alx-lead input:focus, .alx-lead select:focus, .alx-lead textarea:focus { outline: 3px solid rgba(18, 143, 139, .25); border-color: var(--lh-teal); }
.alx-type { border: 0; padding: 0; margin: 0 0 1rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.alx-type legend { font-weight: 700; margin-bottom: .4rem; padding: 0; }
.alx-lead .alx-type label, .alx-lead .alx-consent { flex-direction: row; align-items: flex-start; gap: .5rem; font-weight: 400; }
.alx-consent { margin: 1rem 0; font-size: .86rem !important; color: var(--lh-muted) !important; }
.alx-consent input { margin-top: .25rem; }
.alx-submit { width: 100%; padding: .95rem; border: 0; border-radius: 10px; background: var(--lh-teal); color: #fff; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.alx-submit:hover { background: var(--lh-teal2); }
.alx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alx-lead-error { background: #fde8e6; color: #b42318; padding: .7rem 1rem; border-radius: 8px; }
.alx-lead-done { background: #e3f5ec; color: #1a7f4b; padding: 1.4rem 1.6rem; border-radius: var(--lh-radius); font-size: 1.05rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.lh-footer { background: var(--lh-navy); color: #a9b9c7; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.lh-footer .lh-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2rem; }
.lh-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.lh-footer a { color: #cfdbe5; text-decoration: none; }
.lh-footer a:hover { color: var(--lh-cyan); }
.lh-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.lh-footer .lh-logo img { height: 44px; width: auto; }
.lh-footer .lh-bottom { border-top: 1px solid var(--lh-navy2); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

/* ── Phones ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lh-menu-toggle { display: block; }
  .lh-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--lh-line); flex-direction: column; align-items: stretch; padding: 1rem 24px 1.4rem; gap: 1rem; }
  .lh-nav.open { display: flex; }
  .lh-nav ul { flex-direction: column; gap: .8rem; }
  .lh-footer .lh-cols { grid-template-columns: 1fr 1fr; }
  .alx-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .lh-brand img { height: 38px; }
  .lh-footer .lh-cols { grid-template-columns: 1fr; }
}
