html {
	--text: #FFF;
	scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /
}

body {
  margin: 0;
	font-family: Poppins, sans-serif;
  font-size: 16px;
  padding: 0;
  gap: 91px;
  overflow-x: hidden;
}

header {
	top: 0;
	left: 0;
	z-index: 1;
	display: flex;
	gap: 90px;
	align-items: center;
	justify-content: center;
}


.first-container {
  background-image: url(../images/carte.svg);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 1100px;
  width: 100%;
  height: 855px;
  display: flex;
  flex-direction: column;

}

h1{
	font-weight: bold;
	line-height: 113%;
  margin: 0;
}

span
{
	color: #FF5733;
}
nav {
	width:739px;
	background-color: #030027;
	height: 56px;
	text-align: center;
	display: flex;
	justify-content: space-around;
	border-radius: 5rem;
	backdrop-filter: blur(4px);
  align-items: center;
  gap: 120px;
}

nav ul {
	list-style: none;
	display: flex;
	justify-content: space-around;
	width: 80%;
	padding: 0;
	margin: 0;
  align-items: center;
 
}

nav ul li {
	font-weight: bold;
}

.logotexte {
  height: 140px;
  width: auto;
}

.button {
  background-color: #FF5733;
  color: white;
  padding: 16px 34px;
  border: none;
  border-radius: 5rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
 display: flex;
 gap: 11px ;
  height: 25px;
  width: 222px;
  margin: 0 auto; 
  justify-content: center;
  margin-right: 20px;
}

.button2 {
  background-color: #FFD0BC;
  color: #FF5733;
  padding: 6px 32px;
  border: none;
  border-radius: 5rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  width: 331px;
  height: 47px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
}

.button3 {
  background-color: #FF5733;
  color: white;
  padding: 16px 34px;
  border: none;
  border-radius: 5rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  gap: 11px ;
  height: 25px;
  width: 222px;
  margin: 0 auto; 
  justify-content: center;
  margin: 40px auto 0; 
}

a {
	text-decoration: none;
	color: var(--text);
}


.center {
	display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;

}

.center > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.un{
  gap:22px;
}
.deux
{
  gap: 47px;
}

.titre{
	text-align: center;
	font-size: 2rem;
}

.first-container {
   position: relative;
  z-index: 1;
  background-color: #FFF1EB;
}

.box
{
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  height: 200px;
  display: flex;
  flex-direction:row;
  width: 80%;
  align-items: center;
  justify-content: center;
  border-radius: 77px;
  margin: 0 auto;
  padding: 70px 74px;
   position: relative;
  top: -150px;
  background-color: #FFF;
  z-index: 2;
  gap: 50px;
}


.second img
{
  height: 50px;
}
.second
{
  display: flex;
  flex-direction: row;
 gap: 90px;
}

.right {
  text-align: right;
  justify-content: center;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 250px;
}

.right img {
  height: 700px;
}
.center-icons {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
}

.train {
  height: 240px;
}

.milieu {
  text-align: center;
}

footer {
  background-color: #030027;
  height: 80px;
  color: white;

    text-align: center;
  padding: 10px 0;
  position: relative; 
  bottom: 0;
  width: 100%;
  font-size: 14px;

}



/* _____________________________________________________graphiques*/

#blocGraphiques .carte-graphique {
  background: var(--blanc);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 20px;
  width: 300px;
  text-align: center;
  margin-right: 10px;
}

#blocGraphiques {
  display: flex;
 justify-content: center;
}
.titre-graphique {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}

.sous-titre {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.graphique-svg {
  width: 260px;
  height: 150px;
  margin: 0 auto;
  display: block;
}

 .suggestions {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  z-index: 1000;
  border-radius: 6px;
} 

  
/* ----------------------------carte leaflet ------------------------------------*/

#blocCarte {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 40px;
  flex-wrap: wrap;
}


#panneauInfos {
  flex: 1;
  min-width: 300px;
}


#carte {
  flex: 1;
  min-width: 400px;
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (max-width: 900px) {
  #blocCarte {
    flex-direction: column;
    height: auto;
  }

  #panneauInfos {
    width: 100%;
    max-height: 300px;
    margin-bottom: 10px;
  }

  #carte {
    width: 100%;
    height: 400px;
  }
}


.section-trajet {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}

.trajet-container {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 50px 60px;
  text-align: center;
  width: 70%;
  max-width: 900px;
}

.trajet-container h2 {
  color: #030027;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 10px;
}

.trajet-container p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 40px;
}

.trajet-form {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.input-group label {
  font-weight: 600;
  color: #ff4d37;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper img {
  position: absolute;
  left: 15px;
  width: 18px;
  opacity: 0.6;
}

.input-wrapper input {
  width: 280px;
  padding: 12px 15px 12px 40px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-wrapper input:focus {
  border-color: #ff4d37;
}

.btn-rechercher {
  background-color: #ff4d37;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 15px 50px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-rechercher:hover {
  background-color: #e04330;
}

.btn-rechercher img {
  width: 18px;
}


/* Responsive */
@media (max-width: 700px) {
  .trajet-container {
    width: 95%;
    padding: 40px 20px;
  }

  .trajet-form {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .input-wrapper input {
    width: 100%;
  }
}

#blocCarte {
  display: flex;
  width: 100%;
  height: 80vh;
  gap: 10px;
}

#panneauInfos {
  width: 300px;
  min-width: 250px;
  max-width: 400px;
  background: var(--blanc);
  overflow-y: auto;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  display: none;
}

#carte {
  flex: 1;
  height: 100%;
  border-radius: 10px;
}


.section-kepler {
  padding: 80px 8%;
  background-color: #fff;
}

.kepler-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.kepler-map {
  flex: 1;
  min-width: 400px;
  max-width: 600px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.kepler-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
}


.kepler-info {
  flex: 1;
  min-width: 350px;
}

.kepler-info h2 {
  color: #0a083b;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.kepler-info p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 30px;
}

.kepler-card {
  background: #fff5f2;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kepler-card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.card-text h3 {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.1rem;
}

.card-text p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

.btn-kepler {
  display: inline-block;
  margin-top: 10px;
  background-color: #ff4b3e;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-kepler:hover {
  background-color: #e53c2c;
}


@media (max-width: 900px) {
  .kepler-container {
    flex-direction: column;
  }

  .kepler-map iframe {
    height: 350px;
  }
}


.bloc {
  display: flex;
  align-items: center;
  gap: 20px;            
  background: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: #FFF7F4;
}

.bloc img {
  width: 100%;
  height: auto;
  margin: 0;
}

.bloc p, .bloc h2 {
  
  margin-left: 20px;

}

 .textedefin img {
    height: 140px;
}

.textedefin{
  z-index: 400;
}
.textedefin p{
  width: 600px;
}


.nomargin, .nomargin img, .nomargin svg {
  margin: 0;

}

.nomargin svg{
  height: 375px;
  width: auto;
}
.nomargin {
  gap: 3px;
}

footer {
  margin-top: 0;
}

svg {
  display: block;
  margin: 0;
  }

  #frequence {
    display: grid;
    grid-template-columns: repeat(1fr, 2);
    grid-template-rows: 100%;
    gap: 20px;
  }

  #keplermap {
    grid-row-start: 1;
    grid-row-end: 2;
  }

.container-culturel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  width: 100%;
}


.carte-recherche {
  background: #fff;
  padding: 2rem 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  text-align: center;
  width: 100%;
}

.carte-recherche h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f1b42;
  margin-bottom: 0.5rem;
}

.carte-recherche .sous-titre {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.8rem;
}


.champ-ville {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.label-ville {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #ff4d4d;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.icon-ville {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

.input-box {
  position: relative;
  width: 100%;
  max-width: 450px;
}

.input-box input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
}

.input-box input:focus {
  border-color: #ff4d4d;
}

.btn-recherche {
  background-color: #ff4d4d;
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  max-width: 450px;
  transition: background 0.3s ease;
}

.btn-recherche:hover {
  background-color: #e64444;
}


.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  display: none;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}


.liste-lieux {
  margin-top: 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 700px;
  padding: 1.5rem;
}

.lieu-item {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.lieu-item:last-child {
  border-bottom: none;
}

.lieu-item strong {
  color: #0f1b42;
}

.lieu-item em {
  color: #555;
  font-size: 0.9rem;
}

.lieu-item span {
  display: block;
  font-size: 0.85rem;
  color: #666;
}


@media (max-width: 600px) {
  .carte-recherche {
    padding: 1.5rem;
  }

  .btn-recherche {
    font-size: 0.9rem;
  }

  .input-box input {
    font-size: 0.9rem;
  }
}


@media (max-width: 1024px) {
  header {
    flex-wrap: wrap;
    gap: 30px;
  }

  nav {
    width: 90%;
    gap: 40px;
  }

  .first-container {
    background-size: 700px;
    height: auto;
    padding-bottom: 100px;
  }

  .box {
    flex-direction: column;
    align-items: center;
    top: -100px;
    padding: 40px;
    width: 90%;
  }

  .right {
    flex-direction: column-reverse;
    gap: 40px;
    text-align: center;
  }

  .right img {
    height: 500px;
  }

  .bloc {
    flex-direction: column;
    text-align: center;
  }

  .bloc img {
    width: 90%;
    max-width: 500px;
  }

  .kepler-container {
    flex-direction: column;
    gap: 30px;
  }

  .kepler-map iframe {
    height: 400px;
  }
}

@media (max-width: 768px) {

  header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .logotexte {
    height: 100px;
  }

  nav {
    flex-direction: column;
    width: 90%;
    height: auto;
    gap: 10px;
    border-radius: 20px;
    padding: 10px 0;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .button {
    width: 200px;
    padding: 12px 24px;
    font-size: 14px;
  }

  .first-container {
    height: auto;
    background-size: 400px;
    background-position: center top;
    padding-bottom: 60px;
  }

  .center {
    padding: 20px;
    gap: 40px;
  }

  .titre h1 {
    font-size: 1.8rem;
  }

  .button2, .button3 {
    width: 80%;
  }

  .box {
    flex-direction: column;
    width: 90%;
    padding: 30px;
    top: -80px;
    text-align: center;
  }

  .second {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }


  .right {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }

  .right img {
    width: 80%;
    height: auto;
  }

  .train {
    width: 100%;
    height: auto;
  }

  .milieu {
    padding: 0 20px;
  }

  #blocGraphiques {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .kepler-container {
    flex-direction: column;
    align-items: center;
  }

  .kepler-info {
    text-align: center;
  }

  .kepler-card {
    width: 100%;
  }

  .bloc {
    flex-direction: column;
    gap: 30px;
    padding: 30px;
  }

  .bloc img {
    width: 100%;
  }

  .bloc p {
    width: 100%;
  }

  footer {
    font-size: 12px;
    height: auto;
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .titre h1 {
    font-size: 1.5rem;
  }

  .box h2 {
    font-size: 1.2rem;
  }

  .kepler-info h2 {
    font-size: 1.4rem;
  }

  .kepler-card p {
    font-size: 0.9rem;
  }

  .button, .button2, .button3 {
    font-size: 14px;
    width: 90%;
  }

  nav {
    border-radius: 15px;
  }
}