/*
Theme Name: GreatNews Child
Template: greatnews
Version: 1.0
*/

/* Import facultatif du style parent pour compatibilité avec anciens thèmes */
@import url("../greatnews/style.css");

/* Polices personnalisées */
@font-face {
  font-family: 'Cooper';
  src: url('assets/fonts/cooper.woff2') format('woff2'),
       url('assets/fonts/cooper.woff') format('woff'),
       url('assets/fonts/cooper-regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'balloon';
  src: url('assets/fonts/ballnon.woff2') format('woff2'),
       url('assets/fonts/balloon.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'helvetica';
  src: url('assets/fonts/helvetica.woff2') format('woff2'),
       url('assets/fonts/helvetica.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Styles généraux */
body {
  font-family: 'helvetica', sans-serif;
  text-transform: none;
}

h2,
.wp-block-heading {
  font-family: 'balloon', serif;
  font-size: 1.2em;
}
.red-text {
Color: #FF453B;
}

.site-title {
  font-family: 'Cooper', serif;
  text-transform: none;
Margin-bottom: -0.5em;
}
.site-title a {
  display: flex;
  justify-content: center;   /* Centrer horizontalement */
  align-items: flex-end;     /* Aligner verticalement en bas */
  height: 100%;              /* Nécessaire pour que l'alignement vertical fonctionne */
  text-align: center;
}

h1.entry-title {
 display: none;
}

.site-description {
  font-family: 'Cooper', serif;

  margin: 0;
  text-transform: none;
}

/* Structure flex du header */
.site-branding-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;

}

.site-description-block,
.branding-right {
  flex: 1 1 300px;
}

.site-description-block {
  display: flex;
  align-items: center;
max-width: 220px;

}

.branding-right {
  display: flex;
  flex-direction: column;
  align-items: center;         /* Centrage horizontal */
  justify-content: flex-end;   /* Alignement en bas verticalement */
  height: 100%;                /* Important pour que le flex ait une hauteur de référence */
  text-align: center;

}

.site-logo {
  margin-top: -0.5em;
}

.site-logo img {
  height: auto;
  display: block;
}

.custom-logo-link {
  display: block;
  width: 100%;
}

/* Responsive desktop */
@media (min-width: 1024px) {
  .site-title {
    text-align: center;
    margin-bottom: -0.5em;
    
  }

  .site-branding {
    width: 80%;
    margin: 0 auto;
  }
}

/* Responsive mobile */
@media screen and (max-width: 768px) {

  .site-description-block {
    display: none;
  }  
    .site-title {
    margin-bottom: 0em;
  }
}




/* ################################################# */
/* NAVBARRE  */
/* ################################################# */

.menu .sub-menu a {
  text-transform: none !important;
}

/* ################################################# */
/* GRID ARTICLES  */
/* ################################################# */

.post-meta-tags.rt-el-post-meta {
  display: none !important;
}

.rt-img-holder {
  position: relative;
}

.rt-img-holder .date {
  position: absolute;
  Bottom: 10px;
  left: 10px;
  background-color: #c40000;
  color: #fff;
  padding: 5px 5px;
  font-size: 0.6em;
  border-radius: 4px;
  z-index: 10;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
line-height: 5px;
}

.rt-img-holder .date i {
  margin-right: 0px;
}

.rt-img-holder .date a {
  color: #fff;
  text-decoration: none;
}

.rt-img-holder .date a:hover {
  text-decoration: underline;
}


/* ################################################# */
/* BLOCK RSS AGENDA  */
/* ################################################# */

.bloc-evenements {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin: 0em 0;
}

.evenement-bouton {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: #f0f0f0;
  /* border-left: 5px solid #FF453B; */
  padding: 0.4em 0.4em;
  border-radius: 8px;
  transition: background 0.3s;
  color: #000;
}

.evenement-bouton:hover {
  background: #ffe9e6;
}

.evenement-calendrier {
  background-color: #FE453A;
  color: white;
  padding: 0.5em;
  text-align: center;
  width: 60px;
  border-radius: 6px;
  margin-right: 1em;
  flex-shrink: 0;
}
.evenement-calendrier .jour-semaine {
  font-size: 0.5em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 2px;
  opacity: 0.85;
}

.evenement-calendrier .jour {
  font-size: 1.4em;   /* Plus grand pour le jour */
  font-weight: bold;
  line-height: 1;
}

.evenement-calendrier .mois {
  font-size: 0.5em;  /* Plus petit pour le mois */
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.5px;
}

.evenement-texte {
  font-family: 'Cooper', serif;
  font-size: 0.8em;
  line-height: 1.2;
}

.lien-evenements {
  margin-top: 1em;
  text-align: center;
  font-size: 0.95em;
}

.lien-evenements a {
  color: #333;
  text-decoration: underline;
}

.lien-evenements a:hover {
  color: #FF453B;
}



/* ################################################# */
/* NAV BAR  */
/* ################################################# */

.display-item-none {
    display: none !important;
}







