/* 
 * Clarté Auditif Inc. Website Styles
 * 
 * Color Palette:
 * - Main Background: Light Jade #A8DADC
 * - Accents: Bright Coral #FF6B6B
 * - Text: Charcoal Grey #2B2D42
 * - Buttons: Lemon Yellow #FFE66D
 * - Block Elements: Grey-White #F7F9FB
 */

/* Reset and Base Styles */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--color-background: #a8dadc;
	--color-accent: #ff6b6b;
	--color-text: #2b2d42;
	--color-button: #ffe66d;
	--color-block: #f7f9fb;
	--color-white: #ffffff;
	--font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	--transition: all 0.3s ease;
	--header-height: 90px; /* Variable pour la hauteur du header */
}

html {
	scroll-behavior: smooth;
	/* Ajout de padding pour éviter que le contenu ne soit masqué sous le header */
	scroll-padding-top: var(--header-height);
	/* Garantir que le scroll est précis */
	overflow-y: scroll;
}

body {
	font-family: var(--font-family);
	color: var(--color-text);
	line-height: 1.6;
	background-color: var(--color-background);
	overflow-x: hidden;
}

/* Container */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin-bottom: 0.5em;
	line-height: 1.2;
}

h1 {
	font-size: 2.5rem;
	margin-bottom: 20px;
}

h2 {
	font-size: 2rem;
	text-align: center;
	margin-bottom: 30px;
	position: relative;
	padding-bottom: 15px;
}

h2::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: var(--color-accent);
}

h3 {
	font-size: 1.5rem;
	margin-bottom: 15px;
}

p {
	margin-bottom: 15px;
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--color-text);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

section {
	padding: 80px 0;
	position: relative;
	margin-top: 0;
	border-top: 0;
}

section:nth-child(even) {
	background-color: var(--color-block);
}

/* Ensure no gaps in any way between sections */
section + section {
	margin-top: 0;
}

/* Make sure we're calculating heights correctly */
main {
	padding-top: 0;
	margin-top: 0;
}

/* Button Styles */
.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 30px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: var(--transition);
	border: none;
	outline: none;
	text-transform: uppercase;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
}

.primary-btn {
	background-color: var(--color-button);
	color: var(--color-text);
}

.primary-btn:hover {
	background-color: var(--color-text);
	color: var(--color-white);
	transform: translateY(-3px);
}

.secondary-btn {
	background-color: transparent;
	border: 2px solid var(--color-button);
	color: var(--color-text);
}

.secondary-btn:hover {
	background-color: var(--color-button);
	color: var(--color-text);
	transform: translateY(-3px);
}

/* Cookie Banner */
.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(43, 45, 66, 0.9);
	color: #fff;
	padding: 15px;
	z-index: 1000;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.cookie-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.cookie-content p {
	margin: 0 20px 0 0;
	font-size: 0.9rem;
}

.cookie-content a {
	color: var(--color-button);
	text-decoration: underline;
}

#accept-cookies {
	white-space: nowrap;
}

/* Header Styles */
.site-header {
	background-color: var(--color-white);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-height); /* Hauteur fixe du header */
	margin-bottom: 0;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
	height: 100%;
}

.logo img {
	height: 60px;
	width: auto;
}

.nav-list {
	display: flex;
	list-style: none;
}

.nav-list li {
	margin-left: 25px;
}

.nav-list a {
	color: var(--color-text);
	font-weight: 500;
	position: relative;
}

.nav-list a::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color-accent);
	transition: var(--transition);
}

.nav-list a:hover::after {
	width: 100%;
}

.header-contact .phone-link {
	color: var(--color-accent);
	font-weight: bold;
	font-size: 1.1rem;
}

.mobile-menu-toggle {
	display: none;
	cursor: pointer;
	background: none;
	border: none;
	width: 30px;
	height: 24px;
	position: relative;
}

.mobile-menu-toggle span {
	display: block;
	width: 100%;
	height: 3px;
	background-color: var(--color-text);
	position: absolute;
	transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
	top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
	top: 50%;
	transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
	bottom: 0;
}

/* Hero Section */
.hero {
	padding: 120px 0;
	text-align: center;
	position: relative;
	overflow: hidden;
	margin-top: 0;
	padding-top: calc(var(--header-height) / 2);
	background-image: url(../img/9xuaVl.jpg);
	background-size: cover;
	background-position: center;
	color: var(--color-text);
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(168, 218, 220, 0.3), rgba(255, 107, 107, 0.2));
	z-index: 1;
	opacity: 0.4 !important;
}

.hero .container {
	position: relative;
	z-index: 2;
}

.hero h1 {
	font-size: 3rem;
	margin-bottom: 20px;
	color: var(--color-text);
}

.hero-subtitle {
	font-size: 1.5rem;
	margin-bottom: 40px;
	color: var(--color-text);
}

/* About Section */
.about-content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}

.about-text {
	flex: 1;
	min-width: 300px;
}

.about-image {
	flex: 1;
	min-width: 300px;
}

.about-image img {
	border-radius: 10px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Advantages Section */
.advantages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.advantage-card {
	background-color: var(--color-white);
	border-radius: 10px;
	padding: 30px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: var(--transition);
}

.advantage-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
	margin-top: 40px;
}

.service-card {
	background-color: var(--color-white);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: var(--transition);
	display: flex;
	flex-direction: column;
}

.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.service-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.service-card h3,
.service-card p,
.service-card .service-price,
.service-card .btn {
	padding: 0 20px;
}

.service-card h3 {
	margin-top: 20px;
}

.service-card .service-price {
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--color-accent);
	margin: 15px 0;
}

.service-card .btn {
	margin: 20px auto;
	align-self: center;
}

/* CTA Section */
.cta {
	background: linear-gradient(135deg, var(--color-accent), var(--color-background));
	color: white;
	text-align: center;
	padding: 80px 0;
}

.cta h2 {
	color: white;
}

.cta h2::after {
	background-color: var(--color-button);
}

.cta p {
	margin-bottom: 30px;
	font-size: 1.2rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/* Testimonials Section */
.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.testimonial-card {
	background-color: var(--color-white);
	border-radius: 10px;
	padding: 30px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	position: relative;
}

.testimonial-card::before {
	content: '"';
	position: absolute;
	top: 10px;
	left: 20px;
	font-size: 4rem;
	color: rgba(168, 218, 220, 0.3);
	line-height: 1;
}

.testimonial-text {
	font-style: italic;
	margin-bottom: 20px;
}

.testimonial-author {
	font-weight: bold;
	text-align: right;
}

/* Contact Section */
.contact-content {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	margin-top: 40px;
}

.contact-info,
.contact-form {
	flex: 1;
	min-width: 300px;
}

.contact-details {
	list-style: none;
	margin-top: 20px;
}

.contact-details li {
	margin-bottom: 15px;
	display: flex;
	align-items: flex-start;
}

/* Form Styles */
.form-group {
	margin-bottom: 20px;
}

label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
}

input,
select,
textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-family: var(--font-family);
	font-size: 1rem;
}

.checkbox {
	display: flex;
	align-items: center;
}

.checkbox input {
	width: auto;
	margin-right: 10px;
}

.checkbox label {
	margin-bottom: 0;
}

/* Footer Styles */
.site-footer {
	background-color: var(--color-text);
	color: var(--color-white);
	padding: 60px 0 20px;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-info h3 {
	margin-bottom: 20px;
}

.footer-contact ul,
.footer-links ul {
	list-style: none;
}

.footer-contact ul li,
.footer-links ul li {
	margin-bottom: 10px;
}

.footer-links a {
	color: var(--color-white);
	opacity: 0.8;
}

.footer-links a:hover {
	opacity: 1;
	color: var(--color-button);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 20px;
	text-align: center;
	font-size: 0.9rem;
	opacity: 0.7;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	.hero {
		padding: 80px 0;
	}

	.hero h1 {
		font-size: 2.5rem;
	}

	.hero-subtitle {
		font-size: 1.2rem;
	}

	section {
		padding: 60px 0;
	}
}

@media screen and (max-width: 768px) {
	.nav-list {
		display: none;
	}

	.mobile-menu-toggle {
		display: block;
	}

	.header-contact {
		display: none;
	}

	.nav-list.active {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: var(--color-white);
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
		padding: 20px;
		z-index: 100;
	}

	.nav-list.active li {
		margin: 10px 0;
	}

	.hero h1 {
		font-size: 2rem;
	}

	.hero-subtitle {
		font-size: 1.1rem;
	}

	.about-content,
	.contact-content {
		flex-direction: column;
	}

	.cookie-content {
		flex-direction: column;
		text-align: center;
	}

	.cookie-content p {
		margin-bottom: 15px;
		margin-right: 0;
	}
}

@media screen and (max-width: 480px) {
	h1 {
		font-size: 1.8rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	.btn {
		padding: 10px 20px;
		font-size: 0.8rem;
	}

	.service-card {
		min-width: 100%;
	}

	.advantages-grid,
	.services-grid,
	.testimonials-grid {
		grid-template-columns: 1fr;
	}

	.footer-content {
		grid-template-columns: 1fr;
	}

	.footer-info,
	.footer-contact,
	.footer-links {
		text-align: center;
	}
}
