/* =================================================================
   ATTM Rally - main stylesheet
   Reproduit le design "Proposition 3 - Rally"
   ============================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.attm-rally {
	background: var(--attm-bg);
	color: var(--attm-text);
	font-family: var(--attm-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

a { color: inherit; }

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

::selection { background: var(--attm-accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
::-webkit-scrollbar-thumb { background: var(--attm-accent); border-radius: 4px; }

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--attm-accent); color: #fff;
	padding: 12px 20px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

.screen-reader-text {
	position: absolute !important; clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}

/* ========================================
   Reveal-on-scroll
======================================== */
.reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in,
body.no-reveal .reveal {
	opacity: 1;
	transform: translateY(0);
}

/* ========================================
   Header
======================================== */
.attm-header {
	background: var(--attm-accent);
	color: #fff;
	padding: 16px 5vw;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 2px 20px rgba(0,0,0,0.3);
	z-index: 50;
}
.attm-header[data-sticky="1"] {
	position: sticky;
	top: 0;
}

.attm-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: #fff;
	text-decoration: none;
}
.attm-brand__logo {
	width: 38px; height: 38px;
	filter: brightness(0) invert(1);
}
.attm-brand--big .attm-brand__logo { width: 60px; height: 60px; }
.attm-brand__text { display: flex; flex-direction: column; line-height: 1; }
.attm-brand__name {
	font-size: 16px; font-weight: 800; letter-spacing: 0.06em; line-height: 1;
}
.attm-brand__tagline {
	font-size: 10px; opacity: 0.85; letter-spacing: 0.25em; margin-top: 3px;
}

.attm-nav__toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 8px;
	cursor: pointer;
}
.attm-nav__toggle-bar {
	display: block;
	width: 22px; height: 2px;
	background: #fff;
	margin: 4px 0;
	transition: transform .3s, opacity .3s;
}

.attm-nav__panel { display: block; }
.attm-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
}
.attm-nav__list li > a,
.attm-nav__list .menu-item > a {
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	opacity: 0.8;
	border-bottom: 2px solid transparent;
	padding-bottom: 2px;
	transition: opacity .2s, border-color .2s;
}
.attm-nav__list li.is-current > a,
.attm-nav__list .current-menu-item > a,
.attm-nav__list .current_page_item > a,
.attm-nav__list li > a:hover {
	opacity: 1;
	border-bottom-color: #fff;
}
.attm-nav__list .attm-nav__notice > a {
	opacity: 0.65;
	font-style: italic;
}

/* ========================================
   Hero
======================================== */
.attm-hero {
	min-height: 100vh;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	padding: 0 5vw;
	background: var(--attm-bg);
}
.attm-hero[data-mouse="1"] {
	background:
		radial-gradient(ellipse at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--attm-accent) 13%, transparent) 0%, transparent 50%),
		var(--attm-bg);
}
.attm-hero__svg {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	pointer-events: none;
	opacity: 0.3;
}
.attm-hero__ball {
	position: absolute;
	width: 28px; height: 28px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #fff, #ddd 60%, #888);
	box-shadow:
		0 0 30px var(--attm-accent),
		0 0 60px color-mix(in srgb, var(--attm-accent) 40%, transparent),
		0 4px 16px rgba(0,0,0,0.6);
	transition: left .05s linear, top .05s linear;
	z-index: 2;
	left: 10%;
	top: 50%;
}
.attm-hero__bgnum {
	position: absolute;
	right: -3vw; top: 5vh;
	font-size: 50vh;
	line-height: 0.85;
	font-weight: 900;
	color: rgba(255,255,255,0.03);
	user-select: none;
	pointer-events: none;
	letter-spacing: -0.1em;
}
.attm-hero__inner {
	position: relative;
	z-index: 3;
	max-width: 900px;
	padding: 100px 0;
}
.attm-hero__pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(255,255,255,0.08);
	padding: 8px 16px;
	border-radius: 100px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	margin-bottom: 32px;
	border: 1px solid rgba(255,255,255,0.1);
	font-size: 12px;
	letter-spacing: 0.2em;
	font-weight: 600;
}
.attm-hero__dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--attm-success);
	box-shadow: 0 0 12px var(--attm-success);
}
.attm-hero__title {
	font-size: clamp(60px, 11vw, 180px);
	margin: 0;
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 0.92;
}
.attm-hero__title span { display: block; }
.attm-accent { color: var(--attm-accent); }

.attm-hero__sub {
	margin-top: 36px;
	font-size: clamp(16px, 1.4vw, 20px);
	line-height: 1.6;
	color: var(--attm-text-muted);
	max-width: 540px;
}
.attm-hero__sub strong { color: #fff; font-weight: 700; }

.attm-hero__ctas {
	margin-top: 44px;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* Buttons */
.attm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 18px 36px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 100px;
	text-decoration: none;
	transition: transform .2s, box-shadow .2s, background .2s;
	cursor: pointer;
}
.attm-btn--primary {
	background: var(--attm-accent);
	color: #fff;
	box-shadow: 0 8px 30px color-mix(in srgb, var(--attm-accent) 40%, transparent);
}
.attm-btn--primary:hover { transform: translateY(-2px); }
.attm-btn--ghost {
	background: rgba(255,255,255,0.06);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.15);
	font-weight: 600;
}
.attm-btn--ghost:hover { background: rgba(255,255,255,0.10); }
.attm-btn--dark {
	background: var(--attm-bg);
	color: #fff;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 16px 32px;
}

/* ========================================
   Marquee (results)
======================================== */
.attm-marquee {
	padding: 24px 5vw;
	background: var(--attm-bg-alt);
	border-top: 1px solid rgba(255,255,255,0.05);
	border-bottom: 1px solid rgba(255,255,255,0.05);
	display: flex;
	align-items: center;
	gap: 32px;
	overflow: hidden;
}
.attm-marquee__head {
	display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.attm-marquee__pulse {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--attm-accent);
	animation: attmPulse 1.2s ease-in-out infinite;
}
.attm-marquee__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--attm-accent);
}
.attm-marquee__viewport {
	flex: 1;
	overflow: hidden;
}
.attm-marquee__track {
	display: inline-flex;
	gap: 48px;
	animation: attmMarquee var(--attm-marquee-duration) linear infinite;
	white-space: nowrap;
	font-size: 14px;
}
.attm-marquee__item strong { font-weight: 800; }
.attm-marquee__rival { color: #777; margin-left: 8px; }
.attm-marquee__sep { color: #444; }

@keyframes attmPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: 0.5; transform: scale(1.4); }
}
@keyframes attmMarquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ========================================
   Section base
======================================== */
.attm-section {
	padding: 100px 5vw;
	position: relative;
	max-width: 1500px;
	margin: 0 auto;
}
.attm-section__head { margin-bottom: 60px; }
.attm-section__intro { color: var(--attm-text-muted); }

.attm-eyebrow {
	font-size: 11px;
	letter-spacing: 0.3em;
	color: var(--attm-accent);
	font-weight: 700;
	margin-bottom: 12px;
	text-transform: uppercase;
}
.attm-eyebrow--light { color: rgba(255,255,255,0.85); }

.attm-h1, .attm-h2 {
	margin: 0;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1;
}
.attm-h1 { font-size: clamp(48px, 6vw, 96px); }
.attm-h2 { font-size: clamp(40px, 5vw, 72px); }
.attm-h2--white { color: #fff; line-height: 0.95; }

/* ========================================
   Stats
======================================== */
.attm-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 60px;
}
.attm-stat {
	padding: 28px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 16px;
}
.attm-stat__label {
	font-size: 11px;
	letter-spacing: 0.2em;
	color: var(--attm-text-dim);
	text-transform: uppercase;
	margin-bottom: 14px;
}
.attm-stat__value {
	font-size: clamp(40px, 5vw, 72px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #fff;
}
.attm-stat__value.is-accent { color: var(--attm-accent); }
.attm-stat__bar {
	margin-top: 16px;
	height: 4px;
	background: rgba(255,255,255,0.06);
	border-radius: 2px;
	overflow: hidden;
}
.attm-stat__bar > span {
	display: block;
	height: 100%;
	background: var(--attm-accent);
	border-radius: 2px;
	transition: width 1.4s cubic-bezier(.2,.8,.2,1);
	width: 0;
}
.in .attm-stat__bar > span,
.attm-stat.in .attm-stat__bar > span { /* triggered when revealed */ }

/* ========================================
   Event banner
======================================== */
.attm-event {
	padding: 60px;
	border-radius: 24px;
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 60px;
	align-items: center;
	background: linear-gradient(135deg,
		var(--attm-accent) 0%,
		color-mix(in srgb, var(--attm-accent) 80%, transparent) 50%,
		var(--attm-accent-alt) 100%);
}
.attm-event__circle {
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.15);
	pointer-events: none;
}
.attm-event__main { position: relative; z-index: 2; }
.attm-event__text {
	font-size: 17px;
	line-height: 1.6;
	margin-top: 24px;
	color: rgba(255,255,255,0.9);
	max-width: 480px;
}
.attm-event__main .attm-btn--dark { margin-top: 32px; }
.attm-event__rows {
	position: relative; z-index: 2;
	display: grid;
	gap: 12px;
}
.attm-event__row {
	padding: 16px 20px;
	background: rgba(0,0,0,0.25);
	border-radius: 12px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.attm-event__row-key {
	font-size: 11px;
	letter-spacing: 0.2em;
	color: rgba(255,255,255,0.7);
	text-transform: uppercase;
}
.attm-event__row-val { font-size: 15px; font-weight: 700; }

/* ========================================
   Articles - Featured (latest) layout
======================================== */
.attm-feature {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 60px;
	align-items: center;
	padding: 40px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 24px;
	transition: background .3s, border-color .3s;
}
.attm-feature:hover {
	background: color-mix(in srgb, var(--attm-accent) 6%, transparent);
	border-color: color-mix(in srgb, var(--attm-accent) 25%, transparent);
}
.attm-feature__cover {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4/3;
	background: rgba(255,255,255,0.04);
}
.attm-feature__cover img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.attm-feature:hover .attm-feature__cover img { transform: scale(1.04); }

.attm-feature__body { display: flex; flex-direction: column; gap: 16px; }
.attm-feature__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.attm-feature__title {
	font-size: clamp(28px, 3vw, 44px);
	margin: 0;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.attm-feature__title a {
	color: #fff;
	text-decoration: none;
}
.attm-feature__title a:hover { color: var(--attm-accent); }

.attm-feature__meta {
	display: flex; gap: 12px; align-items: center;
	color: var(--attm-text-dim);
	font-size: 13px;
}
.attm-feature__meta .dot {
	width: 4px; height: 4px; border-radius: 50%;
	background: var(--attm-text-dim);
}
.attm-feature__excerpt {
	margin: 0;
	color: var(--attm-text-muted);
	font-size: 16px;
	line-height: 1.7;
}
.attm-feature .attm-btn { align-self: flex-start; margin-top: 8px; }

@media (max-width: 900px) {
	.attm-feature { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
}

/* ========================================
   Articles - Grid (used on blog list, archives)
======================================== */
.attm-articles__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 40px;
	gap: 24px;
}
.attm-articles__more {
	color: var(--attm-accent);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.attm-articles__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}
.attm-card {
	padding: 24px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 16px;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	min-height: 240px;
	transition: background .3s, border-color .3s, transform .3s, opacity .9s, transform .9s;
}
.attm-card:hover {
	background: color-mix(in srgb, var(--attm-accent) 8%, transparent);
	border-color: color-mix(in srgb, var(--attm-accent) 33%, transparent);
}
.attm-card__tags {
	display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap;
}
.attm-card__tag {
	padding: 3px 10px;
	border-radius: 100px;
	background: rgba(255,255,255,0.06);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
}
.attm-card__title {
	font-size: 22px;
	line-height: 1.2;
	margin: 0;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.attm-card__excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #999;
	margin-top: 12px;
	flex: 1;
}
.attm-card__title a { color: inherit; text-decoration: none; }
.attm-card__title a:hover { color: var(--attm-accent); }
.attm-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid rgba(255,255,255,0.06);
	font-size: 11px;
	color: #777;
}
.attm-card__more {
	margin-top: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--attm-accent);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.attm-card__more:hover { color: var(--attm-accent-dark); }

/* ========================================
   Schedule
======================================== */
.attm-schedule .attm-section__head,
.attm-schedule header { margin-bottom: 50px; }

.attm-schedule__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.attm-slot {
	padding: 24px;
	border-radius: 16px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	min-height: 200px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.attm-slot.is-active {
	background: var(--attm-accent);
	border: none;
	color: #fff;
}
.attm-slot__num {
	font-size: 11px;
	letter-spacing: 0.2em;
	opacity: 0.8;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.attm-slot__day {
	font-size: 32px;
	font-weight: 900;
	letter-spacing: -0.01em;
	line-height: 1.1;
}
.attm-slot__time {
	font-size: 18px;
	font-weight: 700;
}
.attm-slot__group {
	font-size: 12px;
	opacity: 0.75;
	margin-top: 4px;
}

/* ========================================
   Footer
======================================== */
.attm-footer {
	padding: 50px 5vw;
	background: var(--attm-bg-alt);
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	font-size: 13px;
}
.attm-footer__logo {
	width: 60px;
	margin-bottom: 16px;
	opacity: 0.8;
	filter: brightness(0) invert(1);
}
.attm-footer__name {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.05em;
}
.attm-footer__tagline {
	font-size: 11px;
	color: var(--attm-accent);
	letter-spacing: 0.3em;
	margin-top: 4px;
}
.attm-footer__address {
	color: var(--attm-text-dim);
	line-height: 1.6;
	margin-top: 16px;
	max-width: 320px;
}
.attm-footer__col-title {
	font-size: 11px;
	letter-spacing: 0.2em;
	color: var(--attm-text-dim);
	font-weight: 700;
	margin-bottom: 14px;
	text-transform: uppercase;
}
.attm-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.attm-footer__menu li { margin-bottom: 8px; }
.attm-footer__menu a {
	color: var(--attm-text-muted);
	text-decoration: none;
	font-size: 13px;
}
.attm-footer__menu a:hover { color: var(--attm-accent); }
.attm-footer__bottom {
	grid-column: 1 / -1;
	border-top: 1px solid rgba(255,255,255,0.06);
	padding-top: 24px;
	margin-top: 16px;
	color: var(--attm-text-dim);
	font-size: 12px;
	text-align: center;
}

/* ========================================
   Single / Page / Archive containers
======================================== */
.attm-single, .attm-section--blog, .attm-section--page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 80px 5vw 100px;
}
.attm-single__head { margin-bottom: 32px; }
.attm-single__meta {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 16px;
	color: var(--attm-text-dim);
	font-size: 13px;
}
.attm-single__meta .dot {
	width: 4px; height: 4px; border-radius: 50%;
	background: var(--attm-text-dim);
	display: inline-block;
}
.attm-single__cover {
	margin: 0 0 32px;
	border-radius: 16px;
	overflow: hidden;
}
.attm-single__content {
	color: var(--attm-text-muted);
	line-height: 1.7;
	font-size: 16px;
}
.attm-single__content h1,
.attm-single__content h2,
.attm-single__content h3,
.attm-single__content h4 {
	color: #fff; font-weight: 800;
}
.attm-single__content a {
	color: var(--attm-accent); text-decoration: underline;
}
.attm-single__content blockquote {
	border-left: 3px solid var(--attm-accent);
	padding-left: 20px;
	margin-left: 0;
	color: #fff;
	font-style: italic;
}
.attm-single__content code,
.attm-single__content pre {
	background: rgba(255,255,255,0.06);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.92em;
}
.attm-single__content pre {
	padding: 16px; overflow-x: auto;
}

/* Pagination */
.attm-pagination, .navigation.pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 100px;
	background: rgba(255,255,255,0.05);
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
}
.page-numbers.current {
	background: var(--attm-accent);
}

/* 404 */
.attm-section--404 { text-align: center; }
.attm-404__big {
	font-size: clamp(120px, 20vw, 280px);
	font-weight: 900;
	color: var(--attm-accent);
	line-height: 1;
	letter-spacing: -0.05em;
	margin-bottom: 12px;
}
.attm-404 .attm-btn { margin-top: 32px; }

/* ========================================
   Responsive
======================================== */
@media (max-width: 1100px) {
	.attm-stats__grid { grid-template-columns: repeat(2, 1fr); }
	.attm-schedule__grid { grid-template-columns: repeat(2, 1fr); }
	.attm-event {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 40px;
	}
	.attm-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
	.attm-header { padding: 14px 20px; flex-wrap: wrap; }
	.attm-nav__toggle { display: block; }
	.attm-nav__panel {
		display: none;
		flex-basis: 100%;
		margin-top: 14px;
	}
	.attm-nav.is-open .attm-nav__panel { display: block; }
	.attm-nav__list { flex-direction: column; gap: 14px; }

	.attm-section { padding: 70px 20px; }
	.attm-hero { padding: 0 20px; }
	.attm-hero__inner { padding: 80px 0; }
	.attm-hero__bgnum { font-size: 30vh; right: -2vw; top: 8vh; }
	.attm-hero__title { font-size: clamp(48px, 14vw, 90px); }

	.attm-marquee { padding: 18px 20px; gap: 16px; }
	.attm-stats__grid { grid-template-columns: 1fr; }
	.attm-schedule__grid { grid-template-columns: 1fr 1fr; }
	.attm-articles__head { flex-direction: column; align-items: flex-start; }
	.attm-footer { grid-template-columns: 1fr; padding: 40px 20px; }
	.attm-event { padding: 28px; border-radius: 18px; }
}
