/*
Theme Name: ON IT
Theme URI: https://agenceonit.com
Author: ON IT
Description: Site une page d’ON IT, en français et en anglais (?lang=en). Textes issus des Master Decks validés. Tous les textes se modifient dans inc/content.php.
Version: 1.0.1
Requires at least: 6.3
Requires PHP: 7.4
License: Propriétaire, usage réservé à ON IT
Text Domain: on-it
*/

/* ---------------------------------------------------------------- Couleurs et tailles */
:root {
	--black: #0d0d0d;
	--charcoal: #2e2e2e;
	--grey: #eeeeee;
	--white: #ffffff;
	--mute: #6b6b6b;
	--mute-2: #8a8a8a;
	--light: #bdbdbd;
	--line: #d6d6d6;

	--font-display: "Anton", Impact, "Arial Narrow", sans-serif;
	--font-body: "Poppins", Arial, sans-serif;

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(72px, 10vw, 128px);
	--radius: 24px;
	--radius-s: 16px;
	--header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--white);
	color: var(--black);
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 200;
	background: var(--white); color: var(--black); padding: 12px 18px; border-radius: 12px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

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

.icon { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- Titres */
.eyebrow {
	font-size: 13px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase;
	color: var(--mute); margin-bottom: 16px;
}
.eyebrow-light { color: var(--light); }

.title-xl, .title-l, .title-m, .hero-title, .quote-title, .contact-title, .pack-name, .on-card h3, .month-card h3, .flex-big, .number, .why-num, .step-num, .on-brand-title, .entry-title {
	font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1;
}
.title-xl { font-size: clamp(44px, 6.4vw, 88px); line-height: .95; }
.title-l { font-size: clamp(38px, 5.4vw, 72px); line-height: .95; max-width: 20ch; }
.title-m { font-size: clamp(32px, 4vw, 52px); }

.lead { font-size: clamp(17px, 1.6vw, 21px); font-weight: 300; line-height: 1.5; max-width: 62ch; margin-top: 20px; }
.lead-light { color: var(--light); }

.note { margin-top: 28px; font-size: 14px; color: var(--mute); }
.note-light { color: var(--light); }

/* ---------------------------------------------------------------- Boutons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 24px; border-radius: 999px;
	font-family: var(--font-body); font-size: 15px; font-weight: 700; text-decoration: none;
	border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
	cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--grey); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--charcoal); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--black); }
.btn-big { min-height: 60px; padding: 16px 30px; font-size: 17px; }

/* ---------------------------------------------------------------- En-tête */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--black); color: var(--white);
	transition: box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--charcoal); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand-logo { width: 112px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav a:not(.btn) { color: var(--white); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a:not(.btn):hover { border-bottom-color: var(--white); }
.nav-cta { min-height: 44px; padding: 10px 20px; }

.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 2px solid var(--charcoal); border-radius: 999px; padding: 3px; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-decoration: none; color: var(--light); }
.lang-switch a[aria-current="true"] { background: var(--white); color: var(--black); }

.menu-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--charcoal); color: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .when-open { display: none; }
.menu-toggle[aria-expanded="true"] .when-open { display: inline-flex; }
.menu-toggle[aria-expanded="true"] .when-closed { display: none; }
.menu-toggle span { display: inline-flex; }

@media (max-width: 980px) {
	.menu-toggle { display: inline-flex; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
		flex-direction: column; align-items: stretch; gap: 20px;
		background: var(--black); padding: 24px var(--gutter) 32px;
		border-top: 1px solid var(--charcoal);
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
	.main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav ul a:not(.btn) { display: block; padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--charcoal); }
	.nav-cta { width: 100%; min-height: 52px; }
}

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; background: var(--black); color: var(--white); overflow: hidden; transition: background .35s, color .35s; }
.hero-inner { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-head { display: flex; flex-direction: column; gap: 28px; }
.hero-title { font-size: clamp(46px, 8.2vw, 124px); line-height: .95; max-width: 14ch; }
.lang-en .hero-title { font-size: clamp(42px, 7.2vw, 108px); max-width: 16ch; }
.hero-text { margin-top: 28px; font-size: clamp(18px, 1.9vw, 24px); font-weight: 300; line-height: 1.45; max-width: 46ch; color: var(--light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-from { margin-top: 22px; font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--mute-2); }

/* L’interrupteur ON IT */
.power-switch {
	position: relative; width: 112px; height: 56px; padding: 0; border-radius: 999px;
	border: 3px solid var(--white); background: var(--white); cursor: pointer; flex: none;
	transition: background .3s, border-color .3s;
}
.power-knob {
	position: absolute; top: 5px; left: 5px; width: 40px; height: 40px; border-radius: 50%;
	background: var(--black); transform: translateX(56px); transition: transform .3s, background .3s;
}
.power-switch[aria-pressed="false"] { background: transparent; }
.power-switch[aria-pressed="false"] .power-knob { transform: translateX(0); background: var(--white); }

/* Mode OFF (clic sur l’interrupteur) */
.hero.is-off { background: var(--grey); color: var(--black); }
.hero.is-off .power-switch { border-color: var(--black); }
.hero.is-off .power-switch[aria-pressed="false"] .power-knob { background: var(--black); }
.hero.is-off .hero-text { color: var(--mute); }
.hero.is-off .btn-light { background: var(--black); color: var(--white); }
.hero.is-off .btn-outline-light { border-color: var(--black); color: var(--black); }
.hero.is-off .eyebrow-light, .hero.is-off .hero-from { color: var(--mute); }
.hero.is-off .hero-ons { color: var(--light); }

/* Bandeau des ON qui défile */
.hero-band { border-top: 1px solid var(--charcoal); overflow: hidden; }
.hero.is-off .hero-band { border-color: var(--light); }
.hero-ons {
	display: flex; gap: 48px; white-space: nowrap; padding: 18px 0; color: var(--mute-2);
	font-family: var(--font-display); font-size: 22px; letter-spacing: 2px;
	animation: onit-marquee 26s linear infinite;
	width: max-content;
}
@keyframes onit-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hero-ons { animation: none; } }

@media (min-width: 760px) {
	.hero-head { flex-direction: row; align-items: flex-start; gap: 36px; }
	.power-switch { width: 140px; height: 70px; margin-top: 10px; }
	.power-knob { width: 52px; height: 52px; top: 6px; left: 6px; transform: translateX(70px); }
}

/* ---------------------------------------------------------------- Sections */
.section { padding: var(--section) 0; }
.bg-white { background: var(--white); }
.bg-grey { background: var(--grey); }
.bg-black { background: var(--black); color: var(--white); }

.grid-3, .grid-4 { display: grid; gap: 24px; margin-top: 48px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Qui sommes-nous */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; } }
.prose { display: flex; flex-direction: column; gap: 18px; font-size: 18px; font-weight: 300; line-height: 1.6; }
.sign { font-family: var(--font-display); font-size: 36px; text-transform: uppercase; line-height: 1; margin-top: 10px; }

/* Pourquoi */
.why-item { border-top: 3px solid var(--black); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.why-num { font-size: 40px; color: var(--mute-2); }
.why-item h3 { font-size: 21px; font-weight: 700; line-height: 1.25; }
.why-item p:last-child { font-weight: 300; }

/* Chiffres */
.number-item { min-width: 0; border-top: 3px solid var(--black); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.number { font-size: clamp(88px, 9.5vw, 150px); line-height: 1; white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1239px) { .number { font-size: 8.6vw; } }
.number-label { font-size: 16px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.number-item p:last-child { font-weight: 300; }

/* Les quatre ON */
.on-card { background: var(--charcoal); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; }
.on-card h3 { font-size: clamp(40px, 4vw, 52px); }
.on-card p { font-weight: 300; line-height: 1.55; }
.mini-switch { position: relative; width: 56px; height: 28px; border-radius: 999px; background: var(--white); }
.mini-switch::after { content: ""; position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--charcoal); }
.on-brand {
	margin-top: 24px; background: var(--white); color: var(--black); border-radius: var(--radius);
	padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
}
.on-brand-title { font-size: clamp(30px, 3.6vw, 44px); }
.on-brand p:last-child { font-size: 18px; font-weight: 300; }

/* Votre mois */
.month-card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.month-card h3 { font-size: 44px; }
.month-card p { font-weight: 300; }
.month-card.is-dark { background: var(--black); color: var(--white); }

/* Packs */
.packs-grid { align-items: stretch; }
@media (min-width: 1100px) and (max-width: 1239px) { .packs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) {
	@supports (grid-template-rows: subgrid) {
		.packs-grid .pack { display: grid; grid-row: span 9; grid-template-rows: subgrid; row-gap: 14px; align-content: start; }
		.packs-grid .pack-tagline { min-height: 0; }
		.packs-grid .pack-facts { margin-top: 0; align-self: start; }
		.packs-grid .pack-cta { align-self: end; }
	}
}
.pack {
	background: var(--grey); border-radius: var(--radius); padding: 32px 28px;
	display: flex; flex-direction: column; gap: 14px;
}
.pack.is-dark { background: var(--black); color: var(--white); }
.pack-tag { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--mute); }
.pack.is-dark .pack-tag { color: var(--light); }
.pack-name { font-size: 44px; }
.pack-tagline { font-weight: 300; min-height: 3.1em; }
.pack-price { padding-top: 6px; }
.price { font-size: 40px; font-weight: 700; line-height: 1.1; }
.price-sub { font-size: 15px; color: var(--mute); }
.pack.is-dark .price-sub { color: var(--light); }
.pack-setup {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; align-self: start;
	background: var(--white); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 700;
}
.pack-setup .vat { font-weight: 500; color: var(--mute); white-space: nowrap; }
.pack.is-dark .pack-setup { background: var(--charcoal); }
.pack.is-dark .pack-setup .vat { color: var(--light); }
.pack-included { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--mute); }
.pack.is-dark .pack-included { color: var(--light); }
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 300; line-height: 1.45; }
.check-list .icon { width: 18px; height: 18px; margin-top: 2px; }
.pack-facts { display: grid; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.pack.is-dark .pack-facts { border-top-color: var(--charcoal); }
.pack-facts dt { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--mute); }
.pack.is-dark .pack-facts dt { color: var(--light); }
.pack-facts dd { font-size: 15px; }
.pack-cta { margin-top: 8px; width: 100%; }

/* Comparatif */
.table-wrap { margin-top: 36px; overflow-x: auto; border-radius: var(--radius-s); background: var(--white); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.compare th:first-child { width: 16%; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--black); color: var(--white); font-weight: 700; }
.compare tbody th { font-weight: 700; }
.compare tbody tr:nth-child(even) { background: #f7f7f7; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* Options */
.group-title { margin-top: 48px; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--mute); }
.addons-grid { margin-top: 18px; }
.addon { background: var(--grey); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.addon h4 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.addon p { font-size: 15px; font-weight: 300; }
.addon .addon-price { margin-top: auto; padding-top: 6px; font-size: 18px; font-weight: 700; }
.addon.is-dark { background: var(--black); color: var(--white); }

/* Modifications */
.flex-card { background: var(--charcoal); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.flex-label { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--light); }
.flex-big { font-size: clamp(40px, 4.4vw, 56px); }
.flex-card p:last-child { font-weight: 300; }

/* Conditions */
.terms-grid { display: grid; gap: 0 48px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .terms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.term { padding: 20px 0; border-top: 1px solid var(--line); }
.term dt { font-weight: 700; font-size: 17px; }
.term dd { margin-top: 4px; font-weight: 300; }

/* Citation */
.quote-band { background: var(--black); color: var(--white); padding: clamp(64px, 9vw, 112px) 0; text-align: center; }
.quote-title { font-size: clamp(48px, 8vw, 112px); line-height: .95; }
.quote-text { margin: 24px auto 0; max-width: 46ch; font-size: clamp(17px, 1.7vw, 21px); font-weight: 300; color: var(--light); }

/* Étapes */
.step { border-top: 2px solid var(--mute-2); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.step.is-last { border-top-color: var(--black); }
.step-num { font-size: 40px; color: var(--mute-2); }
.step.is-last .step-num { color: var(--black); }
.step h3 { font-size: 21px; font-weight: 700; line-height: 1.25; }
.step p:last-child { font-weight: 300; }

/* Contact */
.contact-box {
	margin-top: 64px; background: var(--black); color: var(--white); border-radius: var(--radius);
	padding: clamp(32px, 5vw, 56px); display: grid; gap: 32px; align-items: center;
}
@media (min-width: 900px) { .contact-box { grid-template-columns: 1fr auto; } }
.contact-title { font-size: clamp(44px, 6vw, 76px); }
.contact-text { margin-top: 14px; font-weight: 300; color: var(--light); max-width: 46ch; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
@media (max-width: 480px) {
	.contact-actions .btn { white-space: normal; }
	.btn-big { font-size: 15px; padding: 14px 18px; }
}

/* ---------------------------------------------------------------- Pied de page */
.site-footer { background: var(--black); color: var(--white); padding: 56px 0 32px; border-top: 1px solid var(--charcoal); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-end; }
.footer-brand img { width: 120px; }
.footer-tagline { margin-top: 14px; font-family: var(--font-display); font-size: 24px; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-weight: 500; min-height: 44px; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--charcoal); font-size: 13px; color: var(--mute-2); }
.footer-bottom a { color: var(--light); margin-left: 12px; }

/* ---------------------------------------------------------------- Pages simples */
.page-simple { padding: var(--section) 0; min-height: 50vh; }
.entry-title { font-size: clamp(40px, 6vw, 72px); margin-bottom: 32px; }
.entry-content { font-weight: 300; line-height: 1.7; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2, .entry-content h3 { font-weight: 700; line-height: 1.3; }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.page-404 .btn { margin-top: 12px; }

/* ---------------------------------------------------------------- Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
