/* ======================================
   Articles techniques – Header et Titres
   ====================================== */


.single-technical_article {
  background-color: #F5F5F5;
}


.single-technical_article .wp-block-post-content {
    max-width: 1050px;
}

.wp-block-post-content {
    max-width: 1050px;
    margin-left: 0;
    margin-right: auto;
}






.back-to-archive a {
  color: var(--wp--preset--color--contrast);
  font-weight: 400;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.1s;
}

.back-to-archive a:hover {
    color: var(--wp--preset--color--principale-1); /* avant hover */
}

.back-to-archive a::before {
  content: "←";
  margin-right: 0.4rem;
  font-family: system-ui, sans-serif;
  font-weight: 700;
}






.single-technical_article h1 {

}


.single-technical_article 
.wp-block-post-excerpt__excerpt {
  font-size: clamp(0.9rem, 0.3vw + 0.9rem, 1rem);
  font-weight: 500;
  color: #444;
}



/* ===============================
   Badge(s) Catégorie(s)
=============================== */


.article-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* espace entre les badges */
  margin-bottom: 1rem;
}

.article-categories a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--wp--preset--color--principale-1);
  border-radius: 0.3rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp--preset--color--principale-1);
  text-decoration: none;
  transition: all 0.2s;
}

.article-categories a:hover {
  background-color: var(--wp--preset--color--principale-1);
  color: var(--wp--preset--color--base);
  cursor: pointer;
}

.article-categories .wp-block-post-terms__separator {
  display: none; /* supprime les virgules */
}




/* ===============================
   Bloc Rédacteur associé
=============================== */
.article-redacteur {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #333;
}

.article-redacteur .redacteur-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.article-redacteur .redacteur-text {
    margin: 0;
}

.article-redacteur .redacteur-name {
    font-weight: 600;
    display: inline;
    color: var(--wp--preset--color--principale-1); /* Nom en couleur principale */
}

.article-redacteur .redacteur-role {
    font-weight: 400;
    color: #666;
    display: inline;
}



.single-technical_article h2 {
    font-size: clamp(1.1rem, 1vw + 0.5rem, 1.2rem);
    font-weight: 600;
    background-color: var(--wp--preset--color--secondaire);
    color: #54554B;
    padding: 1.2rem 1rem;
    margin-top: 2.5rem;
}



.single-technical_article h3 {
    font-size: clamp(1rem, 1.1vw, 1.08rem);
    margin-top: 2rem;
    line-height: 1.3;
    color: #bc7d63;
    font-weight: 600;
}


.single-technical_article h4 {
    text-align: center;
    font-size: clamp(0.7rem, 1vw + 0.5rem, 0.9rem);
    font-weight: 600;
    color: #54554B;
    padding: 0.2rem 1rem;
    margin-top: 2.5rem;
    border: 1px solid #54554B;
}





/* ===============================
   Mise en page fiche technique
   =============================== */


   .single-technical_article {
    font-size: clamp(0.8rem, 0.2vw + 0.82rem, 0.88rem);
  line-height: 1.5;
}

.single-technical_article main {
    /*max-width: 1400px;*/
    margin-inline: auto;
}

.single-technical_article strong {
    color: var(--wp--preset--color--primary);
    font-weight: 600;
}

.wp-block-image figcaption {
  font-size: 0.8rem;
  color: var(--wp--preset--color--complementaire-gris);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.schema-technique figcaption {
  border-top: 1px solid #ddd;
  padding-top: 0.5rem;
}






/* ===============================
   Mise en forme liste
   =============================== */

.single-technical_article .wp-block-list li {
  margin-bottom: 0.25rem;
  line-height: 1.4;
}




/* ===============================
   Mise en forme tableaux
   =============================== */

.single-technical_article .wp-block-table thead {
    border-bottom-width: 1px;
}


.single-technical_article .wp-block-table th,
.single-technical_article .wp-block-table td {
    border: 1px solid #D5A897;
}

.single-technical_article .wp-block-table {
    font-size: 0.8rem;
}

.single-technical_article .wp-block-table thead th {
    background-color: #bc7d63;
    color: #F6E7DA;
    font-weight: 600;
    vertical-align: top;
}

.single-technical_article .wp-block-table:not(:has(thead)) tr:first-child td,
.single-technical_article .wp-block-table:not(:has(thead)) tr:first-child th {
    background-color: #bc7d63;
    color: #ffffff;
    font-weight: 600;
}

.single-technical_article 
.wp-block-table thead th {
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.single-technical_article 
.wp-block-table tbody tr:first-child td {
    border-top: none;
}



.single-technical_article .wp-block-table th,
.single-technical_article .wp-block-table td {
    /*text-align: left;*/
}

/* Zébrage des lignes de contenu */
.single-technical_article .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: rgba(188, 125, 99, 0.12);
}


/* ===============================
   Lien
=============================== */


.single-technical_article .wp-block-post-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.single-technical_article .wp-block-post-content a:hover {
    text-decoration: underline;
  color: var(--wp--preset--color--principale-1);
  text-decoration-color: var(--wp--preset--color--principale-1);
  text-decoration-thickness: 2px;
}

