/*
 Theme Name:   generatepress-child
 Theme URI:    https://generatepress.com
 Description:  GeneratePress child theme by Gerard Leloup
 Author:       Tom Usborne
 Author URI:   https://generatepress.com/about
 Template:     generatepress
 Text Domain:  generatepress
 Requires PHP: 7.4
 Version:      3.6.1
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Tested up to: 6.9
*/

/* Chargement de la police locale Roboto */
@font-face {
  font-display: swap;
  font-family: 'Roboto Loup';
  font-style: normal;
  font-weight: 400;
  src: local('roboto regular'), local('roboto-regular'),
       url('./fonts/roboto-v50-latin-regular.woff2') format('woff2');
}

/* Chargement de la police locale Inconsolata */
@font-face {
  font-display: swap;
  font-family: 'Inconsolata Loup';
  font-style: normal;
  font-weight: 400;
  src: local('inconsolata regular'), local('inconsolata-regular'),
       url('./fonts/inconsolata-v37-latin-regular.woff2') format('woff2');
}

/* Affichage du Sprite Flèches sur la page construction du réseau */
.sprite {background-image: url('/wp-content/uploads/2026/01/spritesheet.png');background-repeat: no-repeat;float: left;margin-right:15px;margin-bottom:0px;}
.sprite-fleche-a {width: 57px;height: 25px;background-position: -5px -5px;}
.sprite-fleche-b {width: 79px;height: 25px;background-position: -5px -40px;}
.sprite-fleche-c {width: 100px;height: 25px;background-position: -5px -75px;}
.sprite-fleche-d {width: 120px;height: 25px;background-position: -72px -5px;}

/* Général */
.wp-block-table table, .wp-block-table th, .wp-block-table td {border: 0px solid;}
.bordure table, .bordure th, .bordure td {border-width: 1px;}
.entry-content .bsf-rt-reading-time {margin-bottom: 10px !important;}

/* Logo - Dimensions */
img.header-image.is-logo-image {height: auto; width: 130px;}

/* Suppression image mise en avant dans les articles */
.page-header-image-single {
      display: none;
}

/* Style police de la table des matières et espace entre lignes */
.lwptoc_i {font-style: italic;}
.lwptoc_item_label {line-height: 36px;}

/* Affichage du scroll horizontal dans les blocs code de Gutenberg */
.wp-block-code pre {
    overflow-x: auto;
    white-space: pre;
    word-break: normal;
    max-width: 100%;
}

.wp-block-code code {
	 white-space: pre;
    word-break: normal;
	 display: inline-block;
    padding: 0px;
}

/* Style du bloc code */
.wp-block-code:has(code) {
	background: #222222;
	color: #fff;
    border: 2px solid #222222;
    border-radius: 5px;
    transition: all 0.2s;
    font-family: 'Inconsolata Loup', Consolas, Menlo, Monaco, monospace;
}

.wp-block-code.codeconf {
	background: #fff;
	color: #222222;
	border-color: #222222;
}

.wp-block-code .codecom {
	color: #28A745;
	font-style: italic;
	font-weight: bold;
	opacity: 1.0;
}
	
/* Classe pour copier le contenu d'un bloc code dans le presse-papier */
.codecop .copy-the-code-button svg {visibility:visible;}
#.codecop:hover .copy-the-code-button svg {visibility:visible;fill:#28A745;}

/* Style police du code */
pre[class*="language-"],
code[class*="language-"] {
    font-family: 'Inconsolata Loup', Consolas, Menlo, Monaco, monospace;
}

/* gestion de la position de l'image en page categorie */
.category .post-image img { display: block; margin-left: auto; margin-right: auto; }

/* Traitement du bouton Lire la suite */ 
.read-more-container {margin-top: 10px;text-align: right;}

/* Affiche la date de mise à jour de l'article au lieu de la date de création */
.posted-on .updated {display: inline-block;}
.posted-on .updated + .entry-date {display: none;}
.posted-on .updated:before {content: "Mis \00E0  jour le : ";}

/* Cache Laisser un commentaire dans les extraits et les articles */
.entry-meta .comments-link {display: none;}

/* Cache le lien catégorie dans les extraits et les articles */ 
.cat-links {display:none;}

/* Position du bouton vers le haut */
.generate-back-to-top,.generate-back-to-top:visited {bottom: 100px;right: 30px;}

/* Style de la colonne latérale droite */
.inside-right-sidebar aside {
    font-family: 'Inconsolata Loup', monospace;
}

.inside-right-sidebar aside {
    border-radius: 10px;
    padding: 1em;
}

/* Sidebar Administration/Supervision */
.sidebar #block-52, .sidebar #block-51, .sidebar #block-50, .sidebar #block-49, .sidebar #block-48, .sidebar #block-47 {background-color:#faf5ed;}

/* Style d'un paragraphe en nota */
.note {
    background-color: #e7f3fe;      /* Bleu très clair */
    border-left: 4px solid #2196F3; /* Bande verticale bleue */
	font-style: oblique;
    padding: 1rem;                  /* Espace interne */
    margin: 1rem 0;                 /* Espace externe vertical */
    color: #0c5460;                 /* Texte sombre pour bon contraste */
    border-radius: 4px;             /* Coins légèrement arrondis */
    font-size: 1rem;                /* Taille de texte standard */
}

/* zoom de l'image au passage de la souris dans Eléments du réseau virtuel */
.image-zoom {-webkit-transform: scale(1);transform: scale(1);-webkit-transition: .3s ease-in-out;transition: .3s ease-in-out;}
.image-zoom:hover {-webkit-transform: scale(1.08);transform: scale(1.08);}

/* Alignement du dernier article */
.wp-block-latest-posts__list li {text-align: center;}

@media (min-width: 361px) and (max-width: 768px) {
    /* CSS in here for mobile only */
/* Style code */
.wp-block-code code {font-size: 12px;}
/* Taille de la police de caractères dans l'entête */
.header-widget p {font-size:16px !important;}
/* Style Sidebar droite */
.widget-area .widget {padding: 25px;font-size: 17px;}
/* Liste des mémentos, taille des titres */
.lightweight-accordion .lightweight-accordion-title span {font-size: 13px !important;}
