/* 
Theme Name:		ohmytime02
Theme URI:		https://ohmytime.ch
Description:	
Author:			SUPERO
Author URI:		https://supero.ch
Template:		hello-elementor
Version:		1.0.0
Text Domain:	ohmytime 02
Tags:           
*/

/*
    Add your custom styles here
*/
.rose{
    color: var( --e-global-color-primary );
}

.gris {
background-color: var( --e-global-color-secondary );
}

/*OH MY EVENT page accueil*/
/* Grille de 3 colonnes fixes */
.oh-my-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Toujours 3 colonnes */
    gap: 5px; /* Espacement entre les images */
}

.event-item {
   width: 100%;
    aspect-ratio: 1/1; 
    position: relative;
    overflow: hidden;
    display: block;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
}

.event-item.new {
    opacity: 0;
    transform: translateY(20px);
}

/* Une fois ajoutés, les éléments s'affichent avec l'animation */
.event-item.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Conteneur de l'image */
.event-image {
    width: 100%;
    height: 100%;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Force le remplissage total */
    object-position: center center; /* Centre l'image pour éviter les espaces vides */
    display: block;
}

/* Overlay au survol */
.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 73, 176, 0.6);
    color: #fff;
    display: flex !important; /* Force l'affichage */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: auto; /* Permet de ne pas bloquer le clic */
    text-align: center; /* <-- Ajout ici */
}

/* Apparition du titre au hover */
.event-item:hover .event-overlay {
    opacity: 1;
    text-align: center;
}

.event-item:hover h3 {
    transition: transform 0.2s ease-in-out;
    transform: scale(1.1);
}


/* Style du carr� rose en absence d'image */
.no-image {
    width: 100%;
    height: 100%;
    background: var(--e-global-color-primary); /* Couleur rose */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Style de la popup */
#popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 73, 176, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 10000 !important;
}

.popup-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.popup-content {
    background: white;
    padding: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh; /* Limite la hauteur � 80% de la fen�tre */
    overflow-y: auto;  /* Active le scroll si le contenu d�passe */
    position: relative;
    border-radius: 0;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    color: var(--e-global-color-primary);
    scrollbar-width: thin; /* Optionnel pour un style plus fin */
}
.popup-content::-webkit-scrollbar {
    width: 6px;
}

.popup-content::-webkit-scrollbar-thumb {
    background-color: var(--e-global-color-primary);
    border-radius: 3px;
}
#close-popup{
    position: absolute;
    right: 10px;
    top: 25px;
    cursor: pointer;
    color: var(--e-global-color-primary); /* Couleur rose */
    font-size: 3em;
    line-height: 0;
}
/*END OH MY EVENT page accueil*/
/**/
/*Oh my event single*/

.content-block {
    width: 100%;
    aspect-ratio: 1 / 1; /* Force le carré */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--e-global-color-primary);
}

.single-oh_my_expats .content-block{
    border: 1px solid var(--e-global-color-secondary);
}
.content-block-text{
     width: 100%;
    aspect-ratio: 1 / 1; /* Force le carré */
    position: relative;
    overflow: hidden;
    display: flex;
    border: 1px solid var(--e-global-color-primary);
    color: var(--e-global-color-primary);
    padding:10px;
}
.single-oh_my_expats .content-block-text{
    border: 1px solid var(--e-global-color-secondary);
    color: var(--e-global-color-secondary);
}
.content-block-text p{
    margin-bottom: 0;
}
/* Scroll vertical si le texte d�passe */
.text-content {
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--e-global-color-primary) rgba(0, 0, 0, 0.1); /* Couleur personnalis�e */
}
.single-oh_my_expats .text-content {
    scrollbar-color: var(--e-global-color-secondary) rgba(0, 0, 0, 0.1); /* Couleur personnalis�e */
}

/* Personnalisation du scrollbar (Chrome & Edge) */
.text-content::-webkit-scrollbar {
    width: 6px;
}

.text-content::-webkit-scrollbar-thumb {
    background: var(--e-global-color-primary);
    border-radius: 10px;
}

.text-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.title-block{
    background: var(--e-global-color-primary);
    color: #fff;
    text-align: center;
}
.single-oh_my_expats .title-block{
    background: var(--e-global-color-secondary);
}

.title-block a, .title-block a:hover{
    color: #fff;
}
.title-block a:hover{
    transition: transform 0.2s ease-in-out;
    transform: scale(1.1);
}

.block-title {
    color: var(--e-global-color-primary); /* Utilise la couleur principale */
}
/* Style spécifique aux textes */
.text-block {
}
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Toujours 3 colonnes */
    gap: 10px;
}

/* Carr� 1x1 */
.one-wide {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1 / 1;
}

/* Rectangle 2x1 */
.two-wide {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 2 / 1; /* Ratio horizontal */
}

.two-vertical {
     grid-column: span 1;
    grid-row: span 2;
    aspect-ratio: 1 / 2;
    min-height: calc(100%); /* Ajustement fin du d�calage */
}

/* Rectangle 3x1 */
.three-wide {
    grid-column: span 3;
    grid-row: span 1;
    aspect-ratio: 3 / 1; /* Ratio encore plus large */
}

/* Carr� 2x2 */
.two-by-two {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1 / 1;
}
.custom-event-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Par d�faut 3 colonnes */
    gap: 5px;
    padding: 0;
    margin: 0 auto;
    width: 100%;
}


.image-block {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden; 
}

.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
}
.video-block {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: black; /* Pour �viter le blanc autour de la vid�o */
}

.video-block video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit compl�tement l�espace */
}
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.fullscreen-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 73, 176, 0.6);
    color: #fff;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease-in-out;
}

.fullscreen-btn:hover {
    background: rgba(255, 73, 176, 0.9);
}

.fullscreen-btn svg {
    display: block;
    stroke: #fff;
}
.video-block button{
    border: none !important;
}
/*END Oh my event single*/
/**/
/*MENU*/
.ohmy-menu {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.ohmy-menu .menu-item {
    width: 120px; /* Taille du cercle */
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
    background-color: var( --e-global-color-primary );
}
@media screen and (max-width: 768px) {
    .ohmy-menu .menu-item {
        width: 100px; /* Taille du cercle */
        height: 100px;
    }
    
    .single-oh_my_events .title-block h3, .page .title-block h3{
        font-size: 2em !important;
    }
    h3, .page-id-43 .title-block h3, .page-id-1033 .title-block h3, .page-id-1034 .title-block h3{
        font-size: 1em !important;
    }
    p{
        /*font-size: 0.9em !important;*/
    }
}


/* Passer en 2 colonnes sur mobile 
@media screen and (max-width: 768px) {
    .custom-event-content {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes: ; sur mobile 
    }

    .three-wide {
        grid-column: span 2; /* Adapter le bloc 3 colonnes � 2 
        grid-row: span 1;
        aspect-ratio: 2 / 1; /* Ratio ajust� 
    }

    .two-by-two {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: 1 / 1; /* Conserver le carr� 
    }
}*/

/* Mobile: 1 seule colonne, blocs texte sans ratio forc�, autres blocs avec ratio conserv� */
@media screen and (max-width: 768px) {
    .custom-event-content,
    .content-grid {
        grid-template-columns: 1fr; /* 1 seule colonne */
    }

    /* Blocs texte : on supprime le ratio carr� */
    .content-block-text,
    .text-block {
        aspect-ratio: auto !important;
        height: auto !important;
    }

    /* Blocs g�n�riques gardent leur ratio */
    .one-wide,
    .two-wide,
    .two-vertical,
    .three-wide,
    .two-by-two {
        grid-column: span 1;
        grid-row: auto;
        /* conservent leur aspect-ratio d�fini */
    }

    /* Bloc image / vid�o : conservent leur ratio */
    .event-item,
    .content-block {
        grid-column: span 1;
        grid-row: auto;
        aspect-ratio: 1 / 1; /* reste carr� */
    }

    .three-wide {
        aspect-ratio: 3 / 1;
    }

    .two-wide {
        aspect-ratio: 2 / 1;
    }

    .two-vertical {
        aspect-ratio: 1 / 2;
    }

    .two-by-two {
        aspect-ratio: 1 / 1;
    }

    .image-block,
    .video-block {
        aspect-ratio: auto; /* Laiss� libre selon contenu */
    }
}


.ohmy-menu .menu-item span {
    display: block;
    white-space: normal;
    word-wrap: break-word;
    max-width: 80%;
    line-height: 1.2;
}

/* Effet au survol */
.ohmy-menu .menu-item:hover {
    transform: scale(1.1);
}

/* Ajout de couleurs diff�rentes par �l�ment (exemple) */
.ohmy-menu .menu-item-1 { 
    background-color: #fff;
    color: var(--e-global-color-primary); /* Utilise la couleur principale */
    border: 1px solid var(--e-global-color-primary);
} /* Rose */
.ohmy-menu .menu-item-2 { 
    color: var( --e-global-color-secondary );
    background-color: #fff;
    border: 1px solid var(--e-global-color-secondary);
} /* Rose */
/*MENU Pages EVENTS*/
.home .menu-item-2, .single-oh_my_events .menu-item-2,.single-envira .menu-item-2,.page-id-1290  .menu-item-2,.page-id-1295  .menu-item-2,.page-id-1296  .menu-item-2{
    background-color: var(--e-global-color-primary); /* Utilise la couleur principale */
    color:#fff;
    border: 1px solid var(--e-global-color-primary);
}
/*MENU Pages EVENTS*/
.single-oh_my_events .menu-item-2{
    background-color: var(--e-global-color-primary); /* Utilise la couleur principale */
    color: #fff; /* Utilise la couleur principale */
    border: 1px solid var(--e-global-color-primary);
}
/*MENU Pages EXPATS*/
.page-id-354 .menu-item-1,.page-id-354 .menu-item-3,.page-id-1035 .menu-item-1,.page-id-1035 .menu-item-3,.page-id-1036 .menu-item-1,.page-id-1036 .menu-item-3,.single-oh_my_expats .menu-item-3, .single-oh_my_expats .menu-item-1{
    background-color: var(--e-global-color-secondary); /* Utilise la couleur principale */
    color: #fff; /* Utilise la couleur principale */
    border: 1px solid var(--e-global-color-secondary);
}
/*END MENU*/
/*MENU Pages Contact*/
.page-id-356 .menu-item-1,.page-id-1228 .menu-item-1,.page-id-1229 .menu-item-1,.page-id-356 .menu-item-2,.page-id-1228 .menu-item-2,.page-id-1229 .menu-item-2{
    background-color: var(--e-global-color-primary); /* Utilise la couleur principale */
    color: #fff; /* Utilise la couleur principale */
    border: 1px solid var(--e-global-color-primary);
}
.page-id-356 .menu-item-3,.page-id-1228 .menu-item-3,.page-id-1229 .menu-item-3{
    background-color: #fff; /* Utilise la couleur principale */
    color: var(--e-global-color-primary); /* Utilise la couleur principale */
    border: 1px solid var(--e-global-color-primary);
}
/**/
/*OH MY EXPATS*/
.page-id-354 .title-block, .page-id-1035 .title-block, .page-id-1036 .title-block{
    background-color: var( --e-global-color-secondary ) !important;
}
.page-id-354 .content-block, .page-id-1035 .content-block, .page-id-1036 .content-block {
    border: 1px solid var(--e-global-color-secondary) !important;
}
.page-id-354 .content-block-text, .page-id-1035 .content-block-text, .page-id-1036 .content-block-text {
    border: 1px solid var(--e-global-color-secondary) !important;
    color: var(--e-global-color-secondary) !important;
}
/*END OH MY EXPATS*/
/*SELECTEUR DE LANGUE*/
.lang-selector {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;  /* horizontal : � droite */
  align-items: flex-start;    /* vertical : en haut */
  margin-top: 0;
}

.lang-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var( --e-global-color-primary ) !important;
  color: var( --e-global-color-primary );
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.lang-circle:hover, .lang-circle.active {
  background-color: var( --e-global-color-primary );
  color: white;
}
/*FIN SELECTEUR DE LANGUE*/
/*ENVIRA TITRE*/
.single-envira h1 {
    font-size: 2em;
    color: var( --e-global-color-primary ) !important;

}
/*FIN ENVIRA TITRE*/

.envira-album-titles {
    margin: 20px 0;
}

.album-galleries-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* max 3 colonnes */
    gap: 5px;
}

/* Responsive: 2 colonnes puis 1 colonne */
@media (max-width: 1024px) {
    .album-galleries-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .album-galleries-list {
        grid-template-columns: 1fr;
    }
}

.gallery-title-item {
    border: 1px solid var(--e-global-color-primary);
    overflow: hidden;
}

.gallery-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-thumbnail-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.gallery-thumbnail {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
    display: block;
}

.gallery-title-wrapper {
    padding: 15px;
    background: white;
    font-weight: 500;
    color: var(--e-global-color-primary);
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.gallery-title-link:hover .gallery-title-wrapper {
    background: var(--e-global-color-primary);
    color: white;
}
