/*
Theme Name: RunMotion Team
Theme URI: https://runmotion.team/
Author: RunMotion
Description: Thème one-page du club RunMotion Team (remplace Divi).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: runmotion-team
*/

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-700.woff2") format("woff2"); }

:root {
	--green: #33e8a6;
	--green-dark: #0f9e6c;
	--green-soft: #e7fbf3;
	--ink: #0e1916;
	--text: #3b4643;
	--muted: #6b7672;
	--line: #e3e8e6;
	--bg: #ffffff;
	--bg-alt: #f5f7f6;
	--radius: 16px;
	--wrap: 1120px;
	--header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.7 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand img { height: 34px; width: auto; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--text); white-space: nowrap; }
.site-nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 18, 15, .15) 0%, rgba(8, 18, 15, .35) 45%, rgba(8, 18, 15, .82) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 72px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(8, 18, 15, .45); }
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 1px; }
.hero h1 { color: #fff; font-size: clamp(44px, 8vw, 84px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.hero__lead { font-size: clamp(18px, 2.2vw, 22px); max-width: 620px; color: rgba(255, 255, 255, .92); margin-bottom: 28px; }
.status-pill {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 18px; border-radius: 999px;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
	color: #fff; font-size: 15px; font-weight: 500; text-decoration: none;
	backdrop-filter: blur(6px);
}
.status-pill:hover { color: #fff; background: rgba(255, 255, 255, .22); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffb547; }

/* Hero des pages */
.hero--page { min-height: min(56vh, 480px); }
.hero--page h1 { font-size: clamp(40px, 6vw, 64px); }

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head p { color: var(--muted); font-size: 18px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 12px; display: block; }

/* Notice inscriptions */
.notice { padding: 56px 0 0; }
.notice__card {
	display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
	background: var(--green-soft); border: 1px solid #c8f3e1; border-radius: var(--radius);
	padding: 32px 36px;
}
.notice__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: var(--green); display: grid; place-items: center; }
.notice__card h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 10px; }
.notice__card p:last-child { margin-bottom: 0; }

/* Le club */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.tagline { font-weight: 600; color: var(--ink); border-left: 3px solid var(--green); padding-left: 16px; margin-top: 24px; }

/* Avantages */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card__num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.note { margin-top: 32px; color: var(--muted); }
.note strong { color: var(--ink); }

/* Rendez-vous */
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.event__date { font-weight: 600; color: var(--green-dark); }
.event__name { font-size: 20px; font-weight: 600; color: var(--ink); }
.event__place { color: var(--muted); font-size: 15px; }
.tag { font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.callout { margin-top: 40px; display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--ink); color: rgba(255, 255, 255, .85); border-radius: var(--radius); padding: 28px 32px; }
.callout strong { color: #fff; display: block; font-size: 18px; }
.callout a { color: var(--ink); background: var(--green); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.callout a:hover { background: #fff; }

/* Séances (groupe Chambéry) */
.sessions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.session { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.session__when { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--green-dark); background: var(--green-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.session p { color: var(--muted); font-size: 16px; }
.session__place { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; text-decoration: none; display: flex; gap: 8px; align-items: flex-start; }
.session__place::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 4px; background: var(--green-dark); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.session__place:hover { text-decoration: underline; }
.split .faq { max-width: none; }

/* Qui sommes-nous */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; }
.person { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fff; }
.person strong { display: block; color: var(--ink); }
.person span { display: block; font-size: 14px; color: var(--green-dark); font-weight: 500; margin-bottom: 4px; }
.person p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
.small { font-size: 15px; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 600; color: var(--ink); font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 0 24px; }
.faq .answer ul { margin: 0 0 1em; padding-left: 20px; }
.faq .answer li { margin-bottom: 6px; }
.faq .answer > :last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 56px 0 40px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.site-footer .brand-name { color: #fff; font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* Pages simples */
.page-content { max-width: 760px; padding: 72px 24px 96px; margin: 0 auto; }
.page-content h1 { font-size: clamp(32px, 5vw, 48px); }
.page-content h2 { font-size: 26px; margin-top: 1.6em; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; gap: 36px; }
	.split--reverse > :first-child { order: 0; }
	.grid { grid-template-columns: 1fr 1fr; }
	.sessions { grid-template-columns: 1fr; }
	.event { grid-template-columns: 1fr auto; gap: 4px 16px; }
	.event__date { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
	:root { --header-h: 60px; }
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.brand img { height: 28px; }
	.site-nav { gap: 18px; }
	.site-nav a { font-size: 14px; }
	.site-nav .nav-optional { display: none; }
	.eyebrow { font-size: 11px; }
	.hero { min-height: 560px; }
	.hero--page { min-height: 440px; }
	.hero .wrap { padding-bottom: 48px; }
	.section { padding: 64px 0; }
	.section__head { margin-bottom: 32px; }
	.notice { padding-top: 40px; }
	.notice__card { grid-template-columns: 1fr; padding: 24px; gap: 16px; }
	.grid, .people { grid-template-columns: 1fr; }
	.card { padding: 22px; }
	.callout { padding: 24px; }
	.site-footer .wrap { grid-template-columns: 1fr; }
	.page-content { padding: 48px 16px 64px; }
}

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