* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	font-family: "Montserrat", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

#main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
	
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #ccc;
}

#logo img {
    height: 150px;
}

#login img {
    height: 120px;
}

header {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-image: url("background.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    z-index: 1;
}

header #Titre {
    font-size: 47px;
    margin-top: 575px;
    white-space: pre;
    text-transform: uppercase;
}

header #Sous-Titre {
    font-size: 17px;
    margin-top: 0px;
    white-space: pre;
}








.section-apropos {
  display: flex;
  align-items: flex-start; 
  gap: 30px; 
  padding: 20px;
  margin-top:75px;
  margin-bottom:50px;
}

.texte-apropos {
  flex: 1;
  max-width: 50%; 
  margin-left: 30px;
  margin-right:20px;
}

.texte-apropos h2 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 20px;
}

.texte-apropos p {
	margin-top:50px;
    font-size: 16px;
    line-height: 1.9;
}

.images-apropos {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto; 
  grid-template-columns: 1fr 1fr; 
  gap: 20px;
  align-items: center; 
}

.large-image{
  grid-row: span 2; 
  display: flex;
  align-items: center; 
}

.image2 img {
  width: 100%; 
  height: auto; 
  border-radius: 20px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.info-box {
  grid-column: 2; 
  display: flex;
  justify-content: center;
  align-items: center; 
  background-color: #000;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  padding: 15px;
  border-radius: 20px;
  text-align: center;
  height:270px;
}


.info-box span {
    font-size: 45px;
    font-weight: bold;
    margin-bottom: 5px;
}








section.abo {
    background-image: url("route.jpg");
	background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px; 
    padding: 50px;
    margin-top: 0;
}


.AbonnementAccueil {
    width: 300px;
    height: 500px;
    position: relative;
    z-index: 1;
    background-color:white;
    border-radius: 25px;
    border: 1px solid #fff;
	display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    margin: 35px auto;
    padding: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.9);
}

.niv{
	text-align:center;
    margin-top: 10px;
    font-size: 25px; 
    font-weight: bold;
}

.description-abo{
	margin: 30px 0; 
    text-align: left;
}


.desc{
	font-size: 17px;
}

button {
    background: black;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 40px;
	width:250px;
	display: flex; 
    justify-content: center; 
}

.button3 {
    background: black;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 0px;
	width:250px;
}

button:hover {
    background: transparent;
    color: black;
    outline: 1px solid black;
}




.Voitures {
    width: 100%;
    margin: 20px auto;
    position: relative;
    padding: 20px 20px; 
    box-sizing: border-box;
	height: 600px;
}

.carroussel {
    position: relative;
    width: 100%;
    height: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    margin-top: 50px;
    padding: 0 20px;
    transition: transform 0.5s ease; 
}


.Voitures h1 {
    font-size: 50px; 
    margin-bottom: 70px; 
    text-align: left;
    padding-left: 60px;
}


.liste-vehicules {
    flex-shrink: 0;
    width: 300px;
    height: 250px; 
    margin-right: 15px;
    background-color: #eaeaea;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    padding-top: 15px;
}

.liste-vehicules:hover {
    background-color: #f7f0ee;
}

.liste-vehicules .nom-voiture {
    font-size: 21px; 
    text-align: left;
    margin-left:10px; 
}

.liste-vehicules .niv-abo {
    font-size: 16px; 
    text-align: left; 
    margin-top: 5px; 
	 margin-left:15px;
}

.liste-vehicules img {
    width: 100%; 
    height: auto; 
    max-width: 500px; 
    max-height: 200px; 
    object-fit: contain; 
    margin: 0 auto;
    display: block;
}

.fleche {
    position: absolute;
    top: 0; 
    right: 60px;
    display: flex;
    gap: 10px; 
    align-items: center;
}


.nav-btn {
    background-color: #000;
    color: white;
    font-size: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.nav-btn:hover {
    background-color: #ccc;
    color: #000;
}


.nav-btn:focus {
    outline: none;
}

.voirplus {
    margin-top: 45px; 
    display: flex; 
    justify-content: center;
}

.voirplus a {
    background-color: black;
    color: white; 
    padding: 15px 30px; 
    text-align: center;
    text-decoration: none; 
    border-radius: 20px; 
    font-size: 18px; 
    
}

.voirplus a:hover {
    background-color: #333;
}






footer {
    background-color: #111; 
    color: #fff; 
    padding: 40px 20px;
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; 
    max-width: 1200px;
    margin: 0 auto; 
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: bold;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 20px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #888;
}






@media (max-width: 800px) {
    #main {
        flex-direction: column; 
        justify-content: center;
    }

    nav {
        flex-direction: column; 
        align-items: center;
        gap: 20px;
    }

    nav a {
        font-size: 16px;
    }

    header #Titre {
        font-size: 36px; 
        margin-top: 500px; 
    }

    header #Sous-Titre {
        font-size: 14px;
    }

    .section-apropos {
        flex-direction: column; 
        gap: 20px;
        margin-top: 40px;
    }

    .texte-apropos {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .images-apropos {
        display: block;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .large-image {
        grid-row: auto;
    }

    .info-box {
        grid-column: auto; 
        height: 200px; 
    }

    section.abo {
        grid-template-columns: 1fr; 
    }

    .AbonnementAccueil {
        width: 90%; 
        margin: 20px auto;
    }

    .Voitures {
        padding: 20px 10px;
    }

    .carroussel {
        width: 100%;
        flex-wrap: wrap;
    }

    .liste-vehicules {
        width: 100%; 
        margin-right: 0;
    }

    .voirplus a {
        font-size: 16px;
        padding: 12px 24px;
    }

    footer .footer-container {
        grid-template-columns: 1fr 1fr; 
    }
}




@media (max-width: 500px) {
    #main {
        padding: 10px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 14px;
    }

    header #Titre {
        font-size: 28px; 
        margin-top: 450px;
    }

    header #Sous-Titre {
        font-size: 12px;
    }

    .section-apropos {
        margin-top: 30px;
    }

    .texte-apropos {
        margin-left: 10px;
        margin-right: 10px;
    }

    .images-apropos {
        grid-template-columns: 1fr;
    }

    .info-box {
        font-size: 25px; 
        height: 180px; 
    }

    section.abo {
        grid-template-columns: 1fr;
    }

    .AbonnementAccueil {
        width: 90%;
        margin: 20px auto;
    }

    .carroussel {
        display: block;
    }

    .liste-vehicules {
        width: 100%;
        margin-right: 0;
    }

    .voirplus a {
        font-size: 14px;
        padding: 10px 20px;
    }

    footer .footer-container {
        grid-template-columns: 1fr; 
    }
}