/*
 Theme Name:   Roseta Child
 Theme URI:    https://example.com
 Description:  Thème enfant de Roseta
 Author:       Votre nom
 Template:     roseta
 Version:      1.0.0
*/

/*CSS personnalisé */

/* Masquer l'en-tête sur une page spécifique */
body.page-id-10542 #masthead, /*Animation Tube sonore attaché à 3CX1 Act01*/
body.page-id-10479 #masthead, /*Diffision 3CX1 Act06*/
body.page-id-5952 #masthead,
body.page-id-5208 #masthead, 
body.page-id-6145 #masthead,
body.page-id-4173 #masthead,
body.page-id-4219 #masthead,
body.page-id-4284 #masthead,
body.page-id-4238 #masthead,
body.page-id-4327 #masthead,
body.page-id-6297 #masthead,
body.page-id-1507 #masthead,
body.page-id-6392 #masthead,
body.page-id-5422 #masthead,
body.page-id-6526 #masthead,
body.page-id-6612 #masthead,
body.page-id-6703 #masthead,
body.page-id-6871 #masthead,
body.page-id-4823 #masthead,
body.page-id-6946 #masthead,
body.page-id-5141 #masthead,
body.page-id-7075 #masthead,
body.page-id-8801 #masthead,
body.page-id-9298 #masthead,
body.page-id-9518 #masthead,
body.page-id-4061 #masthead,  /* Fiche méthode ohm-mètre */
body.page-id-11098 #masthead,  /* Fiche méthode Desmos */
body.page-id-1228 #masthead,  /* H5P Pictogramme sécurité */
body.page-id-3224 #masthead,  /* Carousel 3C1 Act02 */
body.page-id-3270 #masthead,  /* Carousel 3C1 Act04 */
body.page-id-10333 #masthead, /* Carousel 3C2 Act01 */
body.page-id-10439 #masthead, /* Carousel 3C2 Act04 */
body.page-id-10893 #masthead, /* Carousel 3C2 Act05 */
body.page-id-10914 #masthead, /* Carousel 3C3 Act01 */
body.page-id-5760 #masthead, /* Carousel 3C4 Act04 */
body.page-id-5829 #masthead, /* Carousel 3C5 Act01 */
body.page-id-5896 #masthead, /* Carousel 3C5 Act02 */
body.page-id-10967 #masthead, /* Carousel 3CX2 Act02 */
body.page-id-11004 #masthead, /* Carousel 3CX2 Act03 */
/*body.page-id-12693 #masthead,  Carousel 5C1 Act01 */
body.page-id-6128 #masthead {

    display: none;
}

/* Cacher les sous menus du bouton dans l'entête */
.page-item-450 > ul.children,         /* sixième */
.page-item-877 > ul.children,        /* troisième */
.page-item-463 > ul.children {        /* quatrieme*/
  display: none !important;
}




/* Emp^che clic souris sur le contenu, Crtl C et Crtl 1 */
.no-copy {
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE10+ */
  user-select: none;         /* Standard */
}

/* Emp^che clic souris sur le contenu, Crtl C et Crtl 1 */
.ktlsodkzafd {
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE10+ */
  user-select: none;         /* Standard */
}

/* ✅ Réactive la sélection si besoin */
.allow-copy {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* CSS pour les activités de cours*/
.activity-title {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0px;
  margin: 5px 0 15px;
  padding-bottom: 12px;
  background: #f9f9f9;
  border-bottom: 2px solid #1e7e99;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  font-family: 'Oswald', sans-serif;
  color: #11718c;
  font-size: 10pt;
	text-align: center;
	line-height: 200%;
}

p.activity-correction {
    font-size: 12pt;
    font-weight: bold;
    color: #073763;
}

span.activity-correction {
    font-size: 12pt;
    font-weight: bold;
    color: #073763;
}

p.activity-problematic {
    font-size: 12pt;
    font-weight: bold;
    color: #274e13;
}

p.activity-vocabulary {
  font-weight: bold; 
  font-size: 12pt; 
  color: #cc0000;
}

.activity-title-doc {
  margin-top: 0pt;
  margin-bottom: 15pt;
  line-height: 115%;
  font-size: 10pt;
  font-family: Arial, sans-serif;
	font-weight: bold; 
}

.activity-ol {
  list-style-type: decimal;
  margin: 0;
  padding-left: 0pt;
  padding-top: 10pt;
  padding-bottom: 10pt;
  font-family: Arial, sans-serif;
  font-size: 12pt;
	/*font-weight: bold;*/
  line-height: 1.5;
}

.activity-ol >li {
  margin-top: 5px;
	margin-bottom: 10px;
  margin-left: 40px;
  background: #fffef2;
  padding: 8px 12px;
  border-left: 4px solid #ffe599;
  border-radius: 4px;
}

.activity-bilan {      /* Styles du conteneur */
  border: 1.5pt solid #ff0000;
  margin-top: 10pt;
  margin-bottom: 10pt;
  padding: 2pt;
}

.activity-bilan >p.p1 {   /* Styles spécifiques aux paragraphes enfants */
  font-size: 18pt;
  font-weight: bold;
  color: #cc0000;
}

.activity-bilan >p.p2 {   /* Styles spécifiques aux paragraphes enfants */
  font-size: 13pt;
  font-weight: bold;
  color: #cc0000;
}

.card {
  background: #fff;
	border: 2px solid #eee;
  border-radius: 8px;
  overflow-x: auto;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-bilan {
  background: #fff;
  border: 2px solid #c00;
  border-radius: 8px;
  overflow-x: auto;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.card-bilan  .p1 {
	font-size: 13pt;
	font-weight: bold;
	color: #c00;
}
.card-bilan  .p2 {
	font-size: 18pt;
	font-weight: bold;
	color: #c00;
	line-height: 150%;
}

.activity-correction-table {
  border: 1pt solid #000;         /* Bordure fine */
  padding: 4.5pt !important;                 /* Espacement interne */
  vertical-align: middle;        /* Aligner le texte au milieu verticalement */
  text-align: center;            /* Centrer le texte horizontalement */
  font-size: 12pt;               /* Taille du texte */
  font-weight: bold;            /* Texte en gras */
  color: #073763;                /* Couleur bleue foncée */
}
/* ==== ACTIVITY CONTAINER ==== */
.activity-flex-container {        /* Plusieurs colonne responsive */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  }
.activity-flex-container > div {
  border-right: 1px solid #ccc; 
  padding: 5px; 
}
  .activity-flex-container > div:last-child { /* enlever la bordure sur le dernier élément */
    border-right: none;
}
/* Responsive breakpoint */
@media screen and (max-width: 768px) {
  .activity-flex-container {
    flex-direction: column;
    align-items: stretch;
  }
  .activity-flex-container > div {
    border-right: none;
    border-bottom: 1px solid #ccc;
  }
  .activity-flex-container > div:last-child {
		border-bottom: none;
  }
}



/* === FLEX CONTAINER RESP.01 === */

.flex-container-responsive01 { 
  display: flex;
  flex-direction: row;
  /*flex-wrap: wrap;*/
  }
.flex-container-responsive01 > div {
  border-right: 1px solid #ccc;
	padding-right: 20px;
}
.flex-container-responsive01 > div:last-child {
    border-right: none;
    padding-right: 0px;
		padding-left: 5px;
}
 @media (max-width: 768px) {
    .flex-container-responsive01 {
      flex-direction: column !important;
    }
		.flex-container-responsive01 > img{
      width : 50px;
    }
	  .flex-container-responsive01 > div {
    border-right: none;
    border-bottom: 1px solid #ccc; /* barre sous chaque div */
  }
    .flex-container-responsive01 > div:last-child {
		border-bottom: none;
		padding-top: 10px;
  }
}

/* ==== INTRO et PROBLEMATIQUE ===== */
/* ==== hyper responsive === */

.grid-intro-responsive-01 {
  display: grid;
  grid-template-columns: auto 20%;
  grid-template-areas:
    "item1 item2"
    "item3 item3";
  gap: 5px;
  padding: 10px;
	justify-content: center;
  justify-items: center;
  align-content: center;
  align-items: center;
}

.grid-intro-responsive-01 > .item1 { grid-area: item1; }
.grid-intro-responsive-01 > .item2 { grid-area: item2; }
.grid-intro-responsive-01 > .item3 { grid-area: item3;display: flex;width: 100%;}

.grid-intro-responsive-01 > div:first-child {
	border-right: 1pt solid #ccc;
	padding-right: 5px;
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .grid-intro-responsive-01 {
    grid-template-columns: auto auto;
    grid-template-areas:
      "item1 item1"
      "item3 item2";
  }
	.grid-intro-responsive-01 > div:first-child {
	border-right: none;
	padding-right: none;
	border-bottom: 1pt solid #ccc;
	padding-bottom: 5px;
  }
  .grid-intro-responsive-01 > .item2 img {
    width: 100px;
    height: auto;
  }
	
	.grid-intro-responsive-01 > .item2 > div:nth-child(1) {
    padding-top: 0px;
    flex-direction: row !important;
  }
}
/* === ACTIVITY INTRO GRID === */
  .activity-intro-grid >div:first-child {
      border-right: 1pt solid #ccc;
      padding: 5px;
}

@media (max-width: 700px) {
  .activity-intro-grid {
    grid-template-columns: 1fr !important; /* une colonne sur mobile */
  }
 
  .activity-intro-grid > div:first-child {
    border-right: none !important;
	border-bottom: 1pt solid #ccc; 
  }
	
	.activity-intro-grid > div:nth-child(2) {
    padding-top: 0px;
    flex-direction: row !important;
  }
    
}
/* Syntaxe pour sympbole chimique*/
.nuclear-symbol {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: 50% 50%;
  line-height: 1;
  font-family: "arial", sans serif;
  font-weight: bold;
}

.mass {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.7em;
  align-self: end;   /* colle en bas de la case */
}

.atomic {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.7em;
  align-self: start; /* colle en haut de la case */
  justify-self: end;
}

.element {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 1em;
  align-self: center; /* bien centré verticalement */
  margin-left: 0.1em;
}


/* PAge Arduino, contenu scrolage à la souris */
pre.code-block {
  overflow-x: auto;
  white-space: nowrap;
  cursor: grab;
}

pre.code-block code {
  display: inline-block;
  min-width: max-content;
  white-space: pre;
}

.no-copy {
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE10+ */
  user-select: none;         /* Standard */
}
.arduino-title {
  width: 100%;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 20pt;
  color: #333;
  background: #f9f9f9;
  border: none;
  border-bottom: 2px solid #1e7e99;
  padding: 10px 0;
  margin: 20px 0 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* === Général === */
/*wrapper full height en flex */
#site-wrapper{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* ENCADRE de trait en haut et bas le site header */
/* Le padding c'est pour la couleur de item du menu*/
.site-header-bottom {
    padding-top: 1px;
	border-top: 1px solid rgba(30, 126, 153, 0.6); /* bordure avec transparence */
	opacity: 1 !important; /* garder le reste pleinement visible */
}

.site-header-bottom-fixed {
    padding-bottom: 3px;
	border-bottom: 1px solid rgba(30, 126, 153, 0.5);
}
/* 3) IMPORTANT : #content ne doit pas avoir de 100vh, pousse footer vers le bas */
#content{
  height: auto !important;
  min-height: 0 !important;
  flex: 1 0 auto;
}

/* Masquer la classe footer */
#footer {
    /*display: none !important;*/
		padding: 0px !important;
}
#footer-top .footer-inside > div:nth-child(1) {
    display: none !important;
}
@media (max-width: 800px) {
	#footer-top .footer-inside > div:nth-child(2) {
    text-align:left;
		margin: 0}
}

#footer-bottom {
    display: none !important;
}
/* Masquer la classe header */
.header-image {
  background-image: none !important;
}

/*Elargissement de largeur d'occupation
.main {
  padding-left: 2.5em !important;;
  padding-right: 2.5em !important;;
} */
.article-inner {
  padding-left: 0% !important;
  padding-right: 0% !important;
}

/*Couleur et comportement au survol du titre*/
#site-title a,
#site-title a:hover,
#site-title a:visited,
#site-title a:active {
  color: #0f4c5c !important;
  text-decoration: none;
}


/* Style général pour le conteneur (normal) */
.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
    background-color: white;
    overflow: auto;
}

/* Mode plein écran : appliquer les styles seulement quand on entre en plein écran */
.container.fullscreen {
    background-color: white;
    height: 100vh;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Bandeau avec titre */
.container .title-bar {
    position: absolute;
    display: block !important;
    top: 20px;
    left: 0;
    width: 100%;
    background-color: #1c4587;
    padding: 0px;
    color: white;
    text-align: left;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 18px;
    z-index: 0;
}

/* Mode plein écran : ajuster la taille et la position du titre */
.container.fullscreen .title-bar {
    top: 20px;
}



/* === Scroll & Overflow === */

/* Scroller sur x le contenu des hp5 */
.h5p-semi-fullscreen, .h5p-fullscreen, html.h5p-iframe .h5p-container {
    overflow: auto;
}
    /* Style pour le bouton triangle à gauche */
    .scroll-to-top-button {
      position: absolute; /* Positionner le bouton de manière absolue */
      transform: translateY(-100%); /* Ajuster pour un meilleur centrage */
      padding: 0;
      background-color: transparent; /* Transparent */
      border: none;
      cursor: pointer;
      display: inline-block;
      color: white; /* Laisser la couleur transparente pour éviter un rectangle */
    }

    /* Change la couleurlorsque le bouton est survolé */
    .scroll-to-top-button:hover {
      background-color: transparent; /* Changer la couleur au survol */
    }

    /* Icône du triangle (en utilisant un pseudo-élément) */
    .scroll-to-top-button::before {
      content: "\25B2"; /* Caractère du triangle pointant vers le haut (△) */
      font-size: 20px;
      display: inline-block;
      color: #666666; /* Couleur du triangle (vert ici) */
    }

/* === Tableaux et Slides === */

/* Conteneur de slide */
.tableau-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Style des tableaux */
.tableau-wrapper > table {
    flex-shrink: 0;
    width: 100%;
    height: auto;
    display: none;
}

/* Tableau actif visible */
.tableau-wrapper > table.active {
    display: block;
}

/* Style pour le tableau en plein écran */
table.fullscreen {
    width: 100%;
    height: 100%;
}

table.fullscreen tbody, table.fullscreen td {
    height: 100%;
    width: 100%;
}

/* === Boutons de navigation === */


/* === Mise en copier de le schortcode slide_flex_btn_dots_v2 
/* Boutons de navigation 
.btn-slide {
    position: absolute;
    padding: 3px 5px;
    background-color: rgba(34, 170, 161, 0.2);
    color: white;
    border: 2px solid rgba(34, 170, 161, 0.3);
    cursor: pointer;
    font-size: 12px;
    z-index: 10;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Styles lors du survol des boutons 
.btn-slide:hover {
    background-color: rgba(34, 170, 161, 0.5);
    border-color: rgba(34, 170, 161, 0.6);
    transform:  scale(1.3);
}

/* Bouton précédent à gauche
.prev {
    left: 10px;
}

/* Bouton suivant à droite
.next {
    right: 10px;
}

/* === Bouton plein écran === */
/* == Disponible en copie dans le shortcode "slide_flex_fullscreen_v1" ==*
/* Style pour le bouton plein écran */
.btn-fullscreen {
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 0px 10px;
    background-color: rgba(34, 170, 161, 0.2);
    color: grey;
    border: 2px solid rgba(34, 170, 161, 0.3);
    cursor: pointer;
    font-size: 11px;
    z-index: 10;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Hover sur le bouton plein écran */
.btn-fullscreen:hover {
    background-color: rgba(34, 170, 161, 0.5);
    border-color: rgba(34, 170, 161, 0.6);
}

/* === Indicateur de slide === */
/* Puces en dehors du conteneur avec overflow */
.outside-dots {    /**Nlle version nomme dots-container "slide_flex_btn_dots_v2" == */
    position: relative; /* Assurez-vous que les puces sont positionnées correctement */
    display: flex;
    justify-content: center;
    gap: 10px; /* Espacement entre les puces */
    z-index: 10; /* S'assurer que les puces sont visibles par-dessus d'autres éléments */
    margin-top: 20px; /* Espacement du dessus */
    text-align: center; /* Centrer les puces horizontalement */
}

/* Positionner les puces à 20px du bas du conteneur */
.container .dots { /* == Inutile avec le shotcode "slide_flex_btn_dots_v2" */
    position: absolute;
    bottom: 60px; /* Distance de 60px du bas */
    left: 50%;
    transform: translateX(-50%); /* Centrer horizontalement */
    display: flex;
    justify-content: center;
    gap: 10px; /* Espacement entre les puces */
    z-index: 10; /* S'assurer que les puces sont visibles par-dessus d'autres éléments */
}

/* Ajustement pour les puces en mode plein écran */

.container.fullscreen .dots { /* == Inutile avec le shotcode "slide_flex_btn_dots_v2" */
    bottom: 40px; /* Garder la distance de 60px même en plein écran */
}
/* == Disponible en copie dansdans shotcode "slide_flex_btn_dots_v2" */
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #bbb;
    cursor: pointer;
    transition: background-color 0.3s;
}
/* == Disponible en copie dansdans shotcode "slide_flex_btn_dots_v2" */
.dot.active {
    background-color: #1c4587;
}

/* ??????????????? */
.article-inner {
	padding-top: 0px !important;
}

.main {
  padding-top : 10px !important  
}







