/* Page d'accueil v2 : portée de la maquette Claude Design "Home v2".
   Palette propre à la page, scopée sur .home2 (hors variables M3 de l'app). */

.home2 {
	--disp: 'Bricolage Grotesque', sans-serif;
	--text: 'Instrument Sans', sans-serif;

	margin: 0 -15px;
	background: var(--md-sys-color-surface);
	color: var(--md-sys-color-on-surface);
	font-family: var(--text);
	font-size: 17px;
	line-height: 1.55;
	text-wrap: pretty;
	overflow: hidden;
}

.home2 h1,
.home2 h2,
.home2 h3 {
	font-family: var(--disp);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1;
	color: inherit;
	margin: 0;
	opacity: 1;
	animation: none;
}

.home2 p {
	margin: 0;
}

.home2 a {
	color: var(--md-sys-color-on-surface);
}

.home2 a:hover {
	color: var(--md-sys-color-primary);
	text-decoration: none;
}

.h2-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 40px;
}

.h2-section {
	padding: 120px 0;
}

.h2-section--flush {
	padding-top: 0;
}

.h2-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	border-radius: 999px;
	background: var(--md-sys-color-on-surface);
	color: var(--md-sys-color-surface) !important;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: transform .2s, background .2s;
}

.h2-btn:hover {
	background: var(--md-sys-color-primary);
	color: var(--md-sys-color-on-primary) !important;
	transform: translateY(-2px);
}

.h2-btn--accent {
	background: var(--md-sys-color-primary);
	color: var(--md-sys-color-on-primary) !important;
}

.h2-btn--accent:hover {
	background: var(--md-sys-color-on-surface);
	color: var(--md-sys-color-surface) !important;
}

.h2-btn--ghost {
	background: transparent;
	color: var(--md-sys-color-on-surface) !important;
	box-shadow: inset 0 0 0 1.5px var(--md-sys-color-on-surface);
}

.h2-btn--ghost:hover {
	background: var(--md-sys-color-on-surface);
	color: var(--md-sys-color-surface) !important;
}

.h2-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--md-sys-color-on-surface-variant);
}

.h2-kicker::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--md-sys-color-primary);
}

/* Hero */
.h2-hero {
	padding: 72px 0 96px;
}

.h2-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: 56px;
	align-items: center;
}

.home2 .h2-hero h1 {
	font-size: clamp(44px, 7vw, 108px);
	margin: 22px 0 28px;
}

.h2-hero h1 em {
	font-style: normal;
	color: var(--md-sys-color-primary);
}

.h2-lead {
	font-size: 20px;
	color: var(--md-sys-color-on-surface-variant);
	max-width: 520px;
	margin-bottom: 36px;
}

.h2-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.h2-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--md-sys-color-on-surface-variant);
}

.h2-meta li::before {
	content: "✓";
	margin-right: 8px;
	font-weight: 700;
	color: var(--md-sys-color-on-surface);
}

.h2-hero__visual {
	position: relative;
}

.h2-phone {
	width: min(340px, 100%);
	margin: 0 auto;
	aspect-ratio: 9 / 18.5;
	border-radius: 48px;
	background: var(--md-sys-color-surface-container-lowest);
	padding: 12px;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
}

.h2-phone__screen {
	position: relative;
	height: 100%;
	border-radius: 38px;
	overflow: hidden;
	background: linear-gradient(170deg, var(--md-sys-color-primary-container) 0%, var(--md-sys-color-surface-container-lowest) 100%);
	color: var(--md-sys-color-on-primary-container);
	padding: 54px 14px 14px;
}

.h2-phone__time {
	text-align: center;
	font-family: var(--disp);
	font-weight: 600;
	font-size: 64px;
	letter-spacing: -.03em;
	line-height: 1;
}

.h2-phone__date {
	text-align: center;
	font-size: 14px;
	opacity: .85;
	margin: 6px 0 30px;
}

.h2-notifs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 270px;
	overflow: hidden;
}

.h2-notif {
	display: flex;
	gap: 10px;
	align-items: center;
	background: color-mix(in srgb, var(--md-sys-color-surface-container-highest) 88%, transparent);
	backdrop-filter: blur(10px);
	color: var(--md-sys-color-on-surface);
	border-radius: 18px;
	padding: 11px 12px;
}


.h2-notif img {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 9px;
}

.h2-notif div {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	line-height: 1.3;
}

.h2-notif strong {
	display: flex;
	justify-content: space-between;
	font-weight: 600;
}

.h2-notif small {
	font-weight: 400;
	color: var(--md-sys-color-on-surface-variant);
}

/* La notification qui passe en tête (déplacée par le JS) apparaît avec cette animation */
.h2-notif:first-child {
	animation: h2-notif-in .35s ease-out;
}

@keyframes h2-notif-in {
	from { opacity: 0; transform: translateY(-16px) scale(.96); }
	to { opacity: 1; transform: none; }
}

.h2-badge {
	position: absolute;
	left: -60px;
	bottom: 90px;
	background: var(--md-sys-color-surface-container-high);
	border-radius: 18px;
	padding: 16px 18px;
	box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .3);
	font-size: 13px;
	color: var(--md-sys-color-on-surface-variant);
}

.h2-badge b {
	display: block;
	font-family: var(--disp);
	font-size: 28px;
	color: var(--md-sys-color-on-surface);
	letter-spacing: -.02em;
}

.h2-badge em {
	font-style: normal;
	color: var(--md-sys-color-success);
	font-weight: 600;
}

/* Bandeau canaux */
.h2-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 32px;
	margin: 0;
	padding: 24px max(40px, calc((100% - 1200px) / 2));
	list-style: none;
	border-block: 1px solid var(--md-sys-color-outline-variant);
	background: var(--md-sys-color-surface-container-high);
	font-family: var(--disp);
	font-weight: 600;
	font-size: 22px;
	letter-spacing: -.01em;
}

.h2-strip li + li::before {
	content: "✦";
	margin-right: 12px;
	color: var(--md-sys-color-primary);
	font-size: 14px;
}

/* En-têtes de section */
.h2-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: end;
	margin-bottom: 56px;
}

.home2 .h2-head h2 {
	font-size: clamp(36px, 5vw, 68px);
	margin-top: 16px;
}

.h2-head p {
	color: var(--md-sys-color-on-surface-variant);
	font-size: 19px;
	max-width: 480px;
	justify-self: end;
}

/* Boutique */
.h2-store {
	background: var(--md-sys-color-surface-container-high);
	border-radius: 28px;
	padding: 18px;
	box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .35);
}

.h2-store__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 4px 8px 18px;
}

.h2-store__bar i {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--md-sys-color-outline-variant);
}

.h2-store__bar span {
	flex: 1;
	max-width: 380px;
	margin: 0 auto;
	background: var(--md-sys-color-surface);
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 13px;
	color: var(--md-sys-color-on-surface-variant);
}

.h2-store__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.h2-prod__img {
	aspect-ratio: 4 / 5;
	border-radius: 18px;
	overflow: hidden;
	background: var(--md-sys-color-tertiary-container);
}

.h2-prod:nth-child(2) .h2-prod__img { background: var(--md-sys-color-secondary-container); }
.h2-prod:nth-child(3) .h2-prod__img { background: var(--md-sys-color-success-container); }

.h2-prod__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.h2-prod__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 14px 6px 6px;
}

.home2 .h2-prod__meta h3 {
	font-family: var(--text);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
}

.h2-prod__meta b {
	font-family: var(--disp);
	font-size: 20px;
}

/* Bento */
.h2-bento {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}

.h2-tile {
	border-radius: 28px;
	padding: 36px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 300px;
	overflow: hidden;
}

.home2 .h2-tile h3 {
	font-size: 34px;
}

.h2-tile p {
	color: var(--md-sys-color-on-surface-variant);
	max-width: 400px;
}

.h2-tile p strong {
	color: var(--md-sys-color-on-surface);
}

.h2-tile--liv { grid-column: span 4; background: var(--md-sys-color-tertiary-container); }
.h2-tile--cc { grid-column: span 2; background: var(--md-sys-color-success-container); }
.h2-tile--fac { grid-column: span 3; background: var(--md-sys-color-surface-container-high); }
.h2-tile--res { grid-column: span 3; background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface); }
.h2-tile--res p { color: var(--md-sys-color-on-surface-variant); }

.h2-route {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 14px;
	font-weight: 600;
}

.h2-route span {
	background: var(--md-sys-color-surface-container-high);
	border-radius: 999px;
	padding: 8px 14px;
}

.h2-route i {
	flex: 1;
	min-width: 30px;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--md-sys-color-on-surface) 0 6px, transparent 6px 12px);
}

.h2-invoice {
	margin-top: auto;
	background: var(--md-sys-color-surface);
	border-radius: 16px;
	padding: 18px 20px;
	font-size: 14px;
	display: grid;
	gap: 8px;
}

.h2-invoice div {
	display: flex;
	justify-content: space-between;
}

.h2-invoice__tot {
	border-top: 1px solid var(--md-sys-color-outline-variant);
	padding-top: 10px;
	font-weight: 600;
}

.h2-invoice__tag {
	justify-self: start;
	background: var(--md-sys-color-success-container);
	color: var(--md-sys-color-on-success-container);
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
}

.h2-big0 {
	margin-top: auto;
	font-family: var(--disp);
	font-weight: 800;
	font-size: 120px;
	line-height: .8;
	letter-spacing: -.05em;
	color: var(--md-sys-color-primary);
}

.h2-big0 small {
	font-size: 22px;
	letter-spacing: -.01em;
	color: var(--md-sys-color-on-surface);
	font-weight: 600;
	margin-left: 8px;
}

/* Sections sombres (responsive, tarifs) */
.h2-dark {
	background: var(--md-sys-color-surface-container-lowest);
	color: var(--md-sys-color-on-surface);
}

.h2-dark .h2-kicker,
.h2-dark .h2-head p {
	color: var(--md-sys-color-on-surface-variant);
}

.h2-resp {
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	gap: 64px;
	align-items: center;
}

.home2 .h2-resp h2 {
	font-size: clamp(36px, 5vw, 68px);
	margin: 16px 0 24px;
}

.h2-resp p {
	color: var(--md-sys-color-on-surface-variant);
	font-size: 19px;
	max-width: 440px;
}

.h2-device img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
}

/* SEO & SSL */
.h2-trust {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.h2-trust article {
	background: var(--md-sys-color-surface-container-high);
	border-radius: 28px;
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.home2 .h2-trust h3 {
	font-size: 34px;
	max-width: 440px;
}

.h2-trust p {
	color: var(--md-sys-color-on-surface-variant);
}

.h2-trust p strong {
	color: var(--md-sys-color-on-surface);
}

.h2-serp {
	margin-top: 12px;
	border: 1px solid var(--md-sys-color-outline-variant);
	border-radius: 16px;
	padding: 18px 20px;
	font-size: 14px;
}

.h2-serp small {
	color: var(--md-sys-color-on-surface-variant);
}

.h2-serp span {
	display: block;
	color: var(--md-sys-color-primary);
	font-size: 19px;
	margin: 4px 0;
}

.h2-ssl {
	margin-top: 12px;
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--md-sys-color-outline-variant);
	border-radius: 999px;
	padding: 12px 18px;
	font-size: 14px;
}

.h2-ssl b {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--md-sys-color-success-container);
	color: var(--md-sys-color-on-success-container);
	font-size: 13px;
}

.h2-ssl span {
	color: var(--md-sys-color-on-surface-variant);
}

/* Chiffre clé */
.h2-reach {
	padding: 40px 15px 100px;
	text-align: center;
	overflow: hidden;
}

.h2-reach__num {
	font-family: var(--disp);
	font-weight: 800;
	font-size: clamp(48px, 11vw, 180px);
	letter-spacing: -.05em;
	line-height: 1;
}

.h2-reach__txt {
	font-family: var(--disp);
	font-size: clamp(22px, 3vw, 40px);
	font-weight: 600;
	letter-spacing: -.02em;
	margin-top: 8px;
}

.h2-reach__txt em {
	font-style: normal;
	color: var(--md-sys-color-primary);
}

/* FAQ */
.h2-faq {
	max-width: 900px;
}

.h2-faq details {
	background: var(--md-sys-color-surface-container-high);
	border-radius: 20px;
	padding: 22px 28px;
	margin-bottom: 12px;
}

.h2-faq summary {
	cursor: pointer;
	font-family: var(--disp);
	font-weight: 600;
	font-size: 20px;
	letter-spacing: -.01em;
}

.h2-faq details[open] summary {
	color: var(--md-sys-color-primary);
}

.h2-faq details p {
	margin-top: 12px;
	color: var(--md-sys-color-on-surface-variant);
}

/* CTA final */
.h2-final {
	padding: 0 0 120px;
}

.h2-final__box {
	background: var(--md-sys-color-primary);
	border-radius: 36px;
	padding: 96px 48px;
	text-align: center;
}

.home2 .h2-final h2 {
	font-size: clamp(36px, 6vw, 88px);
	max-width: 900px;
	margin: 0 auto 36px;
}

.h2-final .h2-btn {
	font-size: 18px;
	padding: 20px 36px;
}

@media (max-width: 980px) {

	.h2-wrap { padding: 0 22px; }
	.h2-section { padding: 80px 0; }
	.h2-hero { padding: 48px 0 72px; }

	.h2-hero__grid,
	.h2-resp,
	.h2-head,
	.h2-trust {
		grid-template-columns: 1fr;
	}

	.h2-head p { justify-self: start; }
	.h2-badge { left: -8px; bottom: 60px; }
	.h2-store__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.h2-store__grid .h2-prod:nth-child(3) { display: none; }
	.h2-bento { grid-template-columns: 1fr; }
	.h2-tile { grid-column: auto !important; }
	.h2-final__box { padding: 64px 24px; border-radius: 28px; }
	.h2-strip { padding: 20px 22px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {

	.h2-notif:first-child {
		animation: none;
	}
}

/* Contrastes des tuiles et du CTA final (rôles M3 "on-*") */
.h2-tile--liv { color: var(--md-sys-color-on-tertiary-container); }
.h2-tile--cc { color: var(--md-sys-color-on-success-container); }
.h2-tile--liv p,
.h2-tile--cc p,
.h2-tile--liv p strong,
.h2-tile--cc p strong { color: inherit; }

.h2-final__box { color: var(--md-sys-color-on-primary); }

.h2-final .h2-btn {
	background: var(--md-sys-color-on-primary);
	color: var(--md-sys-color-primary) !important;
}

/* Maquettes ordinateur + mobile (section responsive) */
.h2-devices {
	position: relative;
	aspect-ratio: 16 / 11;
}

.h2-devices__desk {
	position: absolute;
	inset: 0 12% 10% 0;
	border-radius: 18px;
	overflow: hidden;
	background: var(--md-sys-color-surface-container-high);
	border: 10px solid var(--md-sys-color-surface-container-high);
}

.h2-devices__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	height: 100%;
}

.h2-devices__grid img,
.h2-devices__mob img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}

.h2-devices__mob {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 28%;
	aspect-ratio: 9 / 19;
	border-radius: 26px;
	overflow: hidden;
	background: var(--md-sys-color-surface-container-high);
	border: 8px solid var(--md-sys-color-surface-container-high);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}

.h2-devices__mob img {
	border-radius: 0;
}

/* Grille des offres */
.h2-plans {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 16px;
}

.h2-plans .offer-plan {
	margin: 0 !important;
	align-self: stretch !important;
}

/* Barre d'état du téléphone (wifi, réseau, batterie) */
.h2-phone__status {
	position: absolute;
	top: 18px;
	right: 22px;
	display: flex;
	gap: 6px;
	font-size: 12px;
	color: var(--md-sys-color-on-primary-container);
}
