/* ==========================================================================
   Tech For You — Composants de mise en page partagés par TOUTES les pages
   du thème (en-tête, navigation, pied de page, barre CTA mobile, container
   large). Extrait de techforyou-home.css pour être chargé sur l'accueil
   ET sur les pages suivantes (Tarifs, Dépannage...) sans dupliquer le CSS.
   Ne contient aucune règle propre à une page précise.
   ========================================================================== */

.tfy-container--wide {
	max-width: var(--tfy-container-wide);
}

/* Variante "Composition élargie" — optionnelle, jamais appliquée par défaut.
   Une page ajoute la classe .tfy-content--wide (en plus de .tfy-content si besoin)
   sur UNE section précise pour l'autoriser à dépasser le plafond standard --tfy-content
   (78rem) sur très grand écran. Sous 1920px, --tfy-content-wide n'est pas défini :
   la valeur de repli var(--tfy-content) s'applique, donc aucun effet visuel tant que
   rien n'utilise cette classe. --tfy-content-wide lui-même n'est fixé qu'à ≥1920px
   ci-dessous. */
.tfy-content--wide {
	max-width: var(--tfy-content-wide, var(--tfy-content));
}

/* ---------------------------------------------------------------------- */
/* .tfy-flow — canevas graphite continu, identité visuelle commune à toutes
   les pages du thème (chaque page y place ses propres sections à
   l'intérieur ; le dégradé lui-même ne change pas d'une page à l'autre).  */
/* ---------------------------------------------------------------------- */
.tfy-flow {
	position: relative;
	background: linear-gradient(
		180deg,
		#0a0b10 0%,
		#111318 18%,
		#15171d 38%,
		#181a21 55%,
		#1b1d25 70%,
		#171920 85%,
		#0e0f13 100%
	);
}

/* ---------------------------------------------------------------------- */
/* En-tête                                                                 */
/* ---------------------------------------------------------------------- */
.tfy-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--tfy-graphite-900);
	color: var(--tfy-white);
	border-bottom: 1px solid var(--tfy-border-dark);
}

.tfy-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
	padding-block: 0.85rem;
}

.tfy-logo {
	display: flex;
	align-items: center;
	grid-column: 1;
}

.tfy-logo img {
	height: 38px;
	width: auto;
	display: block;
}

.tfy-nav {
	grid-column: 2;
	justify-self: center;
}

.tfy-nav__list {
	display: flex;
	gap: clamp(1.75rem, 2.2vw, 2.5rem);
	list-style: none;
	padding: 0;
	margin: 0;
	font-weight: 600;
	font-size: 0.92rem;
}

.tfy-nav__list a {
	position: relative;
	padding-block: 0.3rem;
	display: inline-block;
}

.tfy-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	background: linear-gradient(to right, var(--tfy-blue), var(--tfy-indigo-bright));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--tfy-duration) var(--tfy-ease);
}

.tfy-nav__list a:hover::after,
.tfy-nav__list a:focus-visible::after {
	transform: scaleX(1);
}

.tfy-header__actions {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	grid-column: 3;
	justify-self: end;
}

.tfy-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--tfy-radius-sm);
	padding: 0;
	cursor: pointer;
	grid-column: 3;
	justify-self: end;
}

.tfy-burger__bar {
	display: block;
	width: 20px;
	height: 2px;
	margin-inline: auto;
	background: var(--tfy-white);
	transition: transform var(--tfy-duration) var(--tfy-ease), opacity var(--tfy-duration) var(--tfy-ease);
}

.tfy-burger[aria-expanded="true"] .tfy-burger__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.tfy-burger[aria-expanded="true"] .tfy-burger__bar:nth-child(2) {
	opacity: 0;
}

.tfy-burger[aria-expanded="true"] .tfy-burger__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.tfy-mobile-menu {
	display: none;
	flex-direction: column;
	gap: 1.5rem;
	padding: 1.5rem var(--tfy-gutter) 2rem;
	background: var(--tfy-graphite-900);
	border-top: 1px solid var(--tfy-border-dark);
}

.tfy-mobile-menu.is-open {
	display: flex;
}

.tfy-mobile-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	font-size: 1.05rem;
	font-weight: 600;
}

.tfy-mobile-menu__actions {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.tfy-mobile-menu__actions .tfy-btn {
	justify-content: center;
}

/* ---------------------------------------------------------------------- */
/* Pied de page                                                            */
/* ---------------------------------------------------------------------- */
.tfy-footer {
	background: var(--tfy-graphite-900);
	color: rgba(255, 255, 255, 0.85);
	padding-block: clamp(3rem, 5vw, 4rem) 1.5rem;
}

.tfy-footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr 1fr;
	gap: 2.5rem;
	padding-bottom: 2.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tfy-footer__brand img {
	margin-bottom: 1rem;
	height: 44px;
	width: auto;
}

.tfy-footer__brand p {
	font-size: 0.88rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.65);
	max-width: 22rem;
}

.tfy-social-link {
	display: inline-block;
	margin-top: 1rem;
	font-size: 0.85rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tfy-footer__nav h2,
.tfy-footer__contact h2 {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 1rem;
}

.tfy-footer__contact h2:not(:first-child) {
	margin-top: 1.5rem;
}

.tfy-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	font-size: 0.9rem;
}

.tfy-footer__contact p {
	margin-bottom: 0;
	font-size: 0.9rem;
	line-height: 1.7;
}

.tfy-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding-top: 1.5rem;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
}

.tfy-footer__bottom p {
	margin: 0;
}

.tfy-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tfy-footer__legal a {
	color: rgba(255, 255, 255, 0.5);
	transition: color var(--tfy-duration) var(--tfy-ease);
}

.tfy-footer__legal a:hover,
.tfy-footer__legal a:focus-visible {
	color: var(--tfy-blue-bright);
}

/* ---------------------------------------------------------------------- */
/* Barre CTA persistante mobile                                           */
/* ---------------------------------------------------------------------- */
.tfy-mobile-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	display: none;
	grid-template-columns: 1fr 1fr;
	background: var(--tfy-graphite-900);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tfy-mobile-cta a {
	padding: 0.9rem;
	text-align: center;
	font-weight: 700;
	color: var(--tfy-white);
	font-size: 0.92rem;
}

.tfy-mobile-cta__call {
	background: var(--tfy-blue);
}

.tfy-mobile-cta__contact {
	background: var(--tfy-graphite-800);
}

/* ---------------------------------------------------------------------- */
/* Bande CTA de clôture (.tfy-contact-final) — composant de fin de page
   réutilisé tel quel d'une page à l'autre (accueil, Tarifs...) : seul le
   titre/texte changent dans le HTML de chaque page.                      */
/* ---------------------------------------------------------------------- */
.tfy-contact-final {
	position: relative;
	z-index: 1;
	padding-block: clamp(4.5rem, 8vw, 6.5rem);
	overflow: clip;
}

.tfy-contact-final::before {
	content: "";
	position: absolute;
	bottom: -10%;
	left: -8%;
	width: min(30vw, 420px);
	height: min(30vw, 420px);
	background: radial-gradient(circle, rgba(0, 103, 255, 0.16), transparent 72%);
	pointer-events: none;
	z-index: -1;
}

.tfy-contact-final__inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2.5rem;
	flex-wrap: wrap;
	padding-top: clamp(2.5rem, 5vw, 3.5rem);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tfy-contact-final__main h2 {
	font-size: clamp(1.85rem, 3.3vw, 2.55rem);
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 0.75rem;
	max-width: 20ch;
	color: var(--tfy-white);
}

.tfy-contact-final__main p {
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
	margin-bottom: 1.75rem;
	max-width: 28rem;
}

.tfy-contact-final__details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.85rem;
	font-weight: 700;
	color: var(--tfy-white);
	padding-bottom: 0.3rem;
}

a.tfy-mail-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--tfy-white);
	transition: color var(--tfy-duration) var(--tfy-ease);
}

a.tfy-mail-link:hover,
a.tfy-mail-link:focus-visible {
	color: var(--tfy-blue-bright);
}

.tfy-mail-link svg {
	width: 18px;
	height: 18px;
	flex: none;
}

/* ---------------------------------------------------------------------- */
/* Grand écran (≥1920px)                                                  */
/* ---------------------------------------------------------------------- */
@media (min-width: 1920px) {
	/* Le container large continue de croître doucement au-delà de 1920px
	   (32", 4K...) au lieu de rester figé à sa valeur de base — profite à
	   toutes les pages, pas seulement à l'accueil. */
	:root {
		--tfy-container-wide: clamp(1760px, calc(1760px + (100vw - 1920px) * 0.42), 2260px);

		/* Valeur de la variante "Composition élargie" (voir .tfy-content--wide
		   ci-dessus) : ne s'applique qu'aux sections qui portent explicitement
		   cette classe. Grandit doucement au-delà de 78rem jusqu'à 90rem sur les
		   très grands écrans (32", 4K...), jamais plus large que --tfy-container-wide. */
		--tfy-content-wide: clamp(78rem, calc(78rem + (100vw - 1920px) * 0.02), 90rem);
	}

	.tfy-logo img {
		height: 44px;
	}
}

/* ---------------------------------------------------------------------- */
/* Tablette (≤1024px)                                                     */
/* ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.tfy-nav,
	.tfy-header__actions {
		display: none;
	}

	.tfy-burger {
		display: flex;
	}

	.tfy-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ---------------------------------------------------------------------- */
/* Mobile (≤640px)                                                        */
/* ---------------------------------------------------------------------- */
@media (max-width: 640px) {
	.tfy-contact-final__main .tfy-btn,
	.tfy-mobile-menu__actions .tfy-btn {
		width: 100%;
		justify-content: center;
	}

	.tfy-contact-final__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.tfy-footer__grid {
		grid-template-columns: 1fr;
	}

	.tfy-mobile-cta.is-visible {
		display: grid;
	}

	.tfy-footer {
		padding-bottom: 5rem;
	}
}
