/*
Theme Name: Sahifa Child
Description: Child theme for Sahifa theme
Author: TieLabs
Template: sahifa
*/

/* ============================================================
   TABLE DES MATIÈRES CSS
   ------------------------------------------------------------
   1. Typographie & Titres
   2. Liens, Blocs et Références
   3. Affichage des Posts
   4. Pages spécifiques (5969, 12331, etc.)
   5. Glossaire
   6. Menu de navigation
   7. Shortcodes
   8. Widgets & éléments spécifiques
   9. Responsive / mobile
   10. Commentaires & notes
=============================================================== */


/* ============================================================
   1. TYPOGRAPHIE & TITRES
=============================================================== */

/* */
.post-title {
  font-family: BebasNeueRegular, Arial, Georgia, serif;
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.01rem;
}


/* Marges homogènes autour des titres dans les articles
.entry h1, .entry h2, .entry h3,
.entry h4, .entry h5, .entry h6 {
  margin-top: 25px;
  margin-bottom: 10px;
}
 */

/* Hiérarchie des tailles de titres avec mise en gras */
.entry h1 { font-size: 30px!important; font-weight: 700!important; color: #333; line-height: 1.2em; }
.entry h2 { font-size: 26px!important; font-weight: 700!important; color: #333; line-height: 1.2em; }
.entry h3 { font-size: 20px!important; font-weight: 700!important; color: #333; line-height: 1.2em; }
.entry h4 { font-size: 18px!important; font-weight: 700!important; color: #333; line-height: 1.2em; }
.entry h5 { font-size: 16px!important; font-weight: 700!important; color: #333; line-height: 1.2em; }
.entry h6 { font-size: 14px!important; font-weight: 700!important; color: #333; line-height: 1.2em; }

/* derniers articles colonnes droite */
.widget-container h3 a { font-size: 12px!important; font-weight: 700!important; line-height: 1.0em; }


/* Mots en gras bien visibles */
.entry strong, .entry b {
  font-weight: 700 !important;
  color: #333333;
}

/* Liens dans les contenus d’articles */
.entry a {
  font-weight: 500 !important;
}

/* Style des exposants */
sup {
  vertical-align: top;
  position: relative;
  top: -0.5em;
}

/* Bloc de citation simplifié */
blockquote {
  padding: 0 20px 10px;
  margin: 0 0 10px 0;
}

/* Paragraphes dans les commentaires */
.comment-content p {
  line-height: 22px !important;
}


/* ============================================================
   2. AFFICHAGE DES POSTS
=============================================================== */

.post-last-modified,
.page-last-modified {
  font-size: 0.9em !important;
  font-style: italic;
  color: #999 !important;
}

.post-inner .wp-caption,
.post-inner .alignnone {
  margin: 15px 0 !important;
}


/* ============================================================
   3. PAGES SPÉCIFIQUES
=============================================================== */

/* Page #5969 : masquage de certains éléments */
.post-5969 .lastmodified {
  border: 1px solid #999;
  padding: 0 15px;
}
.post-5969 h2.references,
.post-5969 div.references,
.post-5969 ol.footnotes,
.post-5969 .post-password-form,
.post-5969 div#ez-toc-container,
.post-5969 sup {
  visibility: hidden;
  display: none;
}
.post-5969 p#post-modified-info {
  margin: 0px !important;
}

/* Pages 12331 et 12445 : masquage de l’auteur, remplacement par "etatdurgence.ch" */
.post-12331 .post-meta-author a,
.post-12445 .post-meta-author a {
  display: none;
}
.post-12331 .fa-user:after,
.post-12445 .fa-user:after {
  content: "etatdurgence.ch";
  font-size: 1em;
}

/* Page #15860 : numérotation continue dans les listes ordonnées 
body .post-15860 {
  counter-reset: list-counter;
}
.post-15860 ol.continuous-list li {
  counter-increment: list-counter;
}
.post-15860 ol.continuous-list li::before {
  content: counter(list-counter) ". ";
  font-weight: bold;
}
.post-15860 ol.continuous-list {
  list-style: none;
  padding-left: 0;
}
.post-15860 ol.continuous-list li::marker {
  content: none;
  display: none;
}

*/
/* ============================================================
   4. GLOSSAIRE
=============================================================== */

.entry .glossary-link a {
  color: #333 !important;
  font-weight: 500;
  background-color: #eee;
}
.entry .glossary-link a::after {
  content: url(https://etatdurgence.ch/wp-content/uploads/info-16.png) !important;
  margin-right: 4px;
  position: relative;
  right: -3px;
  bottom: 0;
  color: #ccc !important;
}


/* ============================================================
   5. MENU DE NAVIGATION
=============================================================== */

.boutonmenuprincipal {
  background-color: #e83737;
  color: white;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-top: 10px;
  font-size: 0.8em;
}
.boutonmenuprincipal:hover {
  background-color: #ff4444;
}

.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-child {
  display: none;
  background-color: #f28c8c;
  min-width: 20px;
}
.dropdown-child .playback-rate-button {
  color: white;
  background-color: #000;
  padding: 0;
  display: block;
}
.dropdown:hover .dropdown-child {
  display: block;
}
button .playback-rate-button {
  padding: 0;
  margin: 0;
  display: inline-flex;
}

/* Sous-menus du menu principal */
#main-nav ul ul.sub-menu {
  width: 360px !important;
}
#main-nav ul ul.sub-menu li {
  font-size: 0.8em !important;
}


/* ============================================================
   6. SHORTCODES
=============================================================== */

/* Titre des spoilers (plugin Shortcodes Ultimate ?) */
.su-spoiler-style-default > .su-spoiler-title {
  color: #ff0000 !important;
  font-size: 18px;
}


/* ============================================================
   7. WIDGETS & ÉLÉMENTS SPÉCIFIQUES
=============================================================== */

#sidebar a.glink {
  padding: 0 5px 0 0 !important;
}

/* ============================================================
   9. Lien pied de page  
=============================================================== */

#theme-footer a {
    color: #ffffff!important;
    text-decoration: underline!important;
}
#theme-footer a:hover {
    color: #ff0000!important;
}

/* ============================================================
   9. Puce du block détail dans soutenir
https://etatdurgence.ch/infos/soutenir-le-media-etat-durgence/
=============================================================== */

.wp-block-details summary {
  cursor: pointer;
  font-weight: bold;
  list-style: none; /* retire la flèche par défaut du navigateur */
  padding-left: 1.3em;
  position: relative;
}

.wp-block-details summary::before {
  content: "►";
  position: absolute;
  left: 0;
  color: #ff0000; /* ou autre couleur sobre */
  font-size: 1em;
  transition: transform 0.3s ease;
}

.wp-block-details[open] summary::before {
  transform: rotate(90deg);
}


/* ============================================================
   8. RESPONSIVE / MOBILE
=============================================================== */

@media (max-width: 640px) {
  #theme-header .logo img {
    float: right !important;
    margin-right: 3%;
    max-width: 80%;
  }
}


/* ============================================================
   9. COMMENTAIRES & NOTES
=============================================================== */

/* Anciennes personnalisations déplacées ici le 7.08.2024 */
/* Ajouter vos règles CSS personnalisées ci-dessous */

.wp-caption-text, .single-post-caption {
  font-size: 0.8em;
  color: #666;
  text-align: center;
  margin-top: 5px;
  taxt-style: italic;
}