/* ============================================================
   TRKS — charte Apidom Studio (voir new.apidom.com)
   Fond clair, encre noire, vert électrique en accent seulement.
   Inter partout, graisses légères.
   ============================================================ */

@font-face {
	font-family: 'Inter';
	src: url('fonts/inter-var.ttf') format('truetype');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('fonts/inter-var-italic.ttf') format('truetype');
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--noir: #000;
	--vert: #33ee00;
	--fond: #f4f4f1;
	--carte: #fff;
	--encre: #0b0b0b;
	--gris: #7b7b78;
	--gris-clair: #e8e8e4;
	--ligne: rgba(0, 0, 0, .12);
	--rouge: #d6260f;
	--rayon: 28px;
	--marge: clamp(16px, 4.5vw, 72px);
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ease: cubic-bezier(.16, 1, .3, 1);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--fond);
	color: var(--encre);
	font: 400 16px/1.55 var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
::selection { background: var(--encre); color: var(--fond); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }

.sr {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.label {
	display: block;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--gris);
}

/* ---- Logo : Inter 900 italique, capitales, voyant vert ---- */
.logo {
	display: inline-block;
	font-style: italic;
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	padding-right: .06em;
}
.logo-pt {
	display: inline-block;
	width: .38em;
	height: .38em;
	margin-right: .26em;
	border-radius: 50%;
	background: var(--vert);
	position: relative;
	bottom: .1735em;
	vertical-align: baseline;
}

/* ---- Boutons pilule ---- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 24px;
	border-radius: 999px;
	background: var(--encre);
	color: var(--fond);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background .3s, color .3s, transform .3s var(--ease);
}
.btn:hover, .btn.copie { background: var(--vert); color: var(--noir); }
.btn:active { transform: scale(.97); }
.btn-contour {
	background: transparent;
	color: var(--encre);
	box-shadow: inset 0 0 0 1px var(--ligne);
	padding: 11px 18px;
}
.btn-clair { background: var(--fond); color: var(--noir); }

/* ---- En-tête ---- */
.barre {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 28px var(--marge) 0;
}
.marque { display: grid; gap: 8px; }
.barre .logo { font-size: clamp(30px, 4vw, 44px); }
.marque-sous-titre { color: var(--gris); }
.barre-studio { transition: color .3s; }
.barre-studio:hover { color: var(--encre); }

main {
	display: grid;
	gap: 16px;
	padding: 0 var(--marge);
	max-width: 1280px;
	margin: 0 auto;
}

/* ---- Hero ---- */
.hero { padding: clamp(56px, 12vh, 140px) 0 clamp(24px, 5vh, 56px); }
.hero h1 {
	margin-top: 22px;
	max-width: 14ch;
	font-weight: 300;
	font-size: clamp(40px, 7.4vw, 104px);
	line-height: .98;
	letter-spacing: -.045em;
}
.hero h1 em { font-style: italic; font-weight: 300; }
.hero-texte {
	margin-top: 28px;
	max-width: 52ch;
	font-weight: 300;
	font-size: clamp(17px, 1.6vw, 21px);
	color: var(--gris);
}

/* ---- Messages ---- */
.message {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 22px;
	border-radius: 16px;
	background: var(--carte);
	font-size: 15px;
}
.message::before {
	content: '';
	flex: none;
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--vert);
}
.message-info::before { background: var(--gris); }
.message-error::before { background: var(--rouge); }

/* ---- Cartes ---- */
.carte {
	background: var(--carte);
	border-radius: var(--rayon);
	padding: clamp(22px, 3.4vw, 44px);
}
.champ {
	display: flex;
	gap: 10px;
	margin-top: 18px;
	padding: 6px;
	border-radius: 999px;
	background: var(--fond);
	box-shadow: inset 0 0 0 1px transparent;
	transition: box-shadow .3s;
}
.champ:focus-within { box-shadow: inset 0 0 0 1px var(--encre); }
.champ input {
	flex: 1;
	min-width: 0;
	padding: 0 18px;
	border: 0;
	background: none;
	font-weight: 300;
	font-size: clamp(16px, 1.8vw, 22px);
	letter-spacing: -.01em;
	outline: none;
}
.champ input::placeholder { color: var(--gris); opacity: .7; }
.champ-code { letter-spacing: .3em !important; text-transform: lowercase; }
.pot { position: absolute; left: -9999px; }

/* ---- Résultat ---- */
.resultat {
	scroll-margin-top: 24px;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(22px, 4vw, 56px);
	align-items: start;
	margin-top: clamp(28px, 4vw, 44px);
	padding-top: clamp(28px, 4vw, 44px);
	border-top: 1px solid var(--ligne);
}
.resultat-code, .resultat-lien { display: grid; gap: 12px; justify-items: start; }
.resultat-lien .label:not(:first-child) { margin-top: 12px; }
.code {
	font-weight: 200;
	font-size: clamp(56px, 8vw, 104px);
	line-height: 1;
	letter-spacing: .08em;
	font-variant-numeric: tabular-nums;
}
.lien-court {
	font-weight: 400;
	font-size: clamp(20px, 2.4vw, 30px);
	letter-spacing: -.02em;
	text-decoration: underline;
	text-decoration-color: var(--vert);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}
.destination { color: var(--gris); font-size: 14px; word-break: break-all; }
.lien-stats { font-size: 14px; font-weight: 500; }
.lien-stats:hover { text-decoration: underline; text-decoration-color: var(--vert); text-underline-offset: 4px; }

/* ---- Statistiques ---- */
.chiffres {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 24px;
}
.chiffre {
	padding: 20px 22px;
	border-radius: 18px;
	background: var(--fond);
}
.chiffre dd { margin-top: 10px; font-weight: 300; font-size: 22px; letter-spacing: -.02em; }
.chiffre-fort dd { font-size: 44px; line-height: 1; font-weight: 200; }
.chiffre-large { grid-column: 1 / -1; }
.chiffre-large dd { font-size: 15px; }

/* ---- Étapes ---- */
.etapes { padding: clamp(40px, 8vh, 96px) 0; }
.etapes ol {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 24px;
}
.etapes li { border-top: 1px solid var(--encre); padding-top: 20px; }
.etape-num { font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--gris); }
.etapes h3 { margin: 14px 0 10px; font-weight: 400; font-size: 26px; letter-spacing: -.03em; }
.etapes p { color: var(--gris); font-weight: 300; max-width: 36ch; }

/* ---- Pied de page ---- */
.pied {
	margin-top: clamp(24px, 6vh, 64px);
	background: var(--noir);
	color: var(--fond);
	padding: clamp(40px, 7vh, 80px) var(--marge) 28px;
}
.pied ::selection { background: var(--fond); color: var(--noir); }
.pied-haut {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
}
.pied-accroche {
	max-width: 22ch;
	font-weight: 300;
	font-size: clamp(26px, 3.4vw, 52px);
	line-height: 1.05;
	letter-spacing: -.035em;
}
.pied-accroche a { text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: .06em; text-underline-offset: .12em; }
.pied-bas {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: clamp(40px, 7vh, 80px);
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .2);
}
.pied-marque { font-size: 18px; }
.pied .label { color: rgba(244, 244, 241, .6); }

@media (max-width: 900px) {
	.resultat { grid-template-columns: 1fr; }
	.etapes ol { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
	.champ { flex-direction: column; border-radius: 22px; padding: 8px; }
	.champ input { padding: 14px 12px; }
	.resultat { grid-template-columns: 1fr; }
	.chiffres { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.btn { transition: none; }
}

/* ---- Barre : liens ---- */
.barre-liens { display: flex; gap: clamp(16px, 3vw, 32px); }

/* ---- Code interne ---- */
.secret {
	display: flex;
	gap: 10px;
	align-items: baseline;
	max-width: 52ch;
	margin-top: 6px;
	font-size: 14px;
}
.secret i {
	flex: none;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--vert);
	position: relative;
	top: -1px;
}
.actions { display: flex; align-items: center; gap: 20px; margin-top: 8px; }

/* ---- FAQ ---- */
.faq { padding-bottom: clamp(40px, 8vh, 96px); }
.faq-liste { margin-top: 24px; border-top: 1px solid var(--encre); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 22px 0;
	cursor: pointer;
	list-style: none;
	font-weight: 300;
	font-size: clamp(20px, 2.2vw, 28px);
	letter-spacing: -.025em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: '+';
	flex: none;
	width: 36px; height: 36px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--carte);
	font-size: 20px;
	transition: transform .4s var(--ease), background .3s;
}
.faq summary:hover::after { background: var(--vert); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 68ch; padding: 0 0 26px; font-weight: 300; font-size: 17px; color: #45453f; }
.faq details a { text-decoration: underline; text-decoration-color: var(--vert); text-underline-offset: 3px; }
.faq code { font-size: .92em; background: var(--gris-clair); padding: 1px 6px; border-radius: 6px; }

.intro-carte { margin-top: 10px; max-width: 64ch; font-weight: 300; font-size: 15px; color: var(--gris); }

/* ---- Badge App Store (image officielle Apple) ---- */
.hero-app { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 32px; }
.appstore { display: inline-block; line-height: 0; transition: transform .3s var(--ease); }
.appstore:hover { transform: translateY(-2px); }
.appstore img { width: 150px; height: auto; }
.etapes p a { text-decoration: underline; text-decoration-color: var(--vert); text-underline-offset: 3px; }
@media (max-width: 560px) {
	.marque-sous-titre { font-size: 10px; letter-spacing: .16em; }
	.barre { align-items: flex-start; }
	.barre-liens a[href^="https:"] { display: none; } /* crédit déjà dans le pied de page */
}
