*{
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body{
  display: flex;
  flex-direction: column;
  font-family: "Funnel Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  background-color: #FFFFFF;
  padding: 0;
  margin: 0;
  color: #141414;
}

nav{
  position: sticky;
  top: 0;
  background-color: #FFFFFF;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: transform 0.3s ease-in-out;
}

nav.hide{
  transform: translateY(-100%);
}

.nav-content{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 50px;
}

nav .logo img{
  width: auto;
  height: 70px;
  cursor: pointer;
}

nav .Onglets{
  display: flex;
  font-size: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav .Onglets a{
  margin-right: 20px;
  text-decoration: none;
  color: #141414;
  cursor: pointer;
}

nav .symboles a{
  text-decoration: none;
}

nav .symboles svg{
  margin-right: 20px;
  cursor: pointer;
  width: auto;
  height: 60px;
}

@media (max-width: 900px){
  .symboles .meteo{
    display: none;
  }
}

@media (max-width: 750px){
  .nav-content{
      display: grid;
      grid-template-columns: 1fr 1fr 1fr; 
      grid-template-areas: "meteo logo search";
      align-items: center;
      width: 100%;
      padding: 15px 15px;
  }
  .Onglets a{
    display: none;
  }
  .logo{
    grid-area: logo;
    justify-self: center; 
    align-self: center;
  }    
  .symboles .meteo{
    display: block;
    grid-area: meteo;
    justify-self: start;
    align-self: center;
  }
  .symboles .search{
    display: block; 
    grid-area: search;
    justify-self: end;
    align-self: center;
  }
  .symboles {
    display: contents;
  }
}

@media (max-width: 360px){
  .symboles .meteo{
    display: none;
  }
}

@media (max-width: 280px){
  .logo{
    display: none;
  }
  .nav-content{
    grid-template-columns: 1fr;
    grid-template-areas: "search";
  }
  .symboles .search{
    grid-area: search;
    justify-self: center;
    align-self: center;
  }
}

.Menu{
  flex-grow: 1;
}

.Menu h1{
  width: 100%;
  max-width: 1280px;
  margin: 30px auto 20px auto;
  padding: 0 20px;
  font-size: 2.2em;
  font-weight: 700;
  color: #141414;
}

.search-panel{
  position: fixed;
  top: 0;
  right: 0; 
  width: 100%;
  max-width: 400px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  overflow-y: auto;
}

.search-panel.is-open{
  transform: translateX(0);
}

.search-content{
  padding: 30px;
}

.close-btn{
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

.search-form input[type="text"]{
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ccc;
}

.search-input-group{
  position: relative; 
  flex-grow: 1;
}

.search-input-group input[type="text"]{
  width: 100%;
  padding: 10px 10px 10px 40px;
  box-sizing: border-box;
  border-radius: 100px;
}

.search-input-group svg{
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  pointer-events: none;
  height: 20px;
  width: 20px;
}

.search-form{
  display: flex;
  margin-bottom: 20px;
}

.quick-links{
  margin-top: 30px;
  flex-direction: column;
  display: flex;
}

.quick-links h3{
  width: 100%;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.1em;
  color: #1f1f1f;
}

.quick-btn{
  width: 100%; 
  text-align: left;
  padding: 10px 15px;
  border: none;
  text-decoration: none;
  font-size: 1em;
  font-weight: 500;
  background-color: transparent;
  color: #1f1f1f;
  transition: background-color 0.1s;
}

.quick-btn:hover{
  background-color: #e0e0e0;
  border-color: #aaa;
}

.search-content{
  padding: 30px;
}

.search-results-list{
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.search-results-list h3{
  margin-bottom: 15px;
  font-size: 1.1em;
  font-weight: 600;
}

.result-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  color: #1f1f1f;
  transition: background-color 0.1s;
  max-width: 100%; 
  box-sizing: border-box;
}

.result-text{
  flex-grow: 1; 
  min-width: 0; 
}

.result-text h4{
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0;
  font-size: 0.9em;
  font-weight: 600;
}

.result-item img{
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.search-results-page-list{
  display: block;
  padding: 0;
  margin: 30px auto;
  max-width: 1280px;
}

.search-results-page-list .article-preview{
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  overflow: hidden;
}

.search-results-page-list .preview-image{
  width: 120px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 15px;
  border-radius: 3px;
}

.search-results-page-list .article-preview h2{
  margin: 0;
  font-size: 1.2em;
  flex-grow: 1;
}

.search-results-page-list .article-preview a{
  display: flex;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.1s;
}

.search-results-page-list .article-preview:hover{
  background-color: #f9f9f9;
}

footer{
  flex-shrink: 0;
	background-color: #1a1a1a;
	color: #FFFFFF;
	font-family: sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  padding: 25px 100px;
}

footer .footer-text{
	max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

footer .colonnes{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

footer .colonnes p{
  cursor: pointer;
}

.copyright {
  font-size: 0.9em;
  font-weight: 600;
  color: #fff;
}