/* --------------------------------------------------- */
/*              GAMME DE COULEURS                    */
/* --------------------------------------------------- */
:root {
    --couleur__principale:#e6eaed; 
    --couleur__secondaire:#c45d4e;
    --couleur__1:#010d15; 
    --couleur__2:#d67262;
    --couleur__3:#eff1f5;
    --couleur__4:#293f50;
    }   
/* --------------------------------------------------- */
/*                HEADER-HOMEPAGE                      */
/* --------------------------------------------------- */           
header{
    display: flex;
    justify-content: center; 
    margin: 0 100px 0;
    }

/* --------------------------------------------------- */
/*                BODY-HOMEPAGE                        */
/* --------------------------------------------------- */

    
body {
    font-family: 'Barlow Condensed', sans-serif;
    margin: 0;
    padding: 0; 
    background-color: var(--couleur__principale);
}


h1 {
    color: var(--couleur__1);
    font-size: 4rem;
    text-align: center;
}


h2 {
    color: var(--couleur__2);
    font-size: 8ch;
    text-align: center;
}

p {
   text-align: center;
   font-size: x-large;

}

.illustration {
    display: flex;
    justify-content: center; 
    margin: 0 100px 0;
}

/*------------------------------------------------------*/
/*                          NAV                         */
/*------------------------------------------------------*/
nav {
    
    display: flex;
    justify-content: center; 
    margin: 0 100px 0;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style-type: none;
    padding: 0; 
  }
  
  nav ul li {
    margin: 0; 
  }

  nav ul li a {
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 400;
    color: var(--couleur__1);
    padding: 5px;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
  }
  
  ul li {
    margin: 0 10px; /* Ajoute de l'espace entre les éléments de la liste, ajustez selon vos besoins */
  }


  nav ul li a:hover {
    color: var(--couleur__secondaire);
    border-bottom: 2px solid var(--couleur__4);
    padding: 2px;
    transition: 0.20s ease;
  }


/*------------------------------------------------------*/
/*                    DESIGN DU FORMULAIRE              */
/*------------------------------------------------------*/
form {
  border-radius: 5%;
  text-align: center;
  border: 3px solid #010d15;
  margin: 2%;
  padding: 1%;
  background-image: url(./img/CarForm2.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  padding: 20px;
  

  }

label {
  color: #000000;
}

/*------------------------------------*/
/*     TABLEAU VOYAGES RÉALISÉS        */
/*------------------------------------*/
.container {
  display: block;   
  align-items: center;
  margin: auto;
}

.rectangle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;  
  background-color: var(--couleur__3);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px var(--couleur__principale) solid
}

.rectangle:hover {
    background: var(--couleur__3);
    box-shadow:var(--couleur__3)  0px 8px 24px;
}

.top-section {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}

.date {
  font-weight: bold;
  color: var(--couleur__4);
}

.distance {
  font-weight: bold; 
  color: var(--couleur__secondaire);
}

.bottom-section {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.meteo, .route, .circulation, .manoeuvre {
    color: var(--couleur__secondaire);
  margin-bottom: 5px;
}

.total {
  display: block;   
  margin: auto; 
  padding: 10px;  
  text-align: center;   
  font-size: 20px; 
  color: var(--couleur__principale);
}




/*-------------------------------------------*/
/*                  FOOTER                   */
/*-------------------------------------------*/
footer p {
    font-size: 1.2rem;
    text-align: center;
    color: var(--couleur__secondaire);
}

/* Style du lien dans le footer */
footer p a.mad-link {
    color: var(--couleur__secondaire);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hover */
footer p a.mad-link:hover {
    color: #293f50;
}
/*-------------------------------------------*/
/*                  FOOTER                   */
/*-------------------------------------------*/


/*---------------------------------------------*/
/*                  FOOTER                     */
/*---------------------------------------------*/

/* -------------- RESPONSIVE MOBILE-------------*/

@media (min-width: 320px) {
  img {
    width: 50%;
    min-width: 320px;
    height: auto;
    align-content: center;
  } 


  ul {
		flex-direction: column;
	}

  ul li {
    width: 100%;
    text-align: center;
  }

 }


