/*
Theme Name:   Divi-SIA12
Description:  Thème enfant de Divi
Author:       SIA 12 Informatique
Template:     Divi
Version:      1.0.0
*/


body{
	color: #ffffff;
}


h1{
  color:#ffffff;
}

h2{
  color:#ffffff;
}

h3{
  color:#ffffff;
}


h4{
	color:#ffffff;
}



/********************************/
/*                              */
/*    DETAIL DE LA FORMATION    */
/*                              */
/********************************/

/* Fond noir de la zone de contenu */
.ff-main { background: #000000; }

/* Colonne de droite : remonte sur le hero (bureau uniquement) */
.ff-aside .et_pb_module { margin-bottom: 0 !important; }
@media (min-width: 981px) {
  .ff-aside { margin-top: -230px; position: relative; z-index: 5; }
}

/* Carte blanche */
/*.ff-card-head  { background-color:rgba(255, 255, 255, 10.9); padding: 20px 32px 12px 90px; position: relative; text-transform: uppercase; font-weight: 700; color: #222; }
.ff-card-head::before { content: ""; position: absolute; left: 0; top: 0; width: 60px; height: 60px; background: #333; }*/
.ff-card-item  { background-color:rgba(255, 255, 255, 0.9); padding: 14px 32px; margin-bottom: 0px !important;}
.ff-card-item .et_pb_module_header { font-weight: 700; color: #222;  margin-bottom: 0px;}
.ff-card-item .et_pb_blurb_description { color: #000000; font-size: 14px; line-height: 1.6; }
.ff-card-cta   { background: #fbd04f; text-align: center; }
.ff-card-cta a { color: #fff !important; font-weight: 700; display: block; padding: 18px 10px; }

/* Carte sombre */
.ff-dark-title { background: #333; padding: 28px 32px 8px; color: #fff; }
.ff-dark-item  { background: #333; padding: 14px 32px;   }
.ff-dark-item .et_pb_module_header {  font-size: 14px; font-weight: 700; }
.ff-dark-item .et_pb_blurb_description {  font-size: 14px; line-height: 1.5; }
.ff-dark-note  { background: #333; padding: 14px 32px 28px; color: #fff; font-size: 11px; }

/* Colonne de gauche : sections à puces */
.ff-section { margin-bottom: 40px;  text-align: justify !important; text-justify: inter-word;}
.ff-section .et_pb_module_header { font-size: 24px; font-weight: 700; color: #ffffff; margin-bottom: 14px; }
.ff-section ul { list-style: disc; padding-left: 22px; margin: 0; }
.ff-section li {  font-size: 14px; line-height: 1.5; padding-bottom: 6px; }
.ff-section li::marker { color: #aaa; }

/* Titre de la formation */
 .ff-titre { text-shadow: 0.20em 0.20em 0.20em rgba(0,0,0,0.4);}
 .ff-titre h1 { font-size:40px; font-family: "Archivo Black", sans-serif;  font-weight: 400;  font-style: normal;}





/* =====================================================
   CHARTE GRAPHIQUE : à remplacer par les valeurs de sia12.fr
   ===================================================== */
:root {
  --f-primary: #01A952;   /* couleur principale (boutons, accents) */
  --f-dark:    #E7E7E7;   /* titres / fond sombre */
  --f-soft:    #eef2ff;   /* fond clair (vignettes, badges) */
  --f-radius:  16px;
  --f-font:    inherit;   /* ex. "Poppins", sans-serif */
}

/* =====================================================
   BADGES (partagés avec la fiche formation)
   ===================================================== */
.fiche-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.fiche-champ { padding-left: 20px !important; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  background: var(--f-soft);
  color: var(--f-primary);
}
.badge--presentiel { background: #e0f2fe; color: #075985; }
.badge--distanciel { background: #dcfce7; color: #166534; }

/* =====================================================
   CATALOGUE : conteneur et grille (3 colonnes)
   ===================================================== */
.cat-formations { font-family: var(--f-font); }

.cat-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =====================================================
   CARTE DE FORMATION
   ===================================================== */
.cat-carte {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--f-radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-carte:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
}



.cat-corps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  flex: 1;

}

.cat-corps-titre{
  color: #000000;
  text-decoration: underline;
  text-align: justify;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: -15px;
}

.cat-corps-resume{
  color: #000000;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  }

.cat-corps-desc{
  color: #000000;
  text-align: center;
  font-size: 10px;
  margin-top: auto;
  
}

.cat-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--f-primary);
}

/* ========== Image + titre centré ========== */
.cat-visuel {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--f-soft);
  overflow: hidden;
}
.cat-visuel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.cat-carte:hover .cat-visuel img { transform: scale(1.04); }


/* Voile sombre pour que le titre reste lisible sur toutes les images */
.cat-visuel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  pointer-events: none;
}

.cat-titre {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;       /* centré verticalement */
  justify-content: center;   /* centré horizontalement */
  margin: 0;
  padding: 16px;
  text-align: center;
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.cat-titre a {
  color: #fff;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}
/* Rend toute l'image cliquable */
.cat-titre a::after {
  content: "";
  position: absolute;
  inset: 0;
}


/*.cat-corps h3 a { color: #000000;; }*/

.cat-date  {
  font-size: 8px;
  color: #6b7280;
  text-align: right;
  margin-bottom: -22px;
}

.cat-btn {
  margin-top: auto;
  align-self: center;
  background: var(--f-primary);
  color: #fff !important;
  padding: .6em 1.3em;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.cat-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 32px;
}
.cat-pagination .page-numbers {
  min-width: 38px;
  padding: 8px 12px;
  text-align: center;
  border-radius: 999px;
  background: #fff;
  color: var(--f-dark);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.cat-pagination .page-numbers.current {
  background: var(--f-primary);
  color: #fff;
}
.cat-pagination a.page-numbers:hover { background: var(--f-soft); }

.cat-vide {
  padding: 32px;
  text-align: center;
  color: #6b7280;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
/* Tablette : 2 colonnes */
@media (max-width: 980px) {
  .cat-grille { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile : 1 colonne */
@media (max-width: 600px) {
  .cat-grille { grid-template-columns: 1fr; }
  .cat-corps { padding: 16px; }
}

/* ========== Blocs par éditeur ========== */
.cat-editeur { margin-bottom: 56px; }

.cat-editeur-tete {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--f-soft);
}

.cat-editeur-logo {
  display: block;
  max-height: 56px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
}

.cat-editeur-nom {
  margin: 0;
  padding: 0;
  font-size: 26px;
  color: var(--f-dark);
}





.bloc-fiche:not(:has(.fiche-champ)) {
  display: none;
}