/**
 * Theme Name: Blocksy-child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/*


/* ---------------------------------------------------
 * Theme enfant
 * ---------------------------------------------------*/

/* Personnalisation du bloc Détail */
.wp-block-details summary {
    margin-bottom: 0px;
}

.wp-block-details {
    padding: 10px;
    border-radius: 5px;
}

/* Légende photos */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    background: inherit;
    color: #a05bb6;
    text-shadow: none;
    font-size: inherit;
}

/* Modification de la taille du texte du bloc Détail */
.wp-block-details summary {
    font-size:1.2em;
    font-weight: 600;
}

/* Date webinaires avec variantes */
.webinar-date-block {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.webinar-date-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.date-weekday {
    font-size: 1rem;
    font-weight: 400;
    text-transform: capitalize;
    opacity: 0.8;
    margin-bottom: 0px;
}

.date-day {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0px;
}

.date-month {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0px;
}

.time-info {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.webinar-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Variantes de couleurs */
.webinar-date-block.professionnels-sante {
    color: #0C419A;
}

.webinar-date-block.employeurs {
    color: #CD545B;
}

.webinar-date-block.partenaires {
    color: #E11A81;
}

.webinar-date-block.assures {
    color: #A05BB6;
}

/* Responsive */
@media (max-width: 768px) {
    .webinar-date-block {
        width: 150px;
        height: 150px;
    }
            
    .date-day {
        font-size: 2.5rem;
    }
            
    .date-month {
        font-size: 1rem;
    }
            
    .time-info {
        font-size: 0.9rem;
    }
}

/* ---------------------------------------------------
 * Boutons personnalisés
 * ---------------------------------------------------*/

/* Employeur */
.wp-block-button-employeur .wp-element-button {
    background-color: rgba(208, 85, 89, 1);
}

.wp-block-button-employeur .wp-block-button__link:hover {
    background-color: rgba(208, 85, 89, 0.5);
}

/* Professionnel de santé*/
.wp-block-button-professionnel-sante .wp-element-button {
    background-color: rgba(0, 165, 223, 1);
}

.wp-block-button-professionnel-sante .wp-block-button__link:hover {
    background-color: rgba(0, 165, 223, 0.5);
}

/* Partenaire*/
.wp-block-button-partenaire .wp-element-button {
    background-color: rgba(225, 26, 129, 1);
}

.wp-block-button-partenaire .wp-block-button__link:hover {
    background-color: rgba(225, 26, 129, 0.5);
}

/* Assure*/
.wp-block-button-assure .wp-element-button {
    background-color: rgba(240, 179, 35, 1);
}

.wp-block-button-assure .wp-block-button__link:hover {
    background-color: rgba(240, 179, 35, 0.5);
}


/* ---------------------------------------------------
 * adaptation iframe
 * ---------------------------------------------------*/

/* Suppression de la marge interne*/
div#player.player[class*="player-"].js-player-fullscreen {
    max-width: none !important;
}

/* class de la div*/
.container-16-9 {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

.container-16-10 {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 62.5%; /* 16:10 */
}

.container-4-3 {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 75%; /* 4:3 */
}

.container-3-2 {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 66.66%; /* 3:2 */
}

.container-8-5 {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 62.5%; /* 8:5 */
}

.container-1-1 {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 100%; /* 1:1 */
}

/* class de l'iframe - Adaptation à la div du container */
.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border:0px;
}

.vimeo_player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vimeo_player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

 /* Style pour le placeholder avant acceptation des cookies */
/*.tarteaucitronAllow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-family: Arial, sans-serif;
}*/

/* Responsive design */
/*@media (max-width: 768px) {
    .container-16-10 {
        margin: 10px 0;
    }
            
    .tarteaucitronAllow {
        padding: 15px;
        font-size: 14px;
    }
}*/

/* ---------------------------------------------------
 * Couleur des catégories
 * ---------------------------------------------------*/

/* Catégorie Employeurs*/
a.ct-term-35 {
    color: #fff;
    background-color: #CD545B;
    padding: 2px 5px;
    border-radius: 5px;
    margin-right: 1px;
    white-space: nowrap;
 }

 a.ct-term-35:hover {
    color: #e1e8ed;
}

/* Catégorie Comment ça marche*/
a.ct-term-36 {
    color: #fff;
    background-color: #FFA1A8;
    padding: 2px 5px;
    border-radius: 5px;
    margin-right: 1px;
    white-space: nowrap;
 }

 a.ct-term-36:hover {
    color: #e1e8ed;
}

/* Catégorie Professionnels de santé*/
a.ct-term-6 {
    color: #fff;
    background-color: #0C419A;
    padding: 2px 5px;
    border-radius: 5px;
    margin-right: 1px;
    white-space: nowrap;
 }

 a.ct-term-6:hover {
    color: #e1e8ed;
}

/* Catégorie Partenaires*/
a.ct-term-7 {
    color: #fff;
    background-color: #E11A81;
    padding: 2px 5px;
    border-radius: 5px;
    margin-right: 1px;
    white-space: nowrap;
 }

 a.ct-term-7:hover {
    color: #e1e8ed;
}

/* Catégorie Assurés*/
a.ct-term-34 {
    color: #fff;
    background-color: #00A5DF;
    padding: 2px 5px;
    border-radius: 5px;
    margin-right: 1px;
    white-space: nowrap;
 }

 a.ct-term-34:hover {
    color: #e1e8ed;
}


/* --------------------------------------------------------------------------
 * Point d'interrogation en filigrane pour les articles "comment-ca-marche"
 * --------------------------------------------------------------------------*/

.category-comment-ca-marche-employeurs .ct-media-container {
    position: relative;
}

/* Calque sombre opacifiant sur l'image */
.category-comment-ca-marche-employeurs .ct-media-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 1;
}

/* Point d'interrogation blanc par-dessus le calque */
.category-comment-ca-marche-employeurs .ct-media-container::after {
    content: "?";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 250px;
    color: #FFA1A8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 2;
    font-family: Arial, sans-serif;
}

/* Ajustement responsive pour les petits écrans */
@media (max-width: 768px) {
    .category-comment-ca-marche-employeurs .ct-media-container::after {
        font-size: 200px;
    }
}

@media (max-width: 480px) {
    .category-comment-ca-marche-employeurs .ct-media-container::after {
        font-size: 180px;
    }
}