/* 
 * CréditMiroir Audit - Main Stylesheet
 * Color Palette:
 * - Primary: #120b2f (dark indigo)
 * - Accent: #ff4f81 (bright coral-pink)
 * - Support: #39c3b3 (turquoise)
 * - Background: #fdf8f2 (ivory)
 * - Text: #2d2d2d (graphite)
 */

/* ---------- Base Styles ---------- */
:root {
	--primary: #120b2f;
	--accent: #ff4f81;
	--support: #39c3b3;
	--background: #fdf8f2;
	--text: #2d2d2d;
	--light: #ffffff;
	--gray: #f2f2f2;
	--dark-gray: #666666;
	--transition: all 0.3s ease;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background-color: var(--background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
	color: var(--primary);
}

h1 {
	font-size: 3rem;
}

h2 {
	font-size: 2.5rem;
}

h3 {
	font-size: 1.8rem;
}

p {
	margin-bottom: 1.5rem;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--primary);
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.section-title {
	text-align: center;
	margin-bottom: 3rem;
	position: relative;
	padding-bottom: 1rem;
}

.section-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 0.8rem 1.8rem;
	border-radius: 50px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: var(--transition);
	border: 2px solid transparent;
}

.primary-btn {
	background-color: var(--accent);
	color: var(--light);
}

.primary-btn:hover {
	background-color: transparent;
	border-color: var(--accent);
	color: var(--accent);
}

.secondary-btn {
	background-color: transparent;
	border-color: var(--primary);
	color: var(--primary);
}

.secondary-btn:hover {
	background-color: var(--primary);
	color: var(--light);
}

/* ---------- Header ---------- */
.site-header {
	padding: 1.5rem 0;
	background-color: var(--light);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	height: 50px;
	width: auto;
}

.main-nav ul {
	display: flex;
	list-style: none;
}

.main-nav li:not(:last-child) {
	margin-right: 1.5rem;
}

.main-nav a {
	color: var(--primary);
	font-weight: 600;
	padding: 0.5rem;
}

.main-nav a:hover,
.main-nav a.active {
	color: var(--accent);
}

.main-nav a.cta-button {
	color: var(--light);
	background-color: var(--accent);
	padding: 0.5rem 1.2rem;
	border-radius: 50px;
}

.main-nav a.cta-button:hover {
	background-color: var(--primary);
	color: var(--light);
}

.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
}

.mobile-menu-toggle span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--primary);
	margin: 5px 0;
	transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
	padding: 6rem 0;
	background-color: var(--primary);
	color: var(--light);
	position: relative;
	overflow: hidden;
}

.hero .container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.hero h1,
.hero p {
	color: var(--light);
}

.hero-subtitle {
	font-size: 1.2rem;
	margin-bottom: 2rem;
}

.hero-image img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* ---------- About Section ---------- */
.about {
	padding: 6rem 0;
	background-color: var(--light);
}

.about-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.about-image img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ---------- Advantages Section ---------- */
.advantages {
	padding: 6rem 0;
	background-color: var(--primary);
	color: var(--light);
}

.advantages .section-title {
	color: var(--light);
}

.advantages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.advantage-card {
	background-color: rgba(255, 255, 255, 0.05);
	padding: 2rem;
	border-radius: 10px;
	text-align: center;
	transition: var(--transition);
}

.advantage-card:hover {
	transform: translateY(-10px);
	background-color: rgba(255, 255, 255, 0.1);
}

.advantage-icon {
	font-size: 3rem;
	color: var(--accent);
	margin-bottom: 1.5rem;
}

.advantage-card h3 {
	color: var(--light);
}

/* ---------- Services Section ---------- */
.services {
	padding: 6rem 0;
	background-color: var(--background);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.service-card {
	background-color: var(--light);
	border-radius: 10px;
	padding: 2rem;
	transition: var(--transition);
	position: relative;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
}

.service-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card.featured {
	border: 2px solid var(--accent);
	transform: scale(1.05);
}

.service-card.featured:hover {
	transform: scale(1.05) translateY(-5px);
}

.service-tag {
	position: absolute;
	top: -10px;
	right: 20px;
	background-color: var(--accent);
	color: var(--light);
	padding: 0.3rem 1rem;
	border-radius: 50px;
	font-size: 0.8rem;
	font-weight: 600;
}

.service-price {
	color: var(--primary);
	font-weight: 700;
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.service-features {
	list-style: none;
	margin-bottom: 2rem;
	flex-grow: 1;
}

.service-features li {
	margin-bottom: 0.8rem;
	position: relative;
	padding-left: 1.5rem;
}

.service-features li:before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 8px;
	height: 8px;
	background-color: var(--support);
	border-radius: 50%;
}

/* ---------- Testimonials Section ---------- */
.testimonials {
	padding: 6rem 0;
	background-color: var(--primary);
}

.testimonials .section-title {
	color: var(--light);
}

.testimonial-slider {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

.testimonial-slider input {
	display: none;
}

.slides {
	display: flex;
	overflow: hidden;
	position: relative;
}

.testimonial-slide {
	width: 100%;
	flex-shrink: 0;
	opacity: 0;
	transition: all 0.5s ease;
	position: absolute;
	transform: translateX(100%);
}

#t1:checked ~ .slides .testimonial-slide:nth-of-type(1),
#t2:checked ~ .slides .testimonial-slide:nth-of-type(2),
#t3:checked ~ .slides .testimonial-slide:nth-of-type(3) {
	opacity: 1;
	position: relative;
	transform: translateX(0);
}

.testimonial-content {
	background-color: rgba(255, 255, 255, 0.1);
	padding: 3rem;
	border-radius: 10px;
	color: var(--light);
}

.testimonial-content p {
	font-style: italic;
	font-size: 1.1rem;
}

.client-info {
	display: flex;
	align-items: center;
	margin-top: 2rem;
}

.client-info img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	margin-right: 1rem;
}

.client-info h4 {
	margin-bottom: 0.2rem;
	color: var(--light);
}

.client-info p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--gray);
}

.slider-nav {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.slider-nav label {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.3);
	margin: 0 0.5rem;
	cursor: pointer;
	transition: var(--transition);
}

#t1:checked ~ .slider-nav label:nth-of-type(1),
#t2:checked ~ .slider-nav label:nth-of-type(2),
#t3:checked ~ .slider-nav label:nth-of-type(3) {
	background-color: var(--accent);
}

.slider-nav label:hover {
	background-color: var(--accent);
}

/* ---------- Contact Section ---------- */
.contact {
	padding: 6rem 0;
	background-color: var(--light);
}

.contact-container {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 3rem;
	align-items: start;
}

.contact-info h3 {
	margin-bottom: 1.5rem;
}

.contact-info ul {
	list-style: none;
	margin-top: 2rem;
}

.contact-info li {
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
}

.contact-info li i {
	margin-right: 1rem;
	color: var(--accent);
}

.contact-form {
	background-color: var(--gray);
	padding: 2rem;
	border-radius: 10px;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-family: inherit;
	font-size: 1rem;
	transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--support);
	box-shadow: 0 0 0 3px rgba(57, 195, 179, 0.2);
}

.form-check {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.form-check input {
	margin-top: 0.3rem;
	margin-right: 0.5rem;
}

.form-check label {
	font-size: 0.9rem;
}

/* ---------- Blog Section ---------- */
.blog {
	padding: 6rem 0;
	background-color: var(--background);
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.blog-card {
	background-color: var(--light);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: var(--transition);
}

.blog-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.blog-content {
	padding: 1.5rem;
}

.blog-content h3 {
	font-size: 1.3rem;
	margin-bottom: 1rem;
}

.blog-content p {
	color: var(--dark-gray);
	margin-bottom: 1.5rem;
}

.blog-link {
	display: inline-flex;
	align-items: center;
	font-weight: 600;
}

.blog-link i {
	margin-left: 0.5rem;
	transition: var(--transition);
}

.blog-link:hover i {
	transform: translateX(5px);
}

/* ---------- Footer ---------- */
.site-footer {
	padding: 4rem 0 0;
	background-color: var(--primary);
	color: var(--light);
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 3rem;
	margin-bottom: 3rem;
}

.footer-logo {
	height: 50px;
	width: auto;
	margin-bottom: 1.5rem;
}

.footer-about p {
	color: rgba(255, 255, 255, 0.7);
}

.footer-contact h3,
.footer-nav h3,
.footer-legal h3 {
	color: var(--light);
	position: relative;
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
}

.footer-contact h3::after,
.footer-nav h3::after,
.footer-legal h3::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background-color: var(--accent);
}

.footer-contact ul,
.footer-nav ul,
.footer-legal ul {
	list-style: none;
}

.footer-contact li,
.footer-nav li,
.footer-legal li {
	margin-bottom: 0.8rem;
}

.footer-nav a,
.footer-legal a {
	color: rgba(255, 255, 255, 0.7);
	transition: var(--transition);
}

.footer-nav a:hover,
.footer-legal a:hover {
	color: var(--accent);
}

.footer-bottom {
	background-color: rgba(0, 0, 0, 0.2);
	padding: 1.5rem 0;
	text-align: center;
}

.footer-bottom p {
	margin: 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.9rem;
}

/* ---------- Cookie Consent ---------- */
.cookie-consent {
	position: fixed;
	bottom: -100%;
	left: 0;
	width: 100%;
	background-color: var(--primary);
	color: var(--light);
	padding: 1rem 0;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	transition: bottom 0.5s ease;
}

.cookie-consent.show {
	bottom: 0;
}

.cookie-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.cookie-content p {
	margin: 0;
	font-size: 0.9rem;
}

.cookie-content a {
	color: var(--accent);
	text-decoration: underline;
}

.cookie-btn {
	background-color: var(--accent);
	color: var(--light);
	border: none;
	padding: 0.5rem 1.5rem;
	border-radius: 50px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
}

.cookie-btn:hover {
	background-color: var(--support);
}

/* ---------- Responsive Styles ---------- */
@media screen and (max-width: 992px) {
	h1 {
		font-size: 2.5rem;
	}

	h2 {
		font-size: 2rem;
	}

	.hero .container,
	.about-content {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.hero-image {
		order: -1;
	}

	.contact-container {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 768px) {
	.service-card.featured {
		transform: none;
	}

	.service-card.featured:hover {
		transform: translateY(-5px);
	}

	.advantages-grid {
		grid-template-columns: 1fr 1fr;
	}

	.main-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: var(--light);
		padding: 1rem;
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	}

	.main-nav.active {
		display: block;
	}

	.main-nav ul {
		flex-direction: column;
	}

	.main-nav li {
		margin-right: 0;
		margin-bottom: 1rem;
	}

	.mobile-menu-toggle {
		display: block;
	}
}

@media screen and (max-width: 576px) {
	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	.advantages-grid {
		grid-template-columns: 1fr;
	}

	.cookie-content {
		flex-direction: column;
		text-align: center;
	}

	.cookie-content p {
		margin-bottom: 1rem;
	}
}

/* ---------- Animation Keyframes ---------- */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Apply animations to sections */
.hero,
.about,
.advantages,
.services,
.testimonials,
.contact,
.blog {
	animation: fadeIn 1s ease-out;
}

.about-text {
	animation: slideInLeft 1s ease-out;
}

.about-image,
.hero-image {
	animation: slideInRight 1s ease-out;
}
