/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Child theme pour GeneratePress
 Author:       Sebastien Cottinet
 Author URI:   https://debunkqc.ca
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  generatepress-child
*/

h1 {
    font-size: 33px;
	font-weight: 800;
    color: #0060B4;
	margin-bottom: 15px;
}

h2 {
    font-size: 28px;
	font-weight: 700;
    color: #2460b4bf;
	margin-bottom: 10px;
}
h3 {
    font-size: 25px;
	font-weight: 700;
    color: #2460b4bf;
	margin-bottom: 8px;
}
.footer-widgets-container {
    font-size: 12px;
}
.footer-widgets {
    background-color: #636363;
}
.footer-widgets a {
    color: #aaaaaa;
}

.main-navigation .main-nav ul li a, .main-navigation .main-nav ul li, .main-navigation .menu-toggle, .main-navigation .menu-bar-items {
    color: #0060B4;
	font-weight: 800;
	font-size: 23px;
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: #5D8746;
    font-weight: 800;
}

.grid-biais { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 1.5rem;
}
.item-biais {
    padding: 1rem;
    background: #f0f8ff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 13px;
}
.item-biais img {
    width:100%;
    height:auto;
    border-radius:4px;
}
.item-biais h2 {
    margin:0.5rem 0;
    font-size:1.1rem;
}
.entry-title a {
    color: #0060B4;
}

.bite-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 1.5rem;
}
.bite-method-card {
  padding: 1rem;
  background: #f0f8ff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.bite-method-card h3 {
    margin-top: 0;
}
.bite-method-card a {
    display: inline-block;
    margin-top: .5rem;
    color: var(--accent);
}
.related-methods {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}
.related-methods h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.related-methods-list {
  list-style: none;
  padding: 0;
}
.related-methods-list li {
  margin-bottom: .5rem;
}
.related-methods-list a {
  color: var(--accent);
  text-decoration: none;
}
.related-methods-list a:hover {
  text-decoration: underline;
}
.debunks-list article {
    margin-bottom: 2em;
}
.pagination {
    text-align: center; margin: 1.5em 0;
}
.pagination .page-numbers {
    display: inline-block; padding: 0.5em;
}

/* Enveloppez votre tableau dans un conteneur pour le rendre scrollable sur mobile */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

/* Style de base */
.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-family: inherit;
}

/* En-tête */
.table-responsive thead {
  background-color: #005eb8;
  color: #fff;
}
.table-responsive thead th {
  padding: 0.75em 1em;
  text-align: left;
  font-weight: 600;
  border: 1px solid #ccc;
}

/* Lignes du corps, alternance légère */
.table-responsive tbody tr:nth-child(odd) {
  background-color: rgba(0, 94, 184, 0.05); /* bleu clair très léger */
}
.table-responsive tbody tr:nth-child(even) {
  background-color: rgba(93, 135, 70, 0.05); /* vert clair très léger */
}

/* Cellules */
.table-responsive tbody td {
  padding: 0.75em 1em;
  border: 1px solid #ddd;
  vertical-align: top;
}

/* Si vous utilisez un <p class="p1"> à l’intérieur, on peut uniformiser */
.table-responsive td .p1 {
  margin: 0;
  line-height: 1.5;
}

/* Responsive : garantissez un petit padding externe */
@media (max-width: 600px) {
  .table-responsive {
    margin: 0 -1rem;
    padding: 0 1rem;
  }
}

/* Recent Debunk 
.recent-debunks img {
    width: -webkit-fill-available;
}
.recent-debunks h4 {
    font-size: 18px;
    font-weight: 600;
}*/

.recent-debunks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.recent-debunk-item {
  flex: 1 1 calc(50% - 1rem);
  background: #f9f9f9;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  transition: box-shadow .2s;
}

.recent-debunk-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recent-debunk-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.recent-debunk-title {
  font-size: 1rem;
  color: #005eb8;
  margin: 0.75rem 0;
}

.recent-debunk-date {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.75rem;
}

/* Responsive */
@media(max-width:600px){
  .recent-debunk-item {
    flex: 1 1 100%;
  }
}
/* Container général */
.debunks-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Une rangée de débunk */
.debunk-item {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1.5rem;
}

/* Vignette fixe à 1/3 de la largeur */
.debunk-thumb {
  flex: 0 0 33%;
}
.debunk-thumb img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Contenu texte à 2/3 */
.debunk-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Titre */
.debunk-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.debunk-title a {
  color: #005eb8; /* bleu principal */
  text-decoration: none;
}
.debunk-title a:hover {
  text-decoration: underline;
}

/* Extrait */
.debunk-excerpt {
  color: #333;
  line-height: 1.6;
}

/* Pagination */
.debunks-pagination {
  margin-top: 2rem;
  text-align: center;
}
.debunks-pagination .page-numbers {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #005eb8;
  text-decoration: none;
}
.debunks-pagination .page-numbers.current {
  background-color: #005eb8;
  color: #fff;
  border-color: #005eb8;
}
.debunks-pagination .page-numbers:hover {
  background-color: #005eb8;
  color: #fff;
  border-color: #005eb8;
}
.debunk-thumb {
  flex: 0 0 25%;
}
.debunk-content {
  flex: 0 0 75%;
}
.debunk-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* 25% width pour la vignette, ratio 1/1 */
.debunk-thumb {
  flex: 0 0 25%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

/* On couvre entièrement le carré sans déformer */
.debunk-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Le texte prend les 75% restants */
.debunk-content {
  flex: 0 0 75%;
}

input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    max-width: 54% !important;
}
.wp-block-search__label {
	display: none;
}
button, html input[type="button"], input[type="reset"], input[type="submit"], a.button, a.wp-block-button__link:not(.has-background) {
    color: #ffffff;
    background-color: #5D8746 !important;
}
button, input[type=button], input[type=reset], input[type=submit] {
    background: #0060B4;
}