/*
 Theme Name:   Halte
 Theme URI:    http://example.com
 Description:  Thème enfant pour GeneratePress
 Author:       Ton Nom
 Author URI:   http://example.com
 Template:     generatepress
 Version:      1.0.0
*/
body{
  background:none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Bebas Neue", serif;
  }
  .separate-containers .inside-article{
    padding: 0;
  }
  .site-main{
    padding: 0 4rem;
  }

  .inside-header.grid-container {
    padding: 10px 30px;
    max-width: 100%;
}
@media (max-width: 1024px) {
  .inside-header.grid-container {
    padding: 10px 15px;
}
}
 
.inside-article{
    padding-top: 0 !important;
}
.posts-wrapper{
  padding: 0 7rem;;
  max-width: 1060px;
  margin: auto;
}

.entry-title{
  font-size:3.5rem;
}
.halte-single-article{
  max-width: 1400px;
}
.halte-single-article .featured-image{
  max-width: 100%;
}
.posts-wrapper figure{
margin-bottom:2rem;
}
.wp-block-image img{
  width: 100%;
}
@media (max-width: 764px) {
  .posts-wrapper{
    padding: 0 2rem;;
  }
}
@media (max-width: 500px) {
  .site-main{
    padding: 0 2rem;;
  }
  .posts-wrapper{
    padding: 0;
  }

}

.posts-wrapper .entry-content {
  margin-top: 1rem;
}

.posts-wrapper .wp-block-heading {
font-family: 'Aleo';
margin-bottom: 0.6rem;
line-height: 1;
font-size: 2rem;
}


.intro {
  line-height: 1.5;
  font-style:italic;
  font-size: 1.2rem;
  color: grey;
  font-family: 'Aleo';
}

/* Optionnel : ajustement supplémentaire pour mobiles */
@media (max-width: 768px) {
  .intro {
    
      padding-bottom: 16px;
    
  }
}

@media (max-width: 480px) {
  .intro {
      font-size: clamp(1rem, 4vw + 0.5rem, 1.5rem);
      padding-bottom: 12px;
      font-size: 0.9rem;

  }
}
.inside-article .featured-image{
  height: 35rem;
  position: relative;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .inside-article .featured-image{
    height: 25rem;
  }
}

@media (max-width: 768px) {
  .inside-article .featured-image{
    height: 17rem;
  }
}
.inside-article .featured-image img {
display: block;
    max-width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}

/* --- Titre de section --- */
.halte-section-title {
  font-size: 2.5rem;
  margin-bottom: 0;
  color: #222;
  margin-bottom: 1rem;
}

/* --- Grille 3 colonnes pour les articles --- */
.halte-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

/* Responsive : 2 colonnes sur tablette */
@media (max-width: 1024px) {
  .halte-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 768px) {
  .halte-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Blog Cards sur la homepage --- */
.halte-post-card {
  background: #fff;
  overflow: hidden;
  margin-bottom: 0; /* Le margin est géré par le gap de la grille */
  position: relative; /* Pour le lien qui s'étend sur toute la carte */
  cursor: pointer;
}

.halte-post-card:hover img{
  transform: scale(1.05);

}

/* Lien invisible qui couvre toute la carte */
.halte-card-link::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.halte-thumbnail img {
  transition: transform 0.7s;
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 12px;
}

.halte-entry-header {
  margin-bottom: 10px;
}

.halte-post-title {
  font-size: 1.8rem;
  margin: 0;
}

.halte-post-title a {
  color: #222;
  text-decoration: none;
}

.halte-post-title a:hover {
  color: #0073aa;
}

.halte-post-meta {
  font-size: 0.8rem;
  color: #777;
  margin: 0;
}

.halte-excerpt {
  font-size: 0.9rem;
  color: #555;
  margin-top: 10px;
}
.halte-excerpt p{
  margin-bottom:0.5rem;
}


.halte-read-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.7rem;
  margin: 0;
  color: #0073aa;
  pointer-events: none; /* Désactive le clic direct sur cet élément */
}

.halte-post-card:hover .halte-read-more {
  text-decoration: underline;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #222;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}
.main-navigation .main-nav ul li > a{
  font-family: "Bebas Neue", serif;
  font-size: 1.5rem;
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a{
  font-family: "Bebas Neue", serif;
}
.inside-header {
  padding: 10px 40px;
}

.hero-homepage {
  position: relative;
  width: 100%;
  height: 70vh; /* ajustable */
  overflow: hidden;
  margin-bottom: 40px; /* Espacement avec la section suivante */
}

.hero-homepage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.hero-homepage .hero-text {
  position: absolute;
  top: 15%;
  left: 30px;
  color: white;
  max-width: 400px;
}

.hero-homepage .hero-text .quote {
    font-size: 1.8rem;
    line-height: 1.2;
    font-family: "Aleo", serif;
    font-style: italic;
}

.hero-homepage .hero-text .author {
  margin-top: 10px;
  font-size: 1rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .hero-homepage {
    height: 40vh; /* hauteur réduite sur mobile */
    margin-bottom: 40px;
  }

    .hero-homepage .hero-text {
 top: 10%;
  left: 30px;
   right: 30px;
  }

  .hero-homepage .hero-text .quote {
    font-size: 1.4rem;
  }

  .hero-homepage .hero-text .author {
    font-size: 0.9rem;
  }
}

.about-hero-banner {
  width: 100%;
  max-height: 500px;
  height: 500px;
  overflow: hidden;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .about-hero-banner {
    height: 300px;
  }
}

.about-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --- Section Points d'Intérêt (POI) --- */
.poi-section {
  background: #f2f1ee;
  padding: 0 1.6rem;
margin-top: 40px;
}

.poi-title {
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 0.7rem;
margin: 0;
color: #457133;
font-family: var(--font-body2-family);
margin-bottom: 10px;
}

.poi-list {
list-style: none;
margin: 0;
padding: 0 !important;
}


.poi-item  a{
color:#222 !important;
text-decoration:none !important;
}
.poi-item  a:hover  > *{
color:black !important;
}
.poi-name::before {
content: "";
display: inline-block;
width: 20px;
height: 20px;
margin-right: 8px;
background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20class='icon%20icon-accordion%20icon-map-pin'%20viewBox='0%200%2020%2020'%3E%3Cpath%20fill-rule='evenodd'%20d='m9.91%2018.59%205.036-8.78c2.228-3.886-.525-8.777-4.942-8.777-4.385%200-7.147%204.822-4.992%208.713zM10.004%200C4.845%200%201.593%205.673%204.13%2010.255l5.212%209.41a.64.64%200%200%200%201.12.009l5.358-9.342C18.445%205.755%2015.202%200%2010.004%200'/%3E%3Cpath%20d='M13%206.796c0%201.76-1.399%203.187-3.124%203.187S6.752%208.556%206.752%206.796s1.399-3.187%203.124-3.187S13%205.036%2013%206.796M9.876%208.949c1.166%200%202.11-.964%202.11-2.153s-.944-2.153-2.11-2.153-2.11.964-2.11%202.153.944%202.153%202.11%202.153'/%3E%3C/svg%3E");
background-size: contain;
background-repeat: no-repeat;
vertical-align: middle;
}



.poi-name {

color: #333;
font-size: 1.1rem;
}

.poi-address {
display: inline-block;
margin-top: 0.2rem;
color: #7e755a;
text-decoration: none;
font-size: 1rem;
    padding-left: 28px;
line-height: 1.2;
margin:0;
}

.poi-link:hover {
 text-decoration: underline;
}

/* --- Date à la fin de l'article --- */
.halte-post-date-end {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  text-align: right;
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
}