html{
}

.banniere {
    background-image: url("../img/banniere.jpg");
    background-position: center;
    background-size:cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    display: flex;
    margin-bottom: 20px;
}

.box-banniere {
    width: 300px;
    height: 80px;
    margin: auto;
    background-color: beige;
    font-family: Arial, Helvetica, sans-serif;
    opacity: 75%;
    border-radius: 30px;
}

.box-banniere h1 {
        font-family: Arial, Helvetica, sans-serif;
        text-align: center;

}

nav {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: lightgray;
  position: sticky;
  top:0;
}

.burger-menu{
    display: flex;
    color: #A90331;
    font-weight: bold;
    font-family: arial;
}


.nav-links { display: flex; gap: 1rem; list-style: none; }
.nav-links a { text-decoration: none; color: black;  text-align: center; font-weight: bold; font-family: arial; }
.nav-links a:hover{
    width: 100%;
    background-color: #A90331;
    color: white;
}

  .nav-links a {
    width: 100%;
    display: block;
  }
  .nav-links a.active{
    width: 100%;
    background-color: #A90331;
    color: white;

}
/* Bouton Menu Mobile */
.menu-toggle { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    background: none; 
    border: none; }

main{
    background-color: lightgrey;
    display: flex;
    flex-direction: column;
}
.titre-box{
    background-color: #A90331;
    border-radius: 10px 10px 0 0;
}

div.titre-box-tablette{
    background-color: #A90331;
    border-radius: 10px 10px 0 0;
    display: none;
}
.titre{
    font-style: italic;
    font-family: arial;
    text-align: center;
    padding: 10px;
    color: white;
    margin: 0;
    font-size: 24px;
}
.blason{
    width: 100px;
    margin: 0 auto;
}
.photohistoire{
    width: 200px;
    margin: 0 auto;
}

.photoculture{
    width: 200px;
    margin: 0 auto;
}
.intro{
    font-size: 16px;
    font-weight: bold;
    text-align: justify;
    padding: 0 20px;
}
.article-accueil{
    font-size: 16px;
    font-weight: bold;
    text-align: justify;
    padding: 0 20px;
}


.pgeo{
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
    text-align: justify;
    padding: 0 20px;
}

.liens-accueil{
    list-style: none;
    text-align: center;
    padding: 0 20px;

}

.liens-accueil a{
    list-style: none;
    text-decoration: none;
    color: #A90331;
    text-align: center;
}

.liens-accueil a:hover{
    color: black;
}

.sources{
    text-align: center;
    font-size: 12px;
}

.h2histoire{
    font-size: 24px;
    padding-left: 20px;
}

.h2culture{
    font-size: 24px;
    padding-left: 20px;
}

.phistoire{
    margin: 10px 0;
    font-size: 20px;
    text-align: justify;
    padding: 0 20px;
}

.pculture{
    margin: 10px 0;
    font-size: 20px;
    text-align: justify;
    padding: 0 20px;
}

.imggalerie{
    width: 100%;
    border: solid 2px black;
    padding: 1px;
}

.h2contacts{
    font-size: 20px;
    text-align: center;
    margin: 0 20px;
}

figcaption{
    text-align: center;
}
form{
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}
.labelinp{
    display: flex;
    flex-direction: column;
}

label{
    font-size: 20px;
    height: 30px;
    width: 200px;
    line-height: 40px;
}

input{
    height: 30px;
}

textarea{
    height: 80px;
}
button.submit{
    height: 50px;
    width: 300px;
    font-size: 20px;
    border-radius: 20px;
    margin: 20px auto;
}

.box-liens{
    display: flex;
    margin: 0 auto;
}

.p404{
  margin: 20px;
  text-align: center;
  font-size: 32px;
}

.p404 a:hover{
  display: inline-block;
  background-color: #A90331;
}
/* Responsive */
@media (max-width: 640px) {
  .menu-toggle { 
    display: block; 
}
  .nav-links {
    display: none; flex-direction: column; width: 100%; 
  }
  .nav-links.active { display: flex; align-items: center; padding: 0; }
}

@media screen and (640px < width < 1024px) {
  .p-menu{
    display: none;
  }
  div.titre-box-tablette{
    display: block;
  }
  .titre-box{
    display: none;
  }
  nav{
    max-width: 100%;
    margin: 0 0;
    border: solid 2px black;
    border-radius: 10px;
    display: flex;
    margin-bottom: 5px;
  }
  ul.nav-links {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    padding: 0;
  }
  .blason,.photoculture,.photohistoire{
    margin-top: 20px;
    width: 300px;
  }
  .galerie{
    display: flex;
    flex-direction: row;
    flex-grow: 0;
    width: 100%;
    flex-wrap: wrap;
    margin: 0 auto;
  }
  figure{
    width: calc((100% - 40px) / 2);
    margin: 10px;
  }
  figure img{
    height: 238.88px;
  }
  .labelinp{
    flex-direction: row;
    margin-bottom: 10px;
  }
  input , textarea{
    width: 70%;
  }
  label{
    width: 180px;
  }
  .h2contacts{
    margin-bottom: 20px;
  }
  .nav-links a.active{
    display: block;
    width: 100%;
    background-color: #A90331;
    color: white;
    padding: 5px 5px;
}
.liens{
  font-size: 20px;
}
.h2contacts{
  margin-top: 20px;
  font-size: 24px;
}
}

@media screen and (width > 1024px) {
      .blason,.photoculture,.photohistoire{
    margin-top: 20px;
    width: 400px;
  }
    
    div.titre-box-tablette{
    display: block;
  }
  .titre-box{
    display: none;
  }
  body{
    display: flex;
    flex-wrap: wrap;
  }
  header{
    width: 100%;
  }
  .titre-box{
    width: 80%;
  }
  nav{
    width: 19%;
    height: fit-content;
    justify-content: flex-start;
    border: solid 2px black;
    border-radius: 10px;
    position:sticky;
    top: 0;
    display: block;
  }
  .p-menu{
    display: none;
  }
  main{
    width: 80%;
  }
  .nav-links {
    flex-direction: column;
  }
.nav-links{
    padding: 0;
    margin: 0;
    display: block;
  }
  .nav-links a {
    width: 100%;
    display: block;
  }
  .nav-links a.active{
    width: 100%;
    background-color: #A90331;
    color: white;
    
}
 .galerie{
    display: flex;
    flex-direction: row;
    flex-grow: 0;
    width: 100%;
    flex-wrap: wrap;
    margin: 0 auto;
  }
  figure{
    width: calc((100% - 40px) / 2);
    margin: 10px;
  }
  figure img{
    height: 238.88px;
  }
  .labelinp{
    flex-direction: row;
    margin-bottom: 10px;
  }
  input , textarea{
    width: 70%;
  }
  label{
    width: 180px;
  }
  .h2contacts{
    margin-bottom: 20px;
  }

  .liens{
  font-size: 28px;
}
.h2contacts{
  margin-top: 20px;
  font-size: 28px;
}
}

.tfl-widget {
    margin-top: 20px;
    padding: 10px;
    background: lightgray;
    border: 1px solid #999;
    text-align: center;
    font-size: 12px;
}
 
.tfl-widget-title {
    background: #A90331;
    color: #fff;
    font-weight: bold;
    padding: 6px;
    margin: -10px -10px 10px -10px;
}
 
.tfl-widget-line {
    font-weight: bold;
    margin: 8px 0 4px;
}
 
.tfl-widget-status {
  background-color: #A90331;
    color: white;
    font-weight: bold;
    margin: 4px 0;
}
 
.tfl-widget-reason {
    font-size: 11px;
    margin-top: 6px;
}
.tfl-widget-form {
    margin-top: 12px;
    text-align: center;
    align-items: center;
}
 
.tfl-widget-form select {
    width: 90%;
    padding: 4px;
    font-size: 12px;
    appearance: none;
    text-align: center;
    border: none;
    background-color: lightgray;
}
@media screen and (max-width: 1024px) {
    .tfl-widget {
        display: none;
    }
}