/*
Theme Name: KLB Web Studio
Theme URI: https://www.klbwebstudio.fr
Author: KLB Web Studio
Author URI:  https://www.klbwebstudio.fr
Tags: accessibility-ready, one-column, two-columns, custom-menu, featured-images, microformats, sticky-post, threaded-comments, translation-ready
Version: 2025
Requires at least: 5.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or Later
Text Domain: klbwebstudio

klbwebstudio WordPress Theme 2025
klbwebstudio is distributed under the terms of the GNU GPL
*/

:root {
	--primary-color: #5a382a;
	--secondary-color: #714635;
	--tertiary-color: #9c6149;
	--gray-color: #f0f0f0;
	--light-color: #fff;
	--dark-color: #000;
	--margin: 15.5em;
	--margin-responsive: 2em;
}

* {
	font-family: "Open Sans", sans-serif;
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

body {
	color: var(--secondary-color);
	background: var(--light-color);
	font-size: 15px;
}

a {
	text-decoration: none;
}

li {
	list-style-type: none;
}

.svg.hover,
.btn:hover .default {
	display: none;
}

.btn:hover .hover {
	display: block;
}

.btn {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px 10px;
	gap: 10px;
	border-radius: 4px;
	border: none;
	background-color: var(--secondary-color);

	&: hover {
		box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.25);
	}

	a {
		color: var(--light-color);
	}
}

.btn-cta {
	max-width: 171px;
}

.btn-test {
	max-width: 200px;
}

.btn-seemore {
	max-width: 225px;

	i {
		font-size: 1.2em;
		color: var(--light-color);
	}
}

.btn-page-test {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 5em;
	padding: 10px 14px;
	gap: 10px;
	border: none;
	border-radius: 4px;
	background: var(--tertiary-color);
	color: var(--light-color);
	font-size: 1em;
	cursor: pointer;

	&: hover {
		background: var(--secondary-color);
		box-shadow: 0px 0px 8px 8px rgba(0, 0, 0, 0.25);
	}

	a {
		color: var(--light-color);
	}
}

.header-fixe {
	position: fixed;
	width: 100%;
	box-shadow: 0 2px 5px var(--light-color);
	background: var(--gray-color);
	z-index: 2;

	.minihead {
		display: flex;
		margin: auto;
		justify-content: center;
		padding: 1em 0;

		img {
			height: 3em;
		}
	}

	.navbar {
		padding: var(--margin-responsive) 0;
		font-weight: 500;
		background-color: var(--primary-color);

		ul {
			font-size: 14px;
			display: flex;
			justify-content: center;
			gap: 1.5em;

			li {
				list-style-type: none;

				a {
					color: var(--light-color);
				}

				.link-menu:hover {
					border-bottom: 5px solid var(--light-color);
					padding-bottom: 1em;
				}
			}
		}
	}
}

.title-logo {
	display: none;
}

.atf {
	background: right / cover url(https://www.tabastop.fr/wp-content/uploads/2024/07/Background.png);
	display: flex;
	align-items: center;
	max-height: 630px;
	height: auto;
	padding: var(--margin-responsive);

	.cta {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		gap: 15px;
		padding: 3.875em 2.813em;
		background-color: var(--gray-color);
		border-radius: 8px;

		.title-cta {
			font-size: 1.3em;
			font-weight: 500;
		}

		.bold {
			font-weight: 700;
		}
	}
}

.arguments {
	display: flex;
	flex-direction: column;
	height: auto;
	margin: var(--margin-responsive);

	.argument {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-items: center;
		padding: 2.75em 2.2em;
		color: var(--light-color);

		.text-argument {
			display: flex;
			flex-direction: column;
			gap: 25px;

			h3 {
				font-size: 20px;
				font-weight: 700;
			}
		}
	}

	.item-1 {
		background: var(--tertiary-color);
	}

	.item-2 {
		background: var(--secondary-color);
	}

	.item-3 {
		background: var(--primary-color);
	}
}

.methode {
	display: flex;
	flex-direction: column;
	margin: var(--margin-responsive);
	gap: 50px;
	justify-items: center;

	.img-methode img {
		width: 100%;
	}

	.text-methode {
		display: flex;
		flex-direction: column;
		gap: 20px;

		.title-methode {
			font-size: 2em;
		}
	}

	.btn-cta {
		align-self: center;
	}
}

.tests {
	padding: var(--margin-responsive) 1.3em;
	background: var(--gray-color);

	.title-tests {
		text-align: center;
		font-size: 2em;
	}

	.text-tests {
		padding: 25px 0 50px;
	}

	.cards {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		text-align: center;
		gap: 20px;
		margin: auto;
	}

	.card {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		max-width: 100%;
		gap: 20px;
		padding: 17px 20px;
		border-radius: 8px;
		background: var(--light-color);
		box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.25);

		.text-card {
			display: flex;
			flex-direction: column;
			gap: 10px;
		}

		.btn-test .svg {
			height: 20px;
		}
	}
}

.reassurance {
	display: flex;
	flex-direction: column-reverse;
	background: var(--primary-color);

	.col-1 {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 35px;
		margin: var(--margin-responsive);
		color: var(--light-color);

		h3 {
			font-size: 1.5em;
		}

		.text-reassurance {
			line-height: 150%;
		}

		.stats {
			display: flex;
			justify-content: center;

			.bloc-resultat {
				margin-top: 2em;
				text-align: center;

				.success-rate {
					display: inline-block;
					padding: 0.4em 1.2em;
					font-size: 2.5em;
					font-weight: 700;
					color: var(--primary-color);
					background: var(--light-color);
					border-radius: 2em;
					box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
				}

				p {
					margin-top: 0.5em;
					font-size: 0.95em;
					line-height: 1.3em;
				}
			}
		}
	}

	.col-2 img {
		max-width: 100%;
		height: auto;
	}
}

.testimonials {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: var(--margin-responsive) 1em;

	.wp-block-uagb-testimonial {
		max-width: 70%;
		margin: 2em 0;
	}
}

footer {
	padding: var(--margin-responsive) 1.3em;
	color: var(--light-color);
	background: var(--primary-color);

	.footer {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-around;
		gap: 40px;
		padding-bottom: 4em;
		text-align: center;

		a {
			color: var(--light-color);
		}

		.colonne-1 {
			.logo-footer {
				margin-bottom: 2em;
			}

			.title-footer {
				font-size: 16px;
				font-weight: 500;

				span {
					font-weight: bold;
				}
			}
		}

		.colonne-2,
		.colonne-2 ul,
		.colonne-3,
		.footer-contact {
			display: flex;
			flex-direction: column;
			gap: 15px;
		}

		.contact-item {
			display: flex;
			align-items: center;
			justify-content: flex-start;
			gap: 15px;
		}

		.link-footer {
			text-decoration: underline;
		}
	}

	.klbwebstudio {
		text-align: center;
		font-weight: 700;

		a {
			font-style: italic;
			color: var(--light-color);

			&: hover {
				border-bottom: 2px solid var(--light-color);
				padding-bottom: 5px;
			}
		}
	}
}

.top {
	position: fixed;
	bottom: 25px;
	right: 25px;

	.backtotop {
		font-size: 2em;
		background: var(--light-color);
		color: var(--primary-color);
		border-radius: 50px;
	}
}

.atf.atf404 {
	height: 20vh;
}

.backhome {
	display: flex;
	justify-content: center;
	margin-top: 5em;
}

.page {
	margin: 20px 20px 5em;

	h1 {
		font-size: 2em;
		margin-bottom: 1em;
	}

	h3 {
		margin: 1em 0;
	}

	h4 {
		margin: 10px 0;
	}

	.post-2 {
		.list-testimonials {
			display: flex;
			flex-wrap: wrap;
			gap: 1em;
			margin-top: 2em;

			li {
				width: 100%;
			}

			.testimonial {
				display: flex;
				flex-direction: column;
				gap: 10px;
				border-bottom: 1px solid var(--primary-color);
				padding: 10px 0;

				h4 {
					margin: 0;
				}

				span {
					font-style: italic;
					font-size: 0.9em;
				}
			}
		}

		.lastChild {
			margin-top: 2em;
			text-align: center;
		}

		.p-lastChild {
			margin-bottom: 3em;
			text-align: center;
		}

		.btn-test {
			margin: auto;
		}
	}

	.post-87 {
		display: flex;
		flex-wrap: wrap;
		gap: 1em;

		.colonnes {
			display: grid;
			grid-template-columns: 1fr;
			gap: 1em;

			img {
				max-width: 100%;
			}
		}

		&>p {
			margin: auto;
		}

		button {
			margin-top: 3em;
		}

		ul {
			margin: 1em 0;

			li {
				list-style-type: circle;
				margin: 0.5em 0;
				margin-left: 15px;

				span {
					font-weight: 600;
				}
			}
		}
	}
}

.introTest {
	margin: 1em 0;
	font-style: italic;
}

form {
	display: flex;
	flex-wrap: wrap;
	gap: 1em 2em;

	div {
		width: 100%;
		padding-bottom: 2em;
		border-bottom: 1px solid var(--tertiary-color);

		h3 {
			font-size: 1em;
		}
	}

	&>p {
		display: flex;
		justify-content: center;
		justify-self: center;
		margin: 1em auto auto;
	}
}

h3#titre-resultats {
	justify-content: center;
	font-size: 1.5em;
}

.resultats,
.resultatsTest {
	max-width: 70%;
	margin: auto;
	margin-bottom: 1em;
}

#resultatsTestFager,
.bilan p {
	margin-bottom: 1.5em;
}

.accent-strong {
	font-weight: 800;
}

#linkTests {
	justify-content: center;
	margin-top: 5em;
}

label {
	display: flex;
	line-height: 20px;
}

.input-radio {
	position: relative;
	margin-right: 0.5em;
	height: 20px;
	width: 20px;
	z-index: 1;
	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-appearance: none;
	-o-appearance: none;
	appearance: none;
	outline: none;
	border: none;
	border-radius: 50%;
	background: #cbd1d8;
	color: var(--light-color);
	transition: all 0.15s ease-out 0s;
	cursor: pointer;

	&: :after {
		border-radius: 50%;
	}

	&:hover {
		background: var(--gray-color);
	}

	&:checked {
		background: var(--tertiary-color);
	}

	&:checked::before {
		position: absolute;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 20px;
		height: 20px;
		font-family: 'Font Awesome 5 Free';
		content: '\f00c';
		font-size: 10px;
		font-weight: bold;
	}

	&:checked::after {
		position: relative;
		display: block;
		z-index: 1;
		content: '';
		background: var(--tertiary-color);
	}
}

@media only screen and (min-width: 500px) {
	.header-fixe {
		.minihead {
			justify-content: flex-start;
			padding: 1em 10%;
		}

		.navbar {
			ul {
				justify-content: flex-start;
				padding: 0 10%;
			}
		}
	}

	.atf {
		height: 50vh;
		background-position: right;
		padding: var(--margin) 10%;
	}

	.atf-page {
		height: auto;
		padding: var(--margin) 10% 10%;
		border-bottom: 2px solid var(--primary-color);
	}

	.arguments {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		margin: -7.125em 0 0;
		max-height: fit-content;

		.argument {
			padding: 2em 1em;

			.text-argument {
				h3 {
					font-size: 16px;
				}

				p {
					font-size: 14px;
				}
			}
		}
	}

	.methode {
		.img-methode {
			display: flex;
			margin: auto;
		}
	}

	.tests {
		.cards {
			.card {
				width: calc(40% - 10px);
				max-width: calc(50% - 10px);
			}
		}
	}

	.reassurance {
		.col-2 {
			img {
				width: 100%;
				height: 30vh;
				object-fit: cover;
			}
		}
	}

	footer {
		.footer {
			flex-direction: row;
		}
	}

	.page {
		.post-87 {
			max-width: 80%;
			margin: auto;
		}
	}
}

@media only screen and (min-width: 771px) {
	body {
		font-size: 16px;
	}

	.atf {
		.cta {
			.title-cta {
				font-size: 2em;
			}
		}
	}

	.arguments {
		margin: -7.125em 10% 0;

		.argument {
			padding: 2.75em 2.2em;
		}
	}

	.methode {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		margin: 85px 0;
		padding: 0 10%;
	}

	.tests {
		padding: 80px 10% 21.56em;

		.cards {
			.card {
				width: calc(17% - 10px);
				max-width: calc(25% - 10px);
			}
		}
	}

	.reassurance {
		display: grid;
		grid-template-columns: 2fr 1fr;
		margin-top: -245px;

		.col-1 {
			margin: 0;
			padding: 3.5em;
		}

		.col-2 img {
			height: 100%;
		}
	}

	main.page {
		margin: 3em 10%;

		form {
			flex-direction: row;
			gap: 1em;

			div {
				width: calc(50% - 10px);
			}
		}

		.bilan {
			max-width: 70%;
			margin: auto;

			.bilanTest {
				margin-top: 2em;
			}

			p {
				margin-bottom: 1em;
			}
		}

		.list-testimonials {
			gap: 2em;

			li {
				max-width: calc(50% - 1em);
			}
		}

		.post-87 {
			max-width: none;
		}
	}
}

@media (min-width: 1440px) {
	.reassurance {
		.col-1 {
			padding: 3.5em 3.5em 3.5em var(--margin);
		}
	}

	main.page .post-87 {
		max-width: 80%;
	}
}