/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

article a {
	text-decoration:underline;}
/* Exclusion des liens dans les listes Elementor */
article .elementor-icon-list-items a {
  text-decoration: none !important;
}

strong {
  color: #DF4612;
}

/*
 * En-tête :  
 * - <h2> dans <article> : margin-top 3em sauf le tout premier  
 * - <h2> immédiatement après  
 *     • un <p>  
 *     • ou un <span> qui lui-même suit un <p>  
/* ===========================
   Marges supplémentaires pour titres H2 après texte, span ou liste
   =========================== */
article h2:not(:first-of-type),
article p + h2,
article p + span + h2,
article ul + h2,
article ol + h2 {
  margin-top: 2em;
}

  /* Section: Listes non-Elementor (Widget liste exclu) */
article ul:not(.elementor-icon-list-items) {
  list-style: none !important;
  margin: 0.5em 1em !important;
  padding: 0 !important;
}

/* Section: Éléments <li> non-Elementor  (Widget liste exclu)*/
article ul:not(.elementor-icon-list-items) li {
  position: relative !important;
  padding-left: 0.5em !important;
  margin-bottom: 0.5rem !important;
}

/* Section: Puces non-Elementor  (Widget liste exclu)*/
article ul:not(.elementor-icon-list-items) li::before {
  content: "";
  display: inline-block;
  margin-right: 0.5em;
  width: 0;
  height: 0;
  vertical-align: middle;
  border-left: 0.4em solid transparent;
  border-right: 0.4em solid transparent;
  border-bottom: 0.7em solid var(--e-global-color-accent);
  transform: rotate(90deg);
}

/* Section: Listes ordonnées non-Elementor  (Widget liste exclu)*/
article ol {
  margin-top: -1em !important;
  margin-bottom: 1.5em !important;
}


/* ===========================
   Boutons Gutenberg avec couleurs Elementor
   Utilise les variables globales Elementor :
   --e-global-color-primary  = Couleur primaire
   --e-global-color-secondary = Couleur secondaire
   =========================== */

/* Bouton par défaut */
.wp-block-button__link,
.wp-element-button {
  background-color: var(--e-global-color-accent);   /* fond = primaire Elementor */
  color: var(--e-global-color-e322e06)!important;            /* texte = secondaire Elementor */
  border-radius: 0px;                                 /* arrondi (optionnel) */
  padding: 10px 16px;                                 /* padding (optionnel) */
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* État hover/focus */
.wp-block-button__link:hover,
.wp-element-button:hover,
.wp-block-button__link:focus,
.wp-element-button:focus {
  color: var(--e-global-color-primary);              /* texte = primaire Elementor */
  outline: none;
}

/* ============================
   MASQUER HEADER / FOOTER À L’IMPRESSION
   ============================ */
@media print {
	
	h1, h2 {
      font-size: 100% !important;
    }

    /* --- Header Elementor --- */
    header,
    .elementor-location-header {
        display: none !important;
    }

    /* --- Footer Elementor --- */
    footer,
    .elementor-location-footer {
        display: none !important;
    }
	.head-fiche-cours {
        display: none !important;
    }
}

/* Pas de séparation verticale dans les tableaux */

table th,
table td {
  border-left: 0 !important;
  border-right: 0 !important;
}
/* Tableaux scrollables horizontalement sur mobile */
@media (max-width: 768px) {
  table {
    display: block!important;
    overflow-x: auto!important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}