/*  GLOBAL  */
:root{
--primaryColor: #f8b800;
--darkColor: #444;
--lightGray: rgba(128, 128, 128, 0.5);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Arial, sans-serif;
color: #333;
background: #fafafa;
}
img {
max-width: 100%;
height: auto;
display: block;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 16px 40px;
}

/* HEADER */
.titre{
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 15px;
height: auto;
margin-bottom: 30px;
padding: 20px 0;
}
.titre img{
width: 280px;
max-width: 100%;
}
.titre h3{
font-size: 1rem;
margin: 0;
}
.titre h3 i{
color: var(--primaryColor);
}

/* SECTION CAROUSEL */
.carrousel{
position: relative;
overflow: hidden;
border-radius: 16px;
}
.carrousel .images{
display: flex;
flex-wrap: nowrap;
transition: transform 0.7s ease-in-out;
}
.slider-item{
width: 100%;
flex-shrink: 0;
object-fit: cover;
}
.fleches{
position: absolute;
inset: 50% 0 auto;
display: flex;
justify-content: space-between;
padding: 0 16px;
transform: translateY(-50%);
color: var(--primaryColor);
pointer-events: none;
}
.fleches span{
pointer-events: auto;
cursor: pointer;
padding: 10px;
background: rgba(255, 255, 255, 0.8);
border-radius: 50%;
}

/* NAVIGATION */
#toggle-btn{
display: none;
position: absolute;
top: 18px;
right: 16px;
cursor: pointer;
z-index: 10;
}
nav{
position: relative;
margin: 24px 0 0;
}
nav ul{
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
list-style-type: none;
margin: 0;
padding: 0;
}
nav ul li{
	padding: 0;
	background-color: rgba(112, 112, 128, 0.85);
	border-radius: 8px;
	box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
	cursor: pointer;
	min-width: 110px;
}
nav ul li a{
	display: block;
	padding: 12px 18px;
	font-size: 0.95rem;
	color: white;
	text-align: center;
	text-decoration: none;
}
nav ul li:hover{
	background-color: rgb(96, 96, 96);
}
nav ul li:first-child{
	background-color: var(--primaryColor);
}
nav ul li:first-child a{
	color: white;
}
.menu-category{
	scroll-margin-top: 110px;
	padding-top: 20px;
	margin-top: 20px;
	border-top: 1px solid rgba(0,0,0,0.08);
}
.menu-category h5{
	margin-bottom: 12px;

/* ARTICLES */
.articles{
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
font-size: small;
margin: 30px 0;
}
.articles h4,
.articles h5{
font-size: 1rem;
margin: 0 0 12px;
}
.un{
padding: 24px;
background: #fff;
border-radius: 20px;
box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.un p{
margin-bottom: 14px;
}
.deux{
padding: 24px;
background-color: var(--lightGray);
border-radius: 20px;
}
.bouton{
background-color: var(--primaryColor);
color: white;
padding: 14px 18px;
font-size: 1rem;
border: none;
border-radius: 8px;
cursor: pointer;
}

/* AVIS */
.temoignages{
padding: 30px 0;
}
.temoignages h2{
font-size: 1.6rem;
font-weight: bold;
margin: 0 0 30px;
text-align: center;
}
.temoignage_card{
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 20px;
padding: 0 10px;
}
.card{
background: #fff;
box-shadow: 0 6px 18px rgba(0,0,0,0.08);
padding: 20px;
border-radius: 16px;
}
.name{
font-size: 1rem;
font-weight: bold;
margin-bottom: 10px;
}
.card p{
font-size: 0.95rem;
margin: 0;
}
.temoignages button{
background-color: var(--primaryColor);
color: white;
font-size: 1rem;
width: min(100%, 320px);
height: 46px;
display: block;
margin: 30px auto 0;
border: none;
border-radius: 8px;
cursor: pointer;
}

/* FOOTER */
footer{
background-color: #444;
color: #ccc;
font-size: 0.95rem;
text-align: center;
padding: 20px 16px;
border-radius: 16px;
}

/* RESPONSIVE */
@media screen and (max-width: 1024px) {
.titre {
justify-content: center;
text-align: center;
}
.titre img{
width: 230px;
}
nav ul{
justify-content: center;
}
.temoignage_card{
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media screen and (max-width: 900px){
.titre {
flex-direction: column;
align-items: center;
gap: 12px;
}
.carrousel .images{
flex-direction: column;
}
.slider-item{
height: 280px;
}
#toggle-btn{
display: block;
}
nav ul{
position: static;
opacity: 1;
flex-direction: column;
align-items: stretch;
width: 100%;
margin-top: 12px;
}
nav ul li{
min-width: 0;
margin: 0;
}
.articles{
grid-template-columns: 1fr;
}
.deux{
height: auto;
}
}

@media screen and (max-width: 680px){
.titre img{
width: 180px;
}
.titre h3{
font-size: 0.95rem;
}
.fleches{
top: unset;
bottom: 16px;
}
.slider-item{
height: 220px;
}
.temoignage_card{
grid-template-columns: 1fr;
}
nav ul li{
padding: 10px 14px;
}
}

@media screen and (max-width: 520px) {
.container {
padding: 0 12px 30px;
}
.carrousel .images{
flex-direction: column;
}
.fleches span{
padding: 8px;
}
}
