* {
	box-sizing: border-box;
}

body {
	margin: 0;
	overflow-x: hidden;
	width: 100%;
}

main {
	margin-top: 40px;
}

.banner {
	position: relative;
	width: 100%;
	height: 90vh;
	background-image: url('../image/banner.png');
	background-size: cover;
	background-position: center 34%;
	background-attachment: fixed;
	overflow: hidden;
}

.service {
	position: relative;
	width: 100%;
	padding-top: 20px;
	text-align: center;
}
.equipe {
	position: relative;
	width: 100%;
	background-color: #f2f2f2;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-bottom: 60px;
}
.urgence {
	position: relative;
	width: 100%;
	padding-bottom: 40px;
}
.clinique {
	position: relative;
	width: 100%;
	padding-top: 40px;
	padding-bottom: 40px;
	background-color: #f2f2f2; 
}
.contact {
	position: relative;
	width: 100%;
	height: 80vh;
}


/* Haut gauche */
.banner-top-left {
	position: absolute;
	top: 70px;
	left: 30px;
	width: 30%;
	height: 20%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Bas gauche */
.banner-bottom-left {
	position: absolute;
	bottom: 10px;
	left: 10px;
	width: 30%;
	height: 50%;
	display: flex;
	align-items: center;
	justify-content: center; 
	color: #2e2e2e;
	padding: 10px;
	background: rgba(255, 255, 255, 0.7); /* optionnel */
	border-radius: 8px;
}

/* Bas droite */
.banner-bottom-right {
	position: absolute;
	bottom: 50px;
	right: 50px;
	width: 20%;
	height: 20%;
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* ou center selon ton style */
	justify-content: center;
	color: #2e2e2e;
	text-align: left;
	padding: 10px;
}

.banner-bottom-right p {
	margin: 2px 0;
	font-size: 1.1rem;
	font-weight: 500;
	color: #2e2e2e; 
}

.banner-top-left,
.banner-bottom-left,
.banner-bottom-right {
	transition: transform 0.8s ease, opacity 0.8s ease;
	opacity: 0;
	transform: translateY(20px);
}

.banner.show .banner-top-left,
.banner.show .banner-bottom-left,
.banner.show .banner-bottom-right {
	opacity: 1;
	transform: translateY(0);
}

.banner-bottom-left {
	backdrop-filter: blur(5px);
	background: rgba(255, 255, 255, 0.5);
}

/* Texte dans le bloc bottom-left */
.banner-bottom-left .info-box {
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
	color: #2e2e2e;
}

.banner-bottom-left h1 {
	font-size: 3rem;
	font-weight: bold;
	color: #4cc8a3;
	margin: 0;
}

.banner-bottom-left h2 {
	font-size: 2.3rem;
	color: #2e2e2e;
	margin: 0;
}

.banner-bottom-left h3 {
	font-size: 2.2rem;
	font-weight: 600;
	color: #44c091;
	margin: 0;
}

.btn-contact {
	margin-top: 10px;
	padding: 10px 20px;
	background-color: #44c091;
	color: white;
	border: none;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-contact-large {
	margin-top: 10px;
	padding: 10px 20px;
	background-color: #44c091;
	color: white;
	border: none;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 2rem;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-contact:hover {
	background-color: #37a882;
	transform: scale(1.05);
}

.btn-contact-large:hover {
	background-color: #37a882;
	transform: scale(1.05);
}

.service h1 {
	font-size: 3rem;
	font-weight: bold;
	color: #4cc8a3;
	margin-bottom: 30px;
}

.service-header {
	width: 60%;
	margin: 0 auto 50px auto;
	text-align: justify;
}

.service-header p {
	color: #444;
	line-height: 1.6;
	font-size: 1.7rem;
}

.service-list {
	width: 100%;
}

/* Bandeau d’images */
.service-list-header {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.service-tab {
	padding: 10px 20px;
	width: 25vh;
	height: 10vh;
	border: 2px solid #44c091;
	background-color: white;
	color: #44c091;
	font-size: 2vh;
	font-weight: 600;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.service-tab:hover {
	background-color: #e6f8f3;
}

.service-tab.active {
	background-color: #44c091;
	color: white;
}

/* Masquer tous les blocs sauf actif */
.service-selected {
	display: none;
	align-items: top;
	justify-content: center;
	gap: 30px;
	width: 100%;
	margin-bottom: 60px;
	padding: 20px;
	box-sizing: border-box;
}

.service-selected.active {
	display: flex;
}

.service-image {
	width: 50%;
}

.service-image img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.service-text {
	width: 50%;
	text-align: justify;
	padding-left: 60px;
	padding-right: 60px;
	padding-top: 20px;
}

.service-text h2 {
	font-size: 2.4rem;
	color: #44c091;
	margin-bottom: 10px;
}

.service-text p {
	font-size: 1.7rem;
	color: #333;
	line-height: 1.5;
}

.equipe h1 {
	font-size: 3rem;
	font-weight: bold;
	color: #4cc8a3;
	margin-bottom: 30px;
}

.equipe-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	width: 100%;
	margin: 0 auto;
}

.equipe-card {
	width: 28%;
	background-color: #f9f9f9;
	padding: 20px;
	border-radius: 10px;
	text-align: center;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.equipe-card img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 15px;
}

.equipe-card h2 {
	font-size: 1.3rem;
	color: #44c091;
	margin-bottom: 5px;
}

.equipe-card h3 {
	font-size: 1rem;
	color: #666;
	margin-bottom: 10px;
	font-weight: normal;
}

.equipe-card p {
	font-size: 0.95rem;
	color: #444;
	line-height: 1.4;
	font-size: 1.4rem;
	text-align: justify;
}

.clinique h1 {
	text-align: center;
	font-size: 3rem;
	font-weight: bold;
	color: #4cc8a3;
	margin-bottom: 30px;
}

.clinique-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	width: 100%;
	margin: 0 auto;
}

/* Colonne gauche : horaires */
.clinique-left {
	width: 28%;
	padding-left: 20px;
	background-color: #ffffff;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Colonne droite */
.clinique-right {
	width: 50%;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Tableau des horaires */
.horaires-table {
	width: 100%;
	border-collapse: collapse;
}

.horaires-table td {
	vertical-align: top;
	padding: 6px 10px;
	font-size: 1.5rem;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Icônes dans les titres */
.clinique-left h2,
.clinique-right .bloc h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 2.5rem;
	color: #44c091;
	margin-bottom: 10px;
}

.icon {
	font-size: 2.5rem;
}

.clinique-right .bloc {
	background-color: #ffffff;
	border-radius: 10px;
	padding-left: 40px;
	padding-right: 40px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.clinique-right .bloc p {
	color: #444;
	font-size: 1.5rem;
	line-height: 1.5;
}

/* Responsive iframe map */
.map-container iframe {
	width: 100%;
	height: 300px;
	border: none;
	border-radius: 6px;
}

.contact-container {
	width: 80%;
	margin: 0 auto 80px;
	padding: 40px 20px;
}

.contact-container h1 {
	text-align: center;
	color: #44c091;
	margin-bottom: 40px;
}

.contact-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 30px;
}

.contact-form form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.form-row {
	display: flex;
	gap: 15px;
}

.form-row input {
	flex: 1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
	width: 100%;
}

.contact-form textarea {
	resize: vertical;
}

.contact-info {
	background-color: #f7f7f7;
	padding: 20px;
	border-radius: 8px;
}

.contact-info h1 {
	color: #44c091;
	margin-bottom: 20px;
	font-size: 3rem;
}

.contact-info h2 {
	margin: 10px 0;
	font-size: 1.8rem;
	color: #333;
}

.contact-info p {
	font-size: 1.4rem;
	color: #666;
	margin-top: 20px;
	line-height: 1.4;
}

.phone-float {
	position: fixed;
	top: 25%;
	right: 0;
	transform: translateY(-50%);
	background-color: #44c091;
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
	color: white;
	cursor: pointer;
	z-index: 999;
	display: flex;
	align-items: center;
	transition: right 0.3s ease;
	padding: 10px 15px;
}

.phone-icon {
	font-size: 2.5rem;
}

.phone-panel {
	display: none;
	margin-left: 10px;
	font-size: 2rem;
}

.phone-panel a {
	color: white;
	text-decoration: none;
	font-weight: bold;
}

.phone-float.open .phone-panel {
	display: inline;
}


@media screen and (max-width: 768px) {
	
	.banner {
		background-position: right center;
		background-size: contain;
		background-repeat: no-repeat;
		background-attachment: scroll;
	}
	
	.banner-top-left,
	.banner-bottom-left,
	.banner-bottom-right {
		width: 80%;
		height: auto;
		font-size: 0.9rem;
		padding: 10px;
	}

	.banner-bottom-right {
		display: none;
	}

	.banner-bottom-left {
		left: 10px;
		bottom: 10px;
	}
	
	service-header {
		width: 90%;
		text-align: left;
	}

	.service-selected {
		flex-direction: column !important;
	}

	.service-image,
	.service-text {
		width: 100%;
	}
	
	.equipe-card {
		width: 90%;
	}
	
	.clinique-container {
		flex-direction: column;
		align-items: center;
	}

	.clinique-left,
	.clinique-right {
		width: 90%;
	}
	
	.service-text {
		padding-left: 10px;
		padding-right: 10px;
	}

	.service-text h2 {
		font-size: 2.2rem;
	}

	.service-text p {
		font-size: 1.5rem;
	}
	
	.service-header p {
		font-size: 1.4rem;
	}
	
	.service-header {
		width: 90%;
	}

	.contact-grid {
		grid-template-columns: 1fr;
	}
	
	.phone-panel {
		font-size: 1.2rem;
	}
	.phone-icon {
		font-size: 1.3rem;
	}
}
