/*
Theme Name: Growth Target
Description: Thème sur mesure Growth Target — léger, sans page builder, compatible TutorLMS et WooCommerce.
Version: 1.0.0
Author: Teckpia
Text Domain: growthtarget
*/

@font-face { font-family: "Outfit"; src: url(assets/outfit.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(assets/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
	--brand: #4b3fc4;
	--brand-2: #7c5ce0;
	--brand-ink: #2a2280;
	--brand-soft: #efedfd;
	--accent: #ff8a4c;
	--ink: #14122b;
	--text: #3c3a55;
	--muted: #6c6a85;
	--line: #e6e4f0;
	--bg: #ffffff;
	--bg-2: #f7f6fc;
	--dark: #110e2e;
	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgb(20 18 43 / .04), 0 12px 32px -12px rgb(20 18 43 / .14);
	--font-head: "Outfit", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;
	--gradient: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);

	/* TutorLMS */
	--tutor-color-primary: #4b3fc4;
	--tutor-color-primary-rgb: 75, 63, 196;
	--tutor-color-primary-hover: #2a2280;
	--tutor-body-color: #3c3a55;
	--tutor-border-color: #e6e4f0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.65 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section--tight { padding: 32px 0 clamp(64px, 8vw, 104px); }
.section--flush { padding-top: 0; }
.section--dark { background: var(--dark); color: #c9c6e6; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__head .muted { font-size: 1.1rem; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .8rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.section--dark .eyebrow { color: #b3a6ff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgb(34 197 94 / .18); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: 600 .95rem/1.2 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 24px -8px rgb(75 63 196 / .6); }
.btn--primary:hover { box-shadow: 0 12px 28px -8px rgb(75 63 196 / .75); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--brand-ink); }
.btn--outline-light { color: #fff; border-color: rgb(255 255 255 / .4); }
.btn--outline-light:hover { background: rgb(255 255 255 / .1); }
.link-arrow { font-weight: 600; text-decoration: none; font-size: .92rem; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }
.link-arrow--light { color: #d9d3ff; display: inline-block; margin-top: 14px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .8); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(20 18 43 / .4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.nav__list a:hover, .nav__list [aria-current], .nav__list .current-menu-item a { color: var(--brand); }
.nav__list [aria-current]::after, .nav__list .current-menu-item a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--gradient); }
.nav__actions { display: flex; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.nav-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 980px) {
	.burger { display: flex; }
	.nav { position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 20px; padding: 24px 16px 32px; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgb(20 18 43 / .3); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; }
	.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
	.nav__list { flex-direction: column; gap: 4px; }
	.nav__list a { display: block; padding: 12px 4px; font-size: 1.1rem; }
	.nav__list [aria-current]::after, .nav__list .current-menu-item a::after { display: none; }
	.nav__actions { flex-direction: column; }
}

/* Hero */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgb(124 92 224 / .18), transparent); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero h1 em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.hero__proof strong { color: var(--ink); font-family: var(--font-head); font-size: 1.1rem; margin-right: 4px; }
.hero__media { position: relative; }
.hero__media img { border-radius: 28px; aspect-ratio: 4 / 4.2; object-fit: cover; width: 100%; box-shadow: 0 40px 80px -40px rgb(20 18 43 / .5); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow); font-size: .88rem; color: var(--ink); line-height: 1.3; animation: float 6s ease-in-out infinite; }
.float-card--a { left: -24px; bottom: 56px; }
.float-card--b { right: -16px; top: 40px; animation-delay: -3s; }
.float-card__k { font: 700 1.5rem/1 var(--font-head); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.float-card__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #dcfce7; color: #15803d; font-weight: 700; }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__media { order: -1; }
	.hero__media img { aspect-ratio: 16 / 11; }
	.float-card--a { left: 12px; bottom: 12px; }
	.float-card--b { right: 12px; top: 12px; }
}

/* Bandeau outils */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: 600 1.05rem/1 var(--font-head); color: var(--muted); white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* Cartes formation */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { display: block; aspect-ratio: 16 / 10; background: var(--gradient); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { display: grid; place-items: center; height: 100%; font: 700 4rem/1 var(--font-head); color: rgb(255 255 255 / .85); }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.tag--soft { background: var(--brand-soft); color: var(--brand); }
.card__title { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.card__price { font: 700 1.2rem/1 var(--font-head); color: var(--ink); }
.card__price small { font: 500 .75rem var(--font-body); color: var(--muted); }

/* Offres */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .03); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.plan--featured { background: linear-gradient(160deg, rgb(124 92 224 / .35), rgb(75 63 196 / .15)); border-color: rgb(179 166 255 / .5); }
.plan__badge { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #2b1203; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan__name { font-size: 1.6rem; margin-bottom: 6px; }
.plan__tagline { color: #d9d3ff; font-weight: 500; }
.checks { list-style: none; padding: 0; margin: 12px 0 28px; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgb(179 166 255 / .2); color: #cfc6ff; font-size: .72rem; font-weight: 700; }
.plan__cta { margin-top: auto; text-align: center; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Financement (bento) */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento__item { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.bento__item--wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-content: center; }
.bento__item--wide img { grid-row: span 2; border-radius: 12px; }
.bento__item--accent { background: var(--gradient); color: #e9e5ff; border: 0; grid-column: span 2; }
.bento__item--accent h3 { color: #fff; }
.bento__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 1.2rem; margin-bottom: 16px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento__item--wide, .bento__item--accent { grid-column: auto; } }

/* Bandeau CTA */
.cta-band { background: var(--dark); background-image: radial-gradient(circle at 85% 20%, rgb(124 92 224 / .55), transparent 55%), radial-gradient(circle at 10% 110%, rgb(255 138 76 / .25), transparent 45%); border-radius: 28px; padding: clamp(36px, 6vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; color: #c9c6e6; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pages */
.page-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--bg-2), transparent); }
.page-hero--compact { padding-bottom: 40px; }
.page-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.prose .lead { font-size: 1.2rem; color: var(--ink); }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; background: #fff; }
.step__n { font: 700 .9rem/1 var(--font-head); color: var(--brand); background: var(--brand-soft); padding: 6px 10px; border-radius: 8px; display: inline-block; margin-bottom: 20px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 500; font-size: .92rem; color: var(--ink); }
.form input, .form textarea { font: inherit; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); color: var(--ink); transition: border-color .2s, background .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgb(75 63 196 / .12); }
.form .btn { justify-self: start; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin: 0; }
.notice--ok { background: #dcfce7; color: #14532d; }
.notice--err { background: #fee2e2; color: #7f1d1d; }
.contact__side { display: grid; gap: 20px; }
.contact__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact__card h2 { font-size: 1.3rem; }
.contact__card--accent { background: var(--gradient); color: #e9e5ff; border: 0; }
.contact__card--accent h2 { color: #fff; }
@media (max-width: 900px) { .contact, .form__row { grid-template-columns: 1fr; } }

/* Pied de page */
.site-footer { background: var(--dark); color: #a9a5cc; padding: 72px 0 24px; font-size: .93rem; }
.site-footer a { color: #d9d6f2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.site-footer__logo { height: 52px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.site-footer .muted { color: #8c88b0; }
.site-footer__title { font: 600 .8rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact__card .site-footer__list a { color: var(--brand); }
.site-footer__badges { display: flex; align-items: center; gap: 14px; }
.site-footer__badges img { background: #fff; border-radius: 10px; padding: 6px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .06); }
.socials a:hover { background: var(--brand); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .82rem; color: #8c88b0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Gabarit générique + TutorLMS / WooCommerce */
.page-body { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.page-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 32px; }
.entry-list { padding: 24px 0; border-bottom: 1px solid var(--line); }
.tutor-wrap, .tutor-course-details-page { font-family: var(--font-body); }
.tutor-course-details-page, .tutor-courses-wrap, .tutor-page-wrap { padding-block: clamp(32px, 5vw, 64px); }
.tutor-course-details-title, .tutor-course-name, .tutor-card-title { font-family: var(--font-head) !important; letter-spacing: -.02em; }
.tutor-card, .tutor-course-card { border-radius: var(--radius) !important; border-color: var(--line) !important; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.tutor-course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tutor-btn { border-radius: 999px !important; }

/* Encart RDV sur la fiche formation (remplace « Acheter maintenant ») */
.gt-rdv { display: grid; gap: 10px; }
.gt-rdv__price { font: 700 1.8rem/1 var(--font-head); color: var(--ink); margin: 0 0 8px; }
.gt-rdv__price small { font: 500 .8rem var(--font-body); color: var(--muted); }
.gt-rdv__title { font: 600 1.15rem/1.3 var(--font-head); color: var(--ink); margin: 0; }
.gt-rdv__text { font-size: .9rem; color: var(--muted); margin: 0 0 6px; }
.gt-rdv__fund { font-size: .8rem; color: var(--muted); text-align: center; margin: 4px 0 0; }

/* Apparition au scroll (seulement si JS actif) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
